DEV Community

Cover image for Day-7: Nmap -- Hacker's Favourite Scanning Tool!
FENIL SHAH
FENIL SHAH

Posted on

4

Day-7: Nmap -- Hacker's Favourite Scanning Tool!

Day-7: I started my day watching Dude perfect's documentary and ended it learning Nmap and about its scan types! Also, In between, I bought pentesterlab pro access (3mths - Student access).

Note: I won't be writing more in deep, but my notes! And will be providing all the links/resources (Don't forget to check-out the resource section) from where I learned so that you can refer to that resource and learn more! Thanks!❤️

What is Nmap?

  • Nmap stands for Network Mapped (Nmap) and is a network scanning and host detection tool that is very useful during several steps of penetration testing.
  • Nmap is open source and can be used to:
    • Detect the live host on the network (host discovery)
    • Detect the open ports on the host (port discovery or enumeration)
    • Detect the software and the version to the respective port (service discovery)
    • Detect the operating system, hardware address, and the software version
    • Detect the vulnerability and security holes (Nmap scripts)

Nmap Syntax:

nmap [scan type] [options] [target specification]
Enter fullscreen mode Exit fullscreen mode

Nmap Scan types:

  • TCP SCAN
  • UDP SCAN
  • SYN SCAN
  • ACK SCAN
  • FIN SCAN
  • NULL SCAN
  • XMAS SCAN
  • RPC SCAN
  • IDLE SCAN

Using Nmap help:

  • The best way to get used to nmap and its flags is using nmap -h, run this command in the terminal and will give you the following results: Alt Text and one more screenshot, but it is creating a mess so wont post it! Try yourself and explore the world of nmap! Happy Scanning!

Port states recognized by Nmap?

  • Six port states recognized by Nmap are:
    • Open
    • Closed
    • Filtered
    • Unfiltered
    • Openfiltered
    • Closedfiltered

Resources:

Medium Blogs: https://medium.com/bugbountywriteup/intro-to-nmap-192c1796bb39
Nmap Installation: https://nmap.org/download.html
HackerSploit Nmap Tutorial: YouTube
Port Scanning basics: https://nmap.org/book/man-port-scanning-basics.html
Scan Types: Edureka

Contact:

Got doubts? Contact me on Twitter.
Feedbacks are welcomed, do comment it down below! :)

Image of Wix Studio

2025: Your year to build apps that sell

Dive into hands-on resources and actionable strategies designed to help you build and sell apps on the Wix App Market.

Get started

Top comments (1)

Collapse
 
th3lazykid profile image
FENIL SHAH

Hey Zoe,
Thank you for the feedback!❤️

Image of AssemblyAI

Automatic Speech Recognition with AssemblyAI

Experience near-human accuracy, low-latency performance, and advanced Speech AI capabilities with AssemblyAI's Speech-to-Text API. Sign up today and get $50 in API credit. No credit card required.

Try the API

👋 Kindness is contagious

Immerse yourself in a wealth of knowledge with this piece, supported by the inclusive DEV Community—every developer, no matter where they are in their journey, is invited to contribute to our collective wisdom.

A simple “thank you” goes a long way—express your gratitude below in the comments!

Gathering insights enriches our journey on DEV and fortifies our community ties. Did you find this article valuable? Taking a moment to thank the author can have a significant impact.

Okay