boot767 notes · 24 posts

Every Shell Leaves a Trace

I keep what I learn about offensive security here: my notes from CTFs, certifications and university, plus the walkthroughs I write when a box is worth sharing. It's organized the way I work a box. Recon first, then a foothold, then privilege escalation, then the rest of the network.

latest transmission · 2026-11-19Collection of OSINT Tools and Resources
boot767 notes · 24 posts

Every Shell Leaves a Trace

I keep what I learn about offensive security here: my notes from CTFs, certifications and university, plus the walkthroughs I write when a box is worth sharing. It's organized the way I work a box. Recon first, then a foothold, then privilege escalation, then the rest of the network.

latest transmission · 2026-11-19Collection of OSINT Tools and Resources

Lab Solution

Step 1: Open the lab link to access the Kali Linux terminal instance

Step 2: Identify the target IP address

Before we begin performing a port scan with Nmap, we will need to identify the target IP address.

We can identify the target IP address by running the following command:

Command

ip a

As shown in the following screenshot, identify the IP address associated with the eth1 interface, this is the Kali Linux IP. The target IP address is always the next IP in the subnet.

So if the Kali Linux IP is 192.148.40.2 the target IP will be 192.148.40.3.

Note: In your case, the target IP address will be different, ensure you replace the IP of the target system in your lab environment with the IP address outlined below.

We can ping the target IP to verify that it is active, this can be done by running the following command:

Command

ping 192.148.40.3

As shown in the following screenshot, the host is online and is reachable from our Kali Linux system.

Step 3: Port scanning with Nmap

We can now perform a default Nmap port scan on the target to identify the open ports on the target system, this can be done by running the following command:

Command

nmap 192.148.40.3

As shown in the following screenshot, the default Nmap scan does not reveal any open ports. This is because the default Nmap scan profile only scans 1000 of the most commonly used ports.

In order to get an accurate idea of the open ports on the target system, we will need to scan the entire TCP port range (65,535 ports). This can be done by running the following command:

Command

nmap 192.148.40.3 -p-

As shown in the following screenshot, the Nmap scan reveals that the target system has 3 open ports.

Step 4: Service detection with Nmap

Now that we have identified the open ports on the target, we can learn more about the services running on the open ports by performing a service detection scan with Nmap.

This can be done by running the following command:

Command

nmap 192.148.40.3 -p 6421,41288,55413 -sV

As shown in the following screenshot, the Nmap service detection scan reveals the names and versions of the services running on the open ports on the target system.

Conclusion

In this lab, we explored the process of performing port scanning and service detection with Nmap.