Scanning
AutoRecon
autorecon -ct 2 -cs 2 -vv -o outputdir 192.168.1.100 192.168.1.1/30 localhost
autorecon 10.200.97.200
autorecon -t targets.txt --only-scans-dir
# With vhost enumeration for known hostname
autorecon TARGET_IP --vhost-enum.hostname TARGET.htb -v
# Specify directory busting tool
autorecon TARGET_IP --dirbuster.tool feroxbuster -v
# Combined example
autorecon 10.129.237.241 --vhost-enum.hostname planning.htb --dirbuster.tool feroxbuster -vCommon Flags:
-ct
Concurrent targets
-cs
Concurrent scans per target
-o
Custom output directory
-v / -vv
Verbose output
--vhost-enum.hostname
Hostname for vhost enumeration
--dirbuster.tool
Tool for directory busting (gobuster, feroxbuster, ffuf)
--only-scans-dir
Only output scans directory
AutoRecon will create and store results in the /results directory.
General Enumeration Figure out the Hosts and Services Running
NetDiscover
Netdiscover is an active/passive reconnaissance tool that uses ARP to find live hosts on a local network.
Netdiscover actively searches for live hosts on the network by broadcasting ARP requests like a router.
By default netdiscover operates in active mode, however you can use it in passive mode with
-p. With passive move it will not broadcast anything.Note: ARP is unable to cross network boundaries or over any VPN connection
Nmap
I have no time to read, just give me the nmap scanning meta.
Ping Scan -sn Option
-sn tells nmap to perform host discovery only without any additional port scanning and prints out details of any hosts that responded.
nmap also has the -Pn option which will disable the host discovery stage altogether on a scan. The -Pn option is best used in combination with other scans.
TCP Connect Scan
The TCP connect scan in Nmap is the alternative TCP scan to use when a SYN scan is not an option.
TCP connect scan should be used when nmap does not have raw packet privileges which is required for a SYN scan.
TCP SYN Scan
Does not complete the 3 way handshake
UDP Port Scanning
Always check for UDP ports will pick up DNS, NTP, SNMP
Fingerprint Services
To figure out what services are running on target ports we use:
The following command will use nmap port scan to detect the service and OS:
Can also use the -A option in Nmap. The A stands for aggressive scan options and enables OS detection, script scanning and traceroute.
Scanning port ranges with Nmap
By default nmap will only scan the most 1000 common ports. To override the default use the -p
NSE
Web Application Vulnerability scan:
Location of scripts
Scripts are sorted by protocol, can sort by service
Nmap script help
Nmap script execution
The following command executes a script names http-robots.txt on port 80:
Detecting Linux Version from nmap SSH output
If ssh is running on the target, and it can fingerprint the service you have a good chance of detecting the operating system version:
Take a look at the part
4ubuntu0.5If you google that and select the
launchpad.netlink it will tell you the OS version

Nmap Output Parsing
Extract open ports and services from greppable output:
This extracts a clean list of hosts with their open ports, services, and versions from the .gnmap file.
Vulnerability Scanning
Good nmap command
Last updated