Skip to content

Instantly share code, notes, and snippets.

@AasSuhendar
Last active April 29, 2019 08:10
Show Gist options
  • Save AasSuhendar/6a3986be09e83cac1a08c53b5e8452f9 to your computer and use it in GitHub Desktop.
Save AasSuhendar/6a3986be09e83cac1a08c53b5e8452f9 to your computer and use it in GitHub Desktop.
Daily Net Tools CLI

Net Tools

Curl

is a tool to transfer data from or to a server, using one of the supported protocols (DICT, FILE, FTP, FTPS, GOPHER, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, POP3, POP3S, RTMP, RTSP, SCP, SFTP, SMB, SMBS, SMTP, SMTPS, TELNET and TFTP). The command is designed to work without user interaction.

curl -vkl [host url]

NC

is Arbitrary TCP and UDP connections and listens

nc -vz [ip/url] [port]

The netcat utility can be run in the server mode on a specified port listening for incoming connections

nc -l [port]

Netstat

is check the listening ports and applications

check for TCP and UDP

netstat -antup

Lsof

same with netstat

lsof -i -P -n | grep LISTEN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment