Nmap Cheatsheet for Hackers

🎥 Nmap Basics for Hackers: Watch the video

Nmap (Network Mapper) is one of the most powerful tools for network scanning and reconnaissance. Whether you are a penetration tester, bug bounty hunter, or cybersecurity enthusiast, mastering Nmap can give y…


This content originally appeared on DEV Community and was authored by Rocky sah

🎥 Nmap Basics for Hackers: Watch the video

Nmap (Network Mapper) is one of the most powerful tools for network scanning and reconnaissance. Whether you are a penetration tester, bug bounty hunter, or cybersecurity enthusiast, mastering Nmap can give you an edge in discovering vulnerabilities and mapping network infrastructures.

🔹 Basic Scanning Commands

  1. Scan a single IP
   nmap 192.168.1.1
  1. Scan a range of IPs
   nmap 192.168.1.1-100
  1. Scan an entire subnet
   nmap 192.168.1.0/24
  1. Scan a specific port
   nmap -p 22 192.168.1.1
  1. Scan multiple ports
   nmap -p 22,80,443 192.168.1.1
  1. Scan all 65535 ports
   nmap -p- 192.168.1.1

🔹 Host Discovery

  1. Ping Scan (Discover live hosts without scanning ports)
   nmap -sn 192.168.1.0/24
  1. Disable host discovery (Scan only specified targets)
   nmap -Pn 192.168.1.1

🔹 Advanced Scanning Techniques

  1. Service and version detection
   nmap -sV 192.168.1.1
  1. Operating system detection

    nmap -O 192.168.1.1
    
  2. Aggressive scan (OS detection, version detection, script scanning, and traceroute)

    nmap -A 192.168.1.1
    
  3. Scan a target behind a firewall

    nmap -sS 192.168.1.1
    

🔹 Script Scanning

  1. Use default scripts

    nmap -sC 192.168.1.1
    
  2. Use specific scripts (e.g., to detect vulnerabilities)

    nmap --script=vuln 192.168.1.1
    
  3. Run multiple scripts

    nmap --script=ftp*,http* 192.168.1.1
    

🔹 Performance Optimization

  1. Increase speed (Use higher timing templates)

    nmap -T4 192.168.1.1
    
  2. Maximum speed (Be cautious, may be detected by IDS/IPS)

    nmap -T5 192.168.1.1
    

🔹 Firewall Evasion & Stealth Scanning

  1. Fragment packets (Bypass simple packet filters)

    nmap -f 192.168.1.1
    
  2. Decoy scan (Make it appear as if multiple hosts are scanning)

    nmap -D RND:10 192.168.1.1
    
  3. Spoof source IP

    nmap -S 192.168.100.100 192.168.1.1
    
  4. Use custom packets

    nmap --data-length 50 192.168.1.1
    

🔹 Output and Reporting

  1. Save scan results to a text file

    nmap -oN scan_results.txt 192.168.1.1
    
  2. Save results in XML format

    nmap -oX scan_results.xml 192.168.1.1
    
  3. Save results in all formats

    nmap -oA scan_results 192.168.1.1
    

🔹 Conclusion

Nmap is an essential tool for cybersecurity professionals. Whether you are conducting penetration testing, vulnerability assessments, or ethical hacking, understanding Nmap’s powerful features will enhance your reconnaissance skills.

📌 Watch the Nmap Basics for Hackers video to get a practical walkthrough and start using Nmap effectively!

🚀 Happy Hacking! 🔥


This content originally appeared on DEV Community and was authored by Rocky sah


Print Share Comment Cite Upload Translate Updates
APA

Rocky sah | Sciencx (2025-03-15T04:02:01+00:00) Nmap Cheatsheet for Hackers. Retrieved from https://www.scien.cx/2025/03/15/nmap-cheatsheet-for-hackers/

MLA
" » Nmap Cheatsheet for Hackers." Rocky sah | Sciencx - Saturday March 15, 2025, https://www.scien.cx/2025/03/15/nmap-cheatsheet-for-hackers/
HARVARD
Rocky sah | Sciencx Saturday March 15, 2025 » Nmap Cheatsheet for Hackers., viewed ,<https://www.scien.cx/2025/03/15/nmap-cheatsheet-for-hackers/>
VANCOUVER
Rocky sah | Sciencx - » Nmap Cheatsheet for Hackers. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2025/03/15/nmap-cheatsheet-for-hackers/
CHICAGO
" » Nmap Cheatsheet for Hackers." Rocky sah | Sciencx - Accessed . https://www.scien.cx/2025/03/15/nmap-cheatsheet-for-hackers/
IEEE
" » Nmap Cheatsheet for Hackers." Rocky sah | Sciencx [Online]. Available: https://www.scien.cx/2025/03/15/nmap-cheatsheet-for-hackers/. [Accessed: ]
rf:citation
» Nmap Cheatsheet for Hackers | Rocky sah | Sciencx | https://www.scien.cx/2025/03/15/nmap-cheatsheet-for-hackers/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.