Netcat Command Cheatsheet
- 1 min Netcat Cheatsheet
Netcat listening on port 567/TCP
Connecting to that port from another machine
To pipe a text file to the listener
To have the listener save a received text file
To transfer a directory, first at the receiving end set up
Then send the directory
To send a message to your syslog server (the <0> means emerg)
Setting up a remote shell listener
or
Then telnet to port 1234 from elsewhere to get the shell.
Using netcat to make an HTTP request
Making a one-page webserver; this will feed homepage.txt to all comers