### JOHLEM.net ### --- NETCAT # Connect mode (ncat is client) | default port is 31337 ncat [] # Listen mode (ncat is server) | default port is 31337 ncat -l [] [] # Transfer file (closes after one transfer) ncat -l [] [] < file # Transfer file (stays open for multiple transfers) ncat -l --keep-open [] [] < file # Receive file ncat [] [] > file # Brokering | allows for multiple clients to connect ncat -l --broker [] [] # Listen with SSL | many options, use ncat --help for full list ncat -l --ssl [] [] # Access control ncat -l --allow ncat -l --deny # Proxying ncat --proxy [:] --proxy-type {http | socks4} [] # Chat server | can use brokering for multi-user chat ncat -l --chat [] [] #Send data securly over the net: $ cat /etc/passwd | openssl aes-256-cbc -a -e -pass pass:password | netcat -l -p 8080 (Using OpenSSL we can encrypt any input we wish and then use Netcat to create a socket which can be connected to from an externally source (even using a Web Browser)