Output Flashcards

1
Q

Normal output to the file normal.file

A

-oN

nmap 192.168.1.1 -oN normal.file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

XML output to the file xml.file

A

-oX

nmap 192.168.1.1 -oX xml.file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Grepable output to the file grep.file

A

-oG

nmap 192.168.1.1 -oG grep.file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Output in the three major formats at once

A

-oA

nmap 192.168.1.1 -oA results

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Grepable output to screen. -oN -, -oX - also usable

A

-oG -

nmap 192.168.1.1 -oG -

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Append a scan to a previous scan file

A

–append-output

nmap 192.168.1.1 -oN file.file –append-output

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Increase the verbosity level (use -vv or more for greater effect)

A

-v

nmap 192.168.1.1 -v

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Increase debugging level (use -dd or more for greater effect)

A

-d

nmap 192.168.1.1 -d

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Display the reason a port is in a particular state, same output as -vv

A

–reason

nmap 192.168.1.1 –reason

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Only show open (or possibly open) ports

A

–open

nmap 192.168.1.1 –open

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Show all packets sent and received

A

–packet-trace

nmap 192.168.1.1 -T4 –packet-trace

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Shows the host interfaces and routes

A

–iflist

nmap –iflist

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Resume a scan

A

–resume

nmap –resume results.file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Example: Scan for web servers and grep to show which IPs are running web servers

A

nmap -p80 -sV -oG - –open 192.168.1.1/24 | grep open

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Example: Generate a list of the IPs of live hosts

A

nmap -iR 10 -n -oX out.xml | grep “Nmap” | cut -d “ “ -f5 > live-hosts.txt

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Example: Append IP to the list of live hosts

A

nmap -iR 10 -n -oX out2.xml | grep “Nmap” | cut -d “ “ -f5&raquo_space; live-hosts.txt

17
Q

Example:

Compare output from nmap using the ndif

A

ndiff scanl.xml scan2.xml

18
Q

Example: Convert nmap xml files to html files

A

xsltproc nmap.xml -o nmap.html

19
Q

Example: Reverse sorted list of how often ports turn up

A

grep “ open “ results.nmap | sed -r ‘s/ +/ /g’ | sort | uniq -c | sort -rn | less