Skip to content

Instantly share code, notes, and snippets.

@l2ysho
Created January 3, 2021 22:24
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save l2ysho/72463b74504c752d27daff80ee44bf94 to your computer and use it in GitHub Desktop.
set of usefull nmap commands
#scan network hosts
nmap -sP 192.168.1.0/24
#check open ports
nmap -sT 192.168.1.1
#check specific ports
nmap -sT -p 80,443 192.168.1.0/24
#check specific ports - stealth scan (without 3-way handshake)
nmap -sS -p 80,443 192.168.1.0/24
#detect OS
sudo nmap -O 192.168.0.10
#detect OS, version, script scanning and traceroute
sudo nmap -A 192.168.0.10
# use decoy as 192.168.1.5
sudo nmap -sS -D 192.168.1.5 192.168.1.1
#use script for vulnerabilities
sudo nmap --script vuln 192.168.1.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment