NCAT Commands Cheat Sheet

Here is a cli commands cheat sheet for NCAT command, you can use this as a quick reminder for basic commands with a brief description for each of the commands.

What is NCAT command?

Add some data here

        # 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 [] []
    

Check out the NCAT command documentation .


You can also check our MegaSh cheatsheet tool, that has 150+ searchable linux cheat sheets in one page, so you never forget a command as you work again

Check Also

Best AI tools list