0% found this document useful (0 votes)
10 views4 pages

? Basic Nmap Commands

The document provides a comprehensive list of basic Nmap commands for network scanning, including host discovery, port scanning, scan techniques, service and OS detection, NSE scripting, firewall evasion, timing, performance, and output saving. Each command is accompanied by examples for clarity. Additionally, it highlights common commands useful for exams or labs.

Uploaded by

pepakayalayasasvinivastarun.ai
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views4 pages

? Basic Nmap Commands

The document provides a comprehensive list of basic Nmap commands for network scanning, including host discovery, port scanning, scan techniques, service and OS detection, NSE scripting, firewall evasion, timing, performance, and output saving. Each command is accompanied by examples for clarity. Additionally, it highlights common commands useful for exams or labs.

Uploaded by

pepakayalayasasvinivastarun.ai
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

🔹 BASIC NMAP COMMANDS

1. nmap [Link]
Example: nmap [Link]

2. nmap [Link]
Example: nmap [Link]

3. nmap [Link] [Link]


Example: nmap [Link] [Link]

4. nmap [Link]/24
Example: nmap [Link]/24

🔹 HOST DISCOVERY

5. nmap -sn <target>


Example: nmap -sn [Link]/24

6. nmap -Pn <target>


Example: nmap -Pn [Link]

🔹 PORT SCANNING

7. nmap -p <port> <target>


Example: nmap -p 80 [Link]

8. nmap -p 22,80,443 <target>


Example: nmap -p 22,80,443 [Link]

9. nmap -p 1-1000 <target>


Example: nmap -p 1-1000 [Link]

10. nmap -p- <target>


Example: nmap -p- [Link]

11. nmap --top-ports 100 <target>


Example: nmap --top-ports 100 [Link]

🔹 SCAN TECHNIQUES
12. nmap -sS <target>
Example: sudo nmap -sS [Link]

13. nmap -sT <target>


Example: nmap -sT [Link]

14. nmap -sU <target>


Example: sudo nmap -sU [Link]

15. nmap -sA <target>


Example: nmap -sA [Link]

16. nmap -sF <target>


Example: nmap -sF [Link]

17. nmap -sN <target>


Example: nmap -sN [Link]

18. nmap -sX <target>


Example: nmap -sX [Link]

🔹 SERVICE & OS DETECTION

19. nmap -sV <target>


Example: nmap -sV [Link]

20. nmap -O <target>


Example: sudo nmap -O [Link]

21. nmap -A <target>


Example: sudo nmap -A [Link]

🔹 NSE SCRIPTING

22. nmap --script default <target>


Example: nmap --script default [Link]

23. nmap --script vuln <target>


Example: nmap --script vuln [Link]

24. nmap --script http-enum <target>


Example: nmap --script http-enum [Link]
25. nmap --script smb-os-discovery <target>
Example: nmap --script smb-os-discovery [Link]

🔹 FIREWALL / IDS EVASION

26. nmap -f <target>


Example: nmap -f [Link]

27. nmap --mtu 24 <target>


Example: nmap --mtu 24 [Link]

28. nmap -D RND:10 <target>


Example: nmap -D RND:10 [Link]

29. nmap --data-length 50 <target>


Example: nmap --data-length 50 [Link]

🔹 TIMING & PERFORMANCE

30. nmap -T0 <target>


Example: nmap -T0 [Link]

31. nmap -T4 <target>


Example: nmap -T4 [Link]

32. nmap -T5 <target>


Example: nmap -T5 [Link]

🔹 OUTPUT SAVING

33. nmap -oN [Link] <target>


Example: nmap -oN [Link] [Link]

34. nmap -oX [Link] <target>


Example: nmap -oX [Link] [Link]

35. nmap -oA output <target>


Example: nmap -oA labscan [Link]

🔹 COMMON EXAM / LAB COMMANDS ⭐


36. nmap -sn [Link]/24

37. nmap -sS -sV [Link]

38. nmap -A [Link]

39. nmap --script vuln [Link]

You might also like