Skip to content

Instantly share code, notes, and snippets.

@vcheckzen
Created February 19, 2022 09:38
Show Gist options
  • Save vcheckzen/c8cb458fcb762e8d83430c15209b903b to your computer and use it in GitHub Desktop.
Save vcheckzen/c8cb458fcb762e8d83430c15209b903b to your computer and use it in GitHub Desktop.
Network Port Open State Detection

Network Port Open State Detection

netcat

# tcp
nc -vzt google.com 443

# udp
nc -vzu dns.google 53

nmap

# tcp
nmap -sS google.com -p 80,443
nmap -sS google.com -p 1000-9999

# udp
nmap -sU dns.google -p 53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment