SlideShare une entreprise Scribd logo
1  sur  41
Télécharger pour lire hors ligne
NMAP 101
Network Scanning and Analysis
● Software Engineer & Researcher at CyberForge Academy
● Final year, B. Tech. CSE @ LPU
● Engaged in Research, Creating course content/setups
● Developing SaaS software and open source tools
● Interned with Web3verse Academy, a Singapore-based startup
focused on Web3 education and Namekart, a domain name
brokerage firm.
● Interested in Art and craft 🎨
$ whoami
Table of contents
01
04
02
05
03
06
Introduction Why Network
Scanning ?
Basic
Functionalities
Nmap Scans Comparison NSE
● Nmap ( Network Mapper)
● Used to discover hosts and services on a target by
sending packets and analyzing the responses.
● Released in September 1997 by Gordon Lyon
● Free and Open Source
https://github.com/nmap/nmap
● Cross-platform (Windows/Linux/MacOS)
What is Nmap ?
Image :Nmap: the Network Mapper-Free
Security Scanner
Image : Gordon Lyon-Wikipedia
Network Scanning
Why Network Scanning?
● Monitoring network health and performance.
● Managing assets effectively.
● Detecting and mitigating security threats efficiently.
Nmap Default Scan
Command: nmap <target_ip>
Zenmap - Nmap GUI
Zenmap-Zenmap - Official cross-platform Nmap Security Scanner GUI
Scanning Network by
Zenmap
Basic Functionalities
1) Host Discovery
● Determines which hosts are available & responsive
● -sn is used for ping scan to only perform host discovery
2) Port Scanning
● Discovers open ports and running services on target devices
● -p-used to scan all 65535 ports on the target device
3) Service Fingerprinting:
● Attempts to determine the version of services running on the open
ports
● -sV used for service fingerprinting
4) OS Fingerprinting:
● Attempts to determine the operating system of a target
● -O used for OS detection
Nmap Switches
● -v: Verbose mode for detailed output.
● -T: Timing template for scan speed.
● -T0 (Paranoid): Slow, stealthy scan.
● -T1 (Sneaky): Slightly faster, cautious scan.
● -T2 (Polite): Default balance of speed and stealth.
● -T3 (Normal): Faster scan with more network impact.
●
● -T4 (Aggressive): Rapid scan with higher risk of detection.
Type of Scans
1) Intense Scan
● Packet uses: SYN-ACK,RST (2919 packets)
● Total Ports Scan: 1000 ports
● Command : “nmap -A <target>”
2) Quick Scan
● Total Ports Scan : 100 Ports
● Packet uses: TCP SYN packet
● Command : “nmap -F <target>”
Did You Know This Exist ?
3) Ping Scan
● Focuses exclusively on host discovery
● Packet uses: ICMP Echo Request packet
● Total Ports Scan : 0
● Command : “nmap -sn <target>”
4)Intense Scan, All TCP Ports
● Total Ports: 65535
● Packet uses: TCP SYN packet
● Command : “ nmap -p 1-65535
-A <target>”
5) Quick Traceroute
● Combination of a quick ping scan and traceroute
● Total Ports Scan : 0
● Packet uses: ICMP Echo Request packet
● Command : “ nmap -sn --traceroute <target>”
6) Intense Scan, No Ping
● A thorough scan without relying on ping for host discovery
● Packet uses: TCP SYN packet
● Total Ports Scan: 1000
● Command : “ nmap -T4 -Pn <target>”
Comparing Common Scans
1) Default Scan
● Packet uses: SYN , RST, ACK Packets (2020 packets )
● Total Ports Scan: 1,000 most common TCP ports
● Command: nmap <target>
2) Intense Scan
● Packet uses: SYN Packets (SYN-ACK,RST)(2919 packets)
● Total Ports Scan: 1000 ports
● Command : nmap -A <target>
4) Specific Port Scan
● Sends packets to specific ports and analyzes responses
● Determines port status (open, closed, or filtered) based on responses
● Packet uses: TCP packets targeting specified ports (3 packets)
● Command: “nmap -p <port_number> <target>”
Comparison Between all 3 Scans
2020
2919
3
Nmap Scripts
● Nmap scripts are Lua
programs
● used to automate tasks
like vulnerability
detection and service
enumeration within
Nmap scans.
● Run by NSE (Nmap
Scripting Engine)
Nmap Scripts-Discovery
● Used to gather information about hosts within a network
Command: nmap--script discovery <target>
● Scripts include :
○ banner:Connects to an open TCP port and prints any response from the
service.
● dns-brute: Attempts to enumerate DNS hostnames by brute force
guessing of common subdomains
Nmap Scripts-exploit
● To test for and exploit known vulnerabilities in target systems.
● Command: nmap--script exploit <target>
● Scripts include :
○ smtp-vuln-cve2010-4344: Checks SMTP servers for vulnerability
CVE-2010-4344
● http-csrf: Tests for CSRF vulnerabilities in HTTP applications
● http-dombased-xss: Detects DOM-based XSS vulnerabilities in HTTP apps
● http-stored-xss: Identifies Stored XSS flaws in HTTP apps
CREDITS: This presentation template was created by Slidesgo, and includes icons by Flaticon, and infographics & images by Freepik
Thanks!
Do you have any questions?
contact@cyberforge.academy
+91 8837537763
https://cyberforge.academy
https://github.com/CyberForgeAcademy/Workshops

