Andres Diaz

andres@diaz:~$ whoami

Andres Diaz

Defect Reproduction Engineer at Filevine

andresdiaztech@gmail.com

LinkedIn GitHub Blog



andres@diaz:~/blog$ cat day-04.md

cd ..

Day 04: Setting up the lab and my first scans

Day 04 ยท Oct 20, 2026

Today in one line

I set up my first vulnerable VM (Virtual Machine), got it talking to Kali on the same network, and ran my first host discovery and Nmap (Network Mapper) scans against it.

What I set up

  • Imported Kioptrix Level 1, a free practice VM from VulnHub, into VirtualBox. It's an old, deliberately weak box made for exactly this kind of practice.
  • It only needed a small amount of memory. It's an old Linux box, so a bigger machine does nothing. The scanning work happens on Kali, not on the target.
  • I had to keep its old network card type. Its kernel is too old to have drivers for the newer cards, so switching it would leave the box with no network at all.
  • Put Kali and the target on the same network so they could reach each other. Before that they were on separate networks and couldn't see each other, so a scan would have found nothing.

What I learned

1. Find the live hosts first.
sudo netdiscover -r <range> and sudo arp-scan -l list what is up on the local network. They use ARP (Address Resolution Protocol), which only works inside my own network, so this is the internal-network way of finding targets.

2. The scan gives me ports, services and versions.
I ran sudo nmap -T4 -p- -A <target>. -p- scans all 65535 ports and -A turns on version detection, OS (Operating System) detection and scripts. Every open port is a lead.

3. The target runs really old software.
The scan found 22 (SSH, Secure Shell), 80 and 443 (HTTP and HTTPS), 139 (SMB, Server Message Block, through Samba) and some RPC (Remote Procedure Call) ports. The versions are ancient, and those versions are what I research next.

Next up

  • Enumerate the SMB (Server Message Block) version on 139, the scan didn't show it
  • Look at the websites on 80 (HTTP) and 443 (HTTPS)
  • Learn how to read the whole Nmap (Network Mapper) scan properly