EDUCATION

Cypherpunk Underground Chapter 11: Hacking 101- NMAP

Cypherpunk Underground Chapter 11 introduces NMAP, a powerful tool for web-based hacking and penetration testing. Learn how to use NMAP for host discovery, port scanning, version and vulnerability detection. Get started with simple scans and explore

January 2, 2023· 2 min read
99 score

Welcome Back Cypherpunks, I apologize for the long absence. In this new year I plan to post new CPU content at least bi-weekly. I am also prioritizing building my skills in hacking and penetration testing.

For the first post of this new year I thought it best to start with the most basic and useful tool for web-based hacking: NMAP.

NMAP is short for network mapper. NMAP is an open-source command line interface that packs a lot of features. Nmap can be used for:

-Host Discovery

-Port Scanning

-Version Detection

-Vulnerability Detection

I'm not a computer genius so I will spare you the mumbo jumbo of how NMAP works. Put simply, NMAP works by sending packets and evaluating the targets response.

WARNING: WHILE RARE, SCANNING TARGETS WITHOUT THEIR CONSENT COULD RESULT IN PROSECUTION OR BANS BY INTERNET SERVICE PROVIDERS.

That said, let's show do some scanning.


I did a quick ping of http://free2z.cash to get the IP address. F2Z IP Address is 190.196.102.34

I will use this IP to start a simple nmap scan:

nmap 190.196.102.34 -o free2z.txt

(the "-o free2z.txt" will output the results to a text file free2z.txt)


On the initial scan I see that there are 3 open ports and a 4th port that is closed. After doing this quick scan I narrow my focus with an aggressive scan (-A) on the ports I detected (-p 53,80,443,8080). Unfortunately for me I did not gain anymore information.

nmap 190.196.102.34 -p 53,80,443,8080 -A -o free2zports.txt


I will use TryHackMe:Intro Into Network Security to show more of what NMAP can do. This machine is intentionally vulnerable and will allow us to move from a simple scan

nmap 10.10.174.231

We get 3 open ports running 3 different services. Lets do the scan again running an aggressive scan.

nmap 10.10.174.231 -A

The aggressive scan game us a lot of information

Port is running FTP with vsftpd 3.0.3. We can see that we are allowed to log in with username "anonymous". Anonymous login will allow us to view the contents of the FTP server without using a password.

Port 22 is running SSH with OpenSSH 8.2

Port 80 is running on nginx 1.18

Knowing we have anonymous login we now access the files in FTP.

This is only a small look at the capability of nmap. If you are interested in learning more I recommend:

nmap.org

Tryhackme NMAP

Tryhackme NMAP Advanced Port Scans


If you like this content and have a suggestion on something the Cypherpunk Underground needs to know please leave a message or send me a private memo.


zs1pg2luvkqdy5hvlagy9apspw3qhsex0xq9dq3u0mufurk4tyu30can6qj82770kym337gct08qgx

Related Articles