Skip to content

Khagan Notes

Cheat sheets I actually use while learning offensive security: recon, web, Linux, Active Directory. Short commands first, explanation second.

Authorized use only

Everything here is for labs, CTFs and systems you have written permission to test. Running these against systems you don't own is illegal in Uzbekistan and almost everywhere else.

Where to start

I want to… Go to
Follow a full engagement step by step Methodology
Scan a host Nmap
Find subdomains, directories, parameters Web discovery
Test who can see whose data Access control & IDOR
Get root on a Linux box Linux privesc
Map an AD domain AD enumeration
Catch a shell / move files Reverse shells, File transfer

Conventions

  • $IP = target, $LHOST = my attacking machine, $DOMAIN = AD domain
  • $USER / $PASS = credentials I already have
  • Set them once per box:
export IP=10.10.10.10 LHOST=10.10.14.5 DOMAIN=corp.local

Search with S or /. Every code block has a copy button.

More about me: khagan.pages.dev