Skip to content

Instantly share code, notes, and snippets.

View Isopach's full-sized avatar
:octocat:
Working from home forever!

Isopach Isopach

:octocat:
Working from home forever!
View GitHub Profile
@Isopach
Isopach / how-to.md
Created June 29, 2020 14:29
Add unix commands on Windows

Simply download MingGW and add the /bin dir to your PATH

@Isopach
Isopach / tab-autocomplete-regedit.md
Created June 27, 2020 12:23
Tab autocomplete on command prompt in Windows 10

Run as administrator

reg add "hklm\software\microsoft\command processor" /v CompletionChar /d 9 /t REG_DWORD /f
reg add "hklm\software\microsoft\command processor" /v PathCompletionChar /d 9 /t REG_DWORD /f
@Isopach
Isopach / Windows-PHP-S.md
Created June 16, 2020 17:09
Run php -S on Windows
  1. Install XAMPP
  2. cd C:\xampp\php (default)
  3. .\php -S 0.0.0.0:1337

Done!

@Isopach
Isopach / Windows-SSH-Fix.md
Created June 15, 2020 12:19
When your SSH keys don't work on Windows due to excessive permissions

Case 1: Excessive permissions

Do:

:: # Set Variable ::
Set Key="C:\Path\to\key"

:: # Remove Inheritance ::
Cmd /c Icacls %Key% /c /t /Inheritance:d
@Isopach
Isopach / alibaba-ossutil.md
Created June 1, 2020 21:09
How to Connect to Alibaba Cloud ECS
  1. Download ossutil
  2. Run it with config set the access token and secret from your alibaba account (top right >> AccessKey)
  3. Do ./ossutil ls oss://hostname

Hostname is the bolded part only!

abcdefg.oss-ap-northeast-1.aliyuncs.com

@Isopach
Isopach / community-predictions-20200601.sh
Created June 1, 2020 21:08
DotA2 Community Predictions using OpenDota API
curl 'https://api.opendota.com/api/findMatches?teamA=21&teamA=23&teamA=16&teamA=40&teamA=35&teamB=44&teamB=56&teamB=71&teamB=26&teamB=5' \
> -H 'authority: api.opendota.com' \
> -H 'user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36' \
> -H 'accept: */*' \
> -H 'origin: https://www.opendota.com' \
> -H 'sec-fetch-site: same-site' \
> -H 'sec-fetch-mode: cors' \
> -H 'sec-fetch-dest: empty' \
> -H 'referer: https://www.opendota.com/combos?teamA=21&teamA=23&teamA=16&teamA=40&teamA=35&teamB=44&teamB=56&teamB=71&teamB=26&teamB=5&queryType=public' \
> -H 'accept-language: en-US;q=0.9,en;q=0.7,zh-CN;q=0.6,zh;q=0.5' \
@Isopach
Isopach / burp-collab.md
Created June 1, 2020 15:37
Using Burp Collaborator to get internal IP to check for SSRF
  1. Open Burp Collaborator
  2. Click on Generate - this will copy a collaborator hostname to your clipboard
  3. Paste the domain to any Link scanner
  4. Burp will do the polling and return DNS/HTTP results.
  5. Get the IP(s) from the HTTP results
  6. Do a whois check
  7. If registrant states the owner of the company, it is likely an internal IP
  8. Put it into your Link scanner
  9. Pray it doesn't return 500 and you might have gotten an SSRF!
@Isopach
Isopach / backup_ios-13.5.md
Last active May 21, 2020 18:07
How to backup iOS 13.5 and extract ipa to Windows 10
  1. Create backup of ipad in default location because you cant change it
  2. Copy the backup folder %APPDATA%\Apple Computerto your desired location
  3. Open CMD prompt as administrator
  4. Make symbolic link with mklink /D "Z:\iPad\Backups\Apple Computer" "%APPDATA%\Roaming\Apple Computer"
  5. Install iMazing
  6. Connect iPad/iPhone, Sign in, then click on Manage Apps
  7. Right-click on app you want to download, then select Download to Library. You may need to make a backup first. Ensure that both your backup and library location are in the same parent folder (it will be the same by default)
  8. Mission accomplished!
@Isopach
Isopach / hideBlockedElements.css
Created March 15, 2020 04:49
One-line CSS to hide discord blocked messages
<style>div[class^="blockedSystemMessage-"],div[class*="blockedSystemMessage-"]{display:none !important;}</style>
@Isopach
Isopach / getLocalStoragePropertyDescriptor.js
Created March 2, 2020 15:02
Reconstruct Discord's removed LocalStorage func and call email_cache
function abc(){const e=document.createElement("iframe");document.head.append(e);const o=Object.getOwnPropertyDescriptor(e.contentWindow,"localStorage");return e.remove(),o}Object.defineProperty(window,"localStorage",abc()),window.localStorage.email_cache;