Contenu connexe

Similaire à NMap 101 offline meetup by CyberForge Academy

Nmap Discovery
Nmap DiscoveryNmap Discovery
Nmap Discovery
Tai Pan
 

Similaire à NMap 101 offline meetup by CyberForge Academy (20)

Nmap and metasploitable
Nmap and metasploitableNmap and metasploitable
Nmap and metasploitable
 
Network Penetration Testing Toolkit - Nmap, Netcat, and Metasploit Basics
Network Penetration Testing Toolkit - Nmap, Netcat, and Metasploit BasicsNetwork Penetration Testing Toolkit - Nmap, Netcat, and Metasploit Basics
Network Penetration Testing Toolkit - Nmap, Netcat, and Metasploit Basics
 
Network Mapper (NMAP)
Network Mapper (NMAP)Network Mapper (NMAP)
Network Mapper (NMAP)
 
Null Delhi chapter - Feb 2019
Null Delhi chapter - Feb 2019Null Delhi chapter - Feb 2019
Null Delhi chapter - Feb 2019
 
Recon with Nmap
Recon with Nmap Recon with Nmap
Recon with Nmap
 
Contents namp
Contents nampContents namp
Contents namp
 
Contents namp
Contents nampContents namp
Contents namp
 
Nmap commands
Nmap commandsNmap commands
Nmap commands
 
Nmap project presentation : Unlocking Network Secrets: Mastering Port Scannin...
Nmap project presentation : Unlocking Network Secrets: Mastering Port Scannin...Nmap project presentation : Unlocking Network Secrets: Mastering Port Scannin...
Nmap project presentation : Unlocking Network Secrets: Mastering Port Scannin...
 
Nmap
NmapNmap
Nmap
 
NMAP - The Network Scanner
NMAP - The Network ScannerNMAP - The Network Scanner
NMAP - The Network Scanner
 
Understanding NMAP
Understanding NMAPUnderstanding NMAP
Understanding NMAP
 
Namp
Namp Namp
Namp
 
NMAP1.ppt
NMAP1.pptNMAP1.ppt
NMAP1.ppt
 
Network for amin
Network for aminNetwork for amin
Network for amin
 
NMAP
NMAPNMAP
NMAP
 
Nmap
NmapNmap
Nmap
 
Scanning and Enumeration in Cyber Security.pptx
Scanning and Enumeration in Cyber Security.pptxScanning and Enumeration in Cyber Security.pptx
Scanning and Enumeration in Cyber Security.pptx
 
A REVIEW ON NMAP AND ITS FEATURES
A REVIEW ON NMAP AND ITS FEATURESA REVIEW ON NMAP AND ITS FEATURES
A REVIEW ON NMAP AND ITS FEATURES
 
Nmap Discovery
Nmap DiscoveryNmap Discovery
Nmap Discovery
 

Dernier

Financial Accounting IFRS, 3rd Edition-dikompresi.pdf
Financial Accounting IFRS, 3rd Edition-dikompresi.pdfFinancial Accounting IFRS, 3rd Edition-dikompresi.pdf
Financial Accounting IFRS, 3rd Edition-dikompresi.pdf
MinawBelay
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
中 央社
 
ppt your views.ppt your views of your college in your eyes
ppt your views.ppt your views of your college in your eyesppt your views.ppt your views of your college in your eyes
ppt your views.ppt your views of your college in your eyes
ashishpaul799
 

Dernier (20)

Discover the Dark Web .pdf InfosecTrain
Discover the Dark Web .pdf  InfosecTrainDiscover the Dark Web .pdf  InfosecTrain
Discover the Dark Web .pdf InfosecTrain
 
“O BEIJO” EM ARTE .
“O BEIJO” EM ARTE                       .“O BEIJO” EM ARTE                       .
“O BEIJO” EM ARTE .
 
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
 
