Magic Cookbook
last edited Mon, 22 Jul 2024 09:53:43 GMT
backlinks: null
cmd line stuff
IPs direct link to this section
curl ipinfo.io/54.90.107.240
Email direct link to this section
curl emailrep.io/john.smith@gmail.com
SSH Tunneling direct link to this section
ssh -L localport:127.0.0.1:remoteport user@host
Visualize like so: ssh -L 127.0.0.1:8080:127.0.0.1:80 user@host
SOCKS Proxy direct link to this section
SSH -D 8080 user@host
NMAP direct link to this section
- Scan with TCP connect
nmap -sT 192.168.0.1
- default SYN scan (half of TCP handshake)
nmap –sS 192.168.0.1
- scan UDP
nmap –sU –p 80,130,255 192.168.0.1
nmap -Pn -sS -sV -O -T 2 [TARGET IP] -p1-65535 > nmap.txt
Priviliege Escalation direct link to this section
sudo -l
ls -lah
id
# view groups