$30 off During Our Annual Pro Sale. View Details »
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Introduction to NMAP
Search
HakumaNatata
November 21, 2013
Technology
0
57
Introduction to NMAP
nmap is your good friend
HakumaNatata
November 21, 2013
Tweet
Share
More Decks by HakumaNatata
See All by HakumaNatata
SPDY
natata
0
100
How to trace code
natata
0
48
HTML5 canvas game
natata
0
68
Introduction to HTML5
natata
0
37
PHP with Smarty
natata
0
34
Other Decks in Technology
See All in Technology
雲勉LT_Amazon Bedrock AgentCoreを知りAIエージェントに入門しよう!
ymae
2
230
AWS re:Invent 2025 で頻出の 生成 AI サービスをおさらい
komakichi
3
260
Active Directory 勉強会 第 6 回目 Active Directory セキュリティについて学ぶ回
eurekaberry
10
4k
20251127 BigQueryリモート関数で作る、お手軽AIバッチ実行環境
daimatz
0
340
All About Sansan – for New Global Engineers
sansan33
PRO
1
1.3k
Introduction to Bill One Development Engineer
sansan33
PRO
0
320
Digitization部 紹介資料
sansan33
PRO
1
6k
Bedrock のコスト監視設計
fohte
2
250
AI開発の定着を推進するために揃えるべき前提
suguruooki
1
440
TypeScript×CASLでつくるSaaSの認可 / Authz with CASL
saka2jp
2
160
【保存版】「ガチャ」からの脱却:Gemini × Veoで作る、意図を反映するAI動画制作ワークフロー
nekoailab
0
120
Claude Code はじめてガイド -1時間で学べるAI駆動開発の基本と実践-
oikon48
21
11k
Featured
See All Featured
Why You Should Never Use an ORM
jnunemaker
PRO
60
9.6k
Thoughts on Productivity
jonyablonski
73
4.9k
The Cost Of JavaScript in 2023
addyosmani
55
9.3k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
34
2.5k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
For a Future-Friendly Web
brad_frost
180
10k
Statistics for Hackers
jakevdp
799
230k
Six Lessons from altMBA
skipperchong
29
4.1k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
22k
Designing for humans not robots
tammielis
254
26k
Bash Introduction
62gerente
615
210k
Git: the NoSQL Database
bkeepers
PRO
432
66k
Transcript
NMAP 彭博涵 資工4A
What’s nmap? ¨ 只是個軟體 ¨ a powerful scanner
Purpose ¨ Available hosts ¨ Offering services ¨ Running
operating systems
install ¨ Linux ¨ FreeBSD ¨ windows
第一次親密接觸 ¨ nmap <target> ¤ #nmap 140.115.50.50
nmap 做了什麼? ¨ 1. 把<target>轉成ip address ¨ 2. 確定目標活著 (send
ICMP echo request packet or TCP ACK packet to port 80) ¨ 3. ip 轉回hostname (using reverse-DNS query) ¨ 4. port scan (/usr/local/share/nmap/nmap-services) ¨ 5. print the result
多個目標一次滿足 ¨ CIDR-style ¤ #nmap 140.115.82.0/24 ¨ 某一段 ¤ #nmap
140.115.172.3-100 ¨ 某幾段 ¤ #nmap 140.115.82,50.7-250 ¨ mix it ¤ #nmap 140.115.20-100,123-169.50 ptt.cc 61.57.227.41/24 ¨ 全世界 ¤ #nmap 0.0.0.0/0
更多目標… ¨ 從檔案... ¤ #nmap -iL target.txt ¨ except... ¤
#nmap 140.112.0.0/16 --exclude ptt.cc ¤ #nmap 0.0.0.0/0 --excludefile trouble.txt ¨ random ¤ #nmap -iR <number> ¨ IPv6 ¤ #nmap -6 ipv6.plurk.com
Scanning port
Port service list ¨ http://nmap.org/svn/nmap-services
Parameter for scanning port ¨ fast scan -F ¨ scan
specific ports -p [port] ¨ scan port by name -p [name] ¨ scan port by portocal -p U:[UDP ports],T:[TCP ports]
Fast scan ¨ scan the 100 most commonly used ports
¤ #nmap -F www.ncu.edu.tw
Scan specific ports ¨ -p [port] ¤ #nmap -p 22
www.saveie6.com ¤ #nmap -p 23,80,886-9527 www.twitter.com
Scan ports by name ¨ -p <name> ¤ #nmap -p
ssh www.saveie6.com ¤ #nmap -p smtp,http www.facebook.com
Scan ports by protocal ¨ specify the portocal to scan
(default TCP) ¤ #nmap -p U:53,T:25 www.hakuna-matata.org
Ports status ¨ open ¨ close ¨ filtered ¨ unfiltered
¨ open|filtered ¨ close|filtered
OS & service
Parameter for OS & service ¨ -O (OS detection) ¨
--osscan-guess (guess OS version) ¨ -sV (service Version detection) ¨ -A (OS detection, version detection and traceroute)
others ¨ -v (verbose) ¨ -Pn (skip host discovery) ¨
--traceroute ¨ -sS
reference ¨ nmap -h ¨ nmap.org ¨ Nmap Network Scanning
by Gordon Fyodor Lyon