Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Introduction to NMAP
Search
HakumaNatata
November 21, 2013
Technology
0
59
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
110
How to trace code
natata
0
49
HTML5 canvas game
natata
0
69
Introduction to HTML5
natata
0
38
PHP with Smarty
natata
0
35
Other Decks in Technology
See All in Technology
生成AI時代にこそ求められるSRE / SRE for Gen AI era
ymotongpoo
5
3.1k
Webhook best practices for rock solid and resilient deployments
glaforge
1
280
Embedded SREの終わりを設計する 「なんとなく」から計画的な自立支援へ
sansantech
PRO
3
2.4k
Claude_CodeでSEOを最適化する_AI_Ops_Community_Vol.2__マーケティングx_AIはここまで進化した.pdf
riku_423
2
550
GitHub Issue Templates + Coding Agentで簡単みんなでIaC/Easy IaC for Everyone with GitHub Issue Templates + Coding Agent
aeonpeople
1
220
ClickHouseはどのように大規模データを活用したAIエージェントを全社展開しているのか
mikimatsumoto
0
220
変化するコーディングエージェントとの現実的な付き合い方 〜Cursor安定択説と、ツールに依存しない「資産」〜
empitsu
4
1.4k
CDKで始めるTypeScript開発のススメ
tsukuboshi
1
390
マーケットプレイス版Oracle WebCenter Content For OCI
oracle4engineer
PRO
5
1.6k
外部キー制約の知っておいて欲しいこと - RDBMSを正しく使うために必要なこと / FOREIGN KEY Night
soudai
PRO
12
5.4k
生成AIを活用した音声文字起こしシステムの2つの構築パターンについて
miu_crescent
PRO
2
190
Codex 5.3 と Opus 4.6 にコーポレートサイトを作らせてみた / Codex 5.3 vs Opus 4.6
ama_ch
0
140
Featured
See All Featured
The Cult of Friendly URLs
andyhume
79
6.8k
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
0
200
What's in a price? How to price your products and services
michaelherold
247
13k
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
2
3.6k
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
9.5k
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
117
110k
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
130
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
Odyssey Design
rkendrick25
PRO
1
490
Balancing Empowerment & Direction
lara
5
890
What’s in a name? Adding method to the madness
productmarketing
PRO
24
3.9k
Why You Should Never Use an ORM
jnunemaker
PRO
61
9.7k
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