MichaelStarkes_UncutGemsProjectSummary.pdf
MichaelStarkes_UncutGemsProjectSummary.pdfMichaelStarkes_UncutGemsProjectSummary.pdf
MichaelStarkes_UncutGemsProjectSummary.pdf
 
How to Analyse Profit of a Sales Order in Odoo 17
How to Analyse Profit of a Sales Order in Odoo 17How to Analyse Profit of a Sales Order in Odoo 17
How to Analyse Profit of a Sales Order in Odoo 17
 
Financial Accounting IFRS, 3rd Edition-dikompresi.pdf
Financial Accounting IFRS, 3rd Edition-dikompresi.pdfFinancial Accounting IFRS, 3rd Edition-dikompresi.pdf
Financial Accounting IFRS, 3rd Edition-dikompresi.pdf
 
size separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceuticssize separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceutics
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...
 
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdfINU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
 
philosophy and it's principles based on the life
philosophy and it's principles based on the lifephilosophy and it's principles based on the life
philosophy and it's principles based on the life
 
Dementia (Alzheimer & vasular dementia).
Dementia (Alzheimer & vasular dementia).Dementia (Alzheimer & vasular dementia).
Dementia (Alzheimer & vasular dementia).
 
The Ball Poem- John Berryman_20240518_001617_0000.pptx
The Ball Poem- John Berryman_20240518_001617_0000.pptxThe Ball Poem- John Berryman_20240518_001617_0000.pptx
The Ball Poem- John Berryman_20240518_001617_0000.pptx
 
Post Exam Fun(da) Intra UEM General Quiz - Finals.pdf
Post Exam Fun(da) Intra UEM General Quiz - Finals.pdfPost Exam Fun(da) Intra UEM General Quiz - Finals.pdf
Post Exam Fun(da) Intra UEM General Quiz - Finals.pdf
 
Championnat de France de Tennis de table/
Championnat de France de Tennis de table/Championnat de France de Tennis de table/
Championnat de France de Tennis de table/
 
ppt your views.ppt your views of your college in your eyes
ppt your views.ppt your views of your college in your eyesppt your views.ppt your views of your college in your eyes
ppt your views.ppt your views of your college in your eyes
 
Navigating the Misinformation Minefield: The Role of Higher Education in the ...
Navigating the Misinformation Minefield: The Role of Higher Education in the ...Navigating the Misinformation Minefield: The Role of Higher Education in the ...
Navigating the Misinformation Minefield: The Role of Higher Education in the ...
 
Capitol Tech Univ Doctoral Presentation -May 2024
Capitol Tech Univ Doctoral Presentation -May 2024Capitol Tech Univ Doctoral Presentation -May 2024
Capitol Tech Univ Doctoral Presentation -May 2024
 
How to Manage Notification Preferences in the Odoo 17
How to Manage Notification Preferences in the Odoo 17How to Manage Notification Preferences in the Odoo 17
How to Manage Notification Preferences in the Odoo 17
 
REPRODUCTIVE TOXICITY STUDIE OF MALE AND FEMALEpptx
REPRODUCTIVE TOXICITY  STUDIE OF MALE AND FEMALEpptxREPRODUCTIVE TOXICITY  STUDIE OF MALE AND FEMALEpptx
REPRODUCTIVE TOXICITY STUDIE OF MALE AND FEMALEpptx
 

