Created
January 3, 2021 22:24
-
-
Save l2ysho/72463b74504c752d27daff80ee44bf94 to your computer and use it in GitHub Desktop.
set of usefull nmap commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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