Editing
Nmap
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Examples == === <span id="ex-sS"></span>SYN Scan === <syntaxhighlight lang="bash"> nmap -sS 192.168.1.1 </syntaxhighlight> ''[[#options|↑ Options]]'' === <span id="ex-fullscan"></span>Full Insight Scan === <syntaxhighlight lang="bash"> nmap -A -T4 -p- -sC -sV -O -Pn 192.168.1.10 </syntaxhighlight> <code># -A: enable all scans, -T4: faster timing, -p-: all ports, -sC: default scripts, -sV: service versions, -O: OS detect, -Pn: no ping</code> ''[[#options|↑ Options]]'' === <span id="ex-sT"></span>TCP Connect Scan === <syntaxhighlight lang="bash"> nmap -sT 192.168.1.1 </syntaxhighlight> ''[[#options|↑ Options]]'' === <span id="ex-sU"></span>UDP Scan === <syntaxhighlight lang="bash"> nmap -sU 192.168.1.1 </syntaxhighlight> ''[[#options|↑ Options]]'' === <span id="ex-sP"></span>Ping Scan === <syntaxhighlight lang="bash"> nmap -sP 192.168.1.0/24 </syntaxhighlight> ''[[#options|↑ Options]]'' === <span id="ex-Pn"></span>Skip Host Discovery === <syntaxhighlight lang="bash"> nmap -Pn 192.168.1.100 </syntaxhighlight> ''[[#options|↑ Options]]'' === <span id="ex-p"></span>Scan Specific Ports === <syntaxhighlight lang="bash"> nmap -p 22,80 192.168.1.1 </syntaxhighlight> ''[[#options|↑ Options]]'' === <span id="ex-A"></span>Aggressive Scan === <syntaxhighlight lang="bash"> nmap -A 10.0.0.1 </syntaxhighlight> ''[[#options|↑ Options]]'' === <span id="ex-O"></span>OS Detection Only === <syntaxhighlight lang="bash"> nmap -O 10.0.0.1 </syntaxhighlight> ''[[#options|↑ Options]]'' === <span id="ex-T"></span>Fast Timing Template === <syntaxhighlight lang="bash"> nmap -T5 example.com </syntaxhighlight> ''[[#options|↑ Options]]'' === <span id="ex-script"></span>Run NSE Script === <syntaxhighlight lang="bash"> nmap --script default example.com </syntaxhighlight> ''[[#options|↑ Options]]'' === <span id="ex-iL"></span>Scan From File === <syntaxhighlight lang="bash"> nmap -iL targets.txt </syntaxhighlight> ''[[#options|↑ Options]]'' === <span id="ex-oN"></span>Save Output (Normal) === <syntaxhighlight lang="bash"> nmap -oN output.txt 192.168.1.1 </syntaxhighlight> ''[[#options|↑ Options]]'' === <span id="ex-oX"></span>Save Output (XML) === <syntaxhighlight lang="bash"> nmap -oX output.xml 192.168.1.1 </syntaxhighlight> ''[[#options|↑ Options]]'' === <span id="ex-sL"></span>List Targets Only === <syntaxhighlight lang="bash"> nmap -sL 192.168.1.0/30 </syntaxhighlight> ''[[#options|↑ Options]]'' === <span id="ex-d"></span>Debug Mode === <syntaxhighlight lang="bash"> nmap -d 192.168.1.1 </syntaxhighlight> ''[[#options|↑ Options]]''
Summary:
Please note that all contributions to HackOps may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
HackOps:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
Edit source
View history
More
Search
Navigation
Tools
What links here
Related changes
Special pages
Page information