NMap 101 offline meetup by CyberForge Academy

  • 2. ● Software Engineer & Researcher at CyberForge Academy ● Final year, B. Tech. CSE @ LPU ● Engaged in Research, Creating course content/setups ● Developing SaaS software and open source tools ● Interned with Web3verse Academy, a Singapore-based startup focused on Web3 education and Namekart, a domain name brokerage firm. ● Interested in Art and craft 🎨 $ whoami
  • 3. Table of contents 01 04 02 05 03 06 Introduction Why Network Scanning ? Basic Functionalities Nmap Scans Comparison NSE
  • 4. ● Nmap ( Network Mapper) ● Used to discover hosts and services on a target by sending packets and analyzing the responses. ● Released in September 1997 by Gordon Lyon ● Free and Open Source https://github.com/nmap/nmap ● Cross-platform (Windows/Linux/MacOS) What is Nmap ? Image :Nmap: the Network Mapper-Free Security Scanner Image : Gordon Lyon-Wikipedia
  • 6. Why Network Scanning? ● Monitoring network health and performance. ● Managing assets effectively. ● Detecting and mitigating security threats efficiently.
  • 7.
  • 8. Nmap Default Scan Command: nmap <target_ip>
  • 9. Zenmap - Nmap GUI Zenmap-Zenmap - Official cross-platform Nmap Security Scanner GUI
  • 11. Basic Functionalities 1) Host Discovery ● Determines which hosts are available & responsive ● -sn is used for ping scan to only perform host discovery
  • 12. 2) Port Scanning ● Discovers open ports and running services on target devices ● -p-used to scan all 65535 ports on the target device
  • 13. 3) Service Fingerprinting: ● Attempts to determine the version of services running on the open ports ● -sV used for service fingerprinting
  • 14. 4) OS Fingerprinting: ● Attempts to determine the operating system of a target ● -O used for OS detection
  • 15. Nmap Switches ● -v: Verbose mode for detailed output. ● -T: Timing template for scan speed. ● -T0 (Paranoid): Slow, stealthy scan. ● -T1 (Sneaky): Slightly faster, cautious scan. ● -T2 (Polite): Default balance of speed and stealth. ● -T3 (Normal): Faster scan with more network impact. ● ● -T4 (Aggressive): Rapid scan with higher risk of detection.
  • 16. Type of Scans 1) Intense Scan ● Packet uses: SYN-ACK,RST (2919 packets) ● Total Ports Scan: 1000 ports ● Command : “nmap -A <target>”
  • 17.
  • 18. 2) Quick Scan ● Total Ports Scan : 100 Ports ● Packet uses: TCP SYN packet ● Command : “nmap -F <target>”
  • 19. Did You Know This Exist ?
  • 20. 3) Ping Scan ● Focuses exclusively on host discovery ● Packet uses: ICMP Echo Request packet ● Total Ports Scan : 0 ● Command : “nmap -sn <target>”
  • 21. 4)Intense Scan, All TCP Ports ● Total Ports: 65535 ● Packet uses: TCP SYN packet ● Command : “ nmap -p 1-65535 -A <target>”
  • 22. 5) Quick Traceroute ● Combination of a quick ping scan and traceroute ● Total Ports Scan : 0 ● Packet uses: ICMP Echo Request packet ● Command : “ nmap -sn --traceroute <target>”
  • 23. 6) Intense Scan, No Ping ● A thorough scan without relying on ping for host discovery ● Packet uses: TCP SYN packet ● Total Ports Scan: 1000 ● Command : “ nmap -T4 -Pn <target>”
  • 25. 1) Default Scan ● Packet uses: SYN , RST, ACK Packets (2020 packets ) ● Total Ports Scan: 1,000 most common TCP ports ● Command: nmap <target>
  • 26.
  • 27.
  • 28. 2) Intense Scan ● Packet uses: SYN Packets (SYN-ACK,RST)(2919 packets) ● Total Ports Scan: 1000 ports ● Command : nmap -A <target>
  • 29.
  • 30.
  • 31. 4) Specific Port Scan ● Sends packets to specific ports and analyzes responses ● Determines port status (open, closed, or filtered) based on responses ● Packet uses: TCP packets targeting specified ports (3 packets) ● Command: “nmap -p <port_number> <target>”
  • 32.
  • 33. Comparison Between all 3 Scans 2020 2919 3
  • 34. Nmap Scripts ● Nmap scripts are Lua programs ● used to automate tasks like vulnerability detection and service enumeration within Nmap scans. ● Run by NSE (Nmap Scripting Engine)
  • 35. Nmap Scripts-Discovery ● Used to gather information about hosts within a network Command: nmap--script discovery <target>
  • 36. ● Scripts include : ○ banner:Connects to an open TCP port and prints any response from the service.
  • 37. ● dns-brute: Attempts to enumerate DNS hostnames by brute force guessing of common subdomains
  • 38. Nmap Scripts-exploit ● To test for and exploit known vulnerabilities in target systems. ● Command: nmap--script exploit <target>
  • 39. ● Scripts include : ○ smtp-vuln-cve2010-4344: Checks SMTP servers for vulnerability CVE-2010-4344
  • 40. ● http-csrf: Tests for CSRF vulnerabilities in HTTP applications ● http-dombased-xss: Detects DOM-based XSS vulnerabilities in HTTP apps ● http-stored-xss: Identifies Stored XSS flaws in HTTP apps
  • 41. CREDITS: This presentation template was created by Slidesgo, and includes icons by Flaticon, and infographics & images by Freepik Thanks! Do you have any questions? contact@cyberforge.academy +91 8837537763 https://cyberforge.academy https://github.com/CyberForgeAcademy/Workshops