Professional Documents
Culture Documents
MindCert Netcat MindMap PDF
MindCert Netcat MindMap PDF
MindCert Netcat MindMap PDF
Connects to the server Remote Administration Executes shell commands after connection
-c shell commands
Connects to port TCP/4444
nc -v 192.168.1.12 4444 Client
On 192.168.1.12 Program to execute after connection
-e filename
Shell is redirected on connection Used to bind Shells
Client pushes the shell to the server -b Allow broadcasts
Good when NAT is used
Server just listens -g gateway source-routing hop points
Server - Receiver -p port Specify the local port for remote connections
Listens on port TCP/4444 nc -lvp 4444 > myfile.txt
Transferring Files
Redirects output to a file called myfile.txt Randomizes the remote ports
-r
When the server is ready you can send any file
-s addr Sets the local source address
It will be received as myfile.txt on the receiver
Client - Sender
nc -v 192.168.1.34 4444 < testfile.txt -T tos set Type of Service
Sends testfile.txt to the receiver