Nmap
Nmap
Nmap - Introduction
Questions
What networking constructs are used to direct traffic to the right application on a server?
How many of these are available on any network-enabled computer?
How many of these are considered "well-known"? (These are the "standard" numbers mentioned in the task)
Nmap Switches
What is the first switch listed in the help menu for a 'Syn Scan'
Which switch would you use for a "UDP scan"?
If you wanted to detect which operating system the target is running on, which switch would you use?
Nmap provides a switch to detect the version of the services running on the target. What is this switch?
The default output provided by nmap often does not provide enough information for a pentester. How would you increase the verbosity?
Verbosity level one is good, but verbosity level two is better! How would you set the verbosity level to two?
What switch would you use to save the nmap results in three major formats?
What switch would you use to save the nmap results in a "normal" format?
A very useful output format: how would you save results in a "grepable" format?
Sometimes the results we're getting just aren't enough. If we don't care about how loud we are, we can enable "aggressive" mode. This is a shorthand switch that activates service detection, operating system detection, a traceroute and common script scanning. How would you activate this setting?
How would you set the timing template to level 5?
How would you tell nmap to scan port 80
How would you tell nmap to scan ports 1000-1500?
How would you tell nmap to scan all ports?
How would you activate a script from the nmap scripting library
How would you activate all of the scripts in the "vuln" category?
Basic Scan Types
Questions
There are two other names for a SYN scan, what are they?
Can Nmap use a SYN scan without sudo permissions?
If a UDP port doesn't respond to an Nmap scan, what will it be marked as?
When a UDP port is closed, by convention the target should send back a "port unreachable" message. Which protocol would it use to do so?
Less common scan types
Questions
Which of the three shown scan types uses the URG flag?
Why are NULL, FIN and Xmas scans generally used?
Which common OS may respond to a NULL, FIN or Xmas scan with a RST for every port?
ICMP (or "ping") scanning
Questions
How would you perform a ping sweep on the 172.16.x.x network (Netmask: 255.255.0.0) using Nmap? (CIDR notation)
NSE Scripts
Questions
What language are NSE scripts written in?
Which category of scripts would be a very bad idea to run in a production environment?
What optional argument can the ftp-anon.nse script take?
What is the filename of the script which determines the underlying OS of the SMB server?
Read through this script. What does it depend on?
Firewall Evasion
Questions
Which simple (and frequently relied upon) protocol is often blocked, requiring the use of the -Pn switch?
Which Nmap switch allows you to append an arbitrary length of random data to the end of packets?
Practical
Does the target respond to ICMP ping requests?
Perform an Xmas scan on the first 999 ports of the target -- how many ports are shown to be open or filtered?
There is a reason given for this -- what is it?
Perform a TCP SYN scan on the first 5000 ports of the target -- how many ports are shown to be open?
Deploy the ftp-anon script against the box. Can Nmap login successfully to the FTP server on port 21?
Last updated