Nmap Fundamentals from TryHackMe
Task 1 - Deploy
link to a youtube vid that demonstrates nmap
Task 2 - Nmap Quiz
geez, this is just what’s given in nmap -h
First, how do you access the help menu?
-hOften referred to as a stealth scan, what is the first switch listed for a ‘Syn Scan’?
-sSNot quite as useful but how about a ‘UDP Scan’?
-sUWhat about operating system detection?
-OHow about service version detection?
-sVMost people like to see some output to know that their scan is actually doing things, what is the verbosity flag?
-vWhat about ‘very verbose’? (A personal favorite)
-vvSometimes saving output in a common document format can be really handy for reporting, how do we save output in xml format?
-oXAggressive scans can be nice when other scans just aren’t getting the output that you want and you really don’t care how ‘loud’ you are, what is the switch for enabling this?
-AHow do I set the timing to the max level, sometimes called ‘Insane’?
-T5What about if I want to scan a specific port?
-pHow about if I want to scan every port?
-p-What if I want to enable using a script from the nmap scripting engine? For this, just include the first part of the switch without the specification of what script to run.
--scriptWhat if I want to run all scripts out of the vulnerability category?
--script vulnWhat switch should I include if I don’t want to ping the host?
-Pn
Task 3 - Nmap Scanning
Let’s go ahead and start with the basics and perform a syn scan on the box provided. What will this command be without the host IP address?
nmap -sSAfter scanning this, how many ports do we find open under 1000?
we find port 22 and 80 to be open, so
2What communication protocol is given for these ports following the port number?
tcpPerform a service version detection scan, what is the version of the software running on port 22?
running
nmap -sV $MACHINE_IPtell us that the version is6.6.1p1Perform an aggressive scan, what flag isn’t set under the results for port 80?
running
nmap -A $MACHINE_IPtells us thehttponlyflag isn’t setPerform a script scan of vulnerabilities associated with this box, what denial of service (DOS) attack is this box susceptible to? Answer with the name for the vulnerability that is given as the section title in the scan output. A vuln scan can take a while to complete. In case you get stuck, the answer for this question has been provided in the hint, however, it’s good to still run this scan and get used to using it as it can be invaluable.
running
nmap --script vuln $MACHINE_IPtells us that there is ahttp-slowloris-checkvulnerability which makes connections live longer than they are supposed to
honestly, why did i even bother to have a write-up of this room?