Sitemap
Abdelhamid Houari

Abdelhamid Houari

Network Enumeration with Nmap

4 min readJun 16, 2026

--

Press enter or click to view image in full size

Firewall and IDS/IPS Evasion — Easy Lab

Press enter or click to view image in full size

Question: Our client wants to know if we can identify which operating system their provided machine is running on. Submit the OS name as the answer.

Answer:

we know http is running port 80 (status page)

Press enter or click to view image in full size

Firewall and IDS/IPS Evasion — Medium Lab

Press enter or click to view image in full size

Question: After the configurations are transferred to the system, our client wants to know if it is possible to find out our target’s DNS server version. Submit the DNS server version of the target as the answer.

Answer:

DNS runs on port 53

Press enter or click to view image in full size

every time it appeared filtered then i noticed the note :

a filtered port means nmap cannot determine if the port is open or closed — bc the packets are being blocked or dropped.

Press enter or click to view image in full size

so i retried considering the note:

Press enter or click to view image in full size

-sUV: Combining two flags

-sU: UDP Scan

  • sV: Version Detection

Firewall and IDS/IPS Evasion — Hard Lab

Press enter or click to view image in full size
Press enter or click to view image in full size

Answer:

Get Abdelhamid Houari’s stories in your inbox

Join Medium for free to get updates from this writer.

checking for open ports, but no wanted results

Press enter or click to view image in full size

So i decide to check again but with a trusted source “— source-port 53”

a non-standard port shown “p50000”.

Press enter or click to view image in full size

scan the port its self but no flag here just showing that its open

Press enter or click to view image in full size

tying with to connect to the port with “ncat” and see if its bring something new, but the source port 53 was already in use.

Press enter or click to view image in full size

So for a a fast solution i tried to use a different source port “5353”, but the lab only accept the 53 port.

after some search i found this command to print what occupy the port, but the problem no process name appeared, after i find out that the port is locked by WSL internal DNS and i can’t free it (i am using a WSL machine)

Press enter or click to view image in full size

so i switch to “htb machine”, the is in use

Press enter or click to view image in full size

the port is occupied by “dnsmasq”, but stopping it doesn’t doing the thing

Press enter or click to view image in full size

so i tried killing the process by the pid, and it worked the remaining is 5353 so no worries

Press enter or click to view image in full size

i finally connecting to port using “ncat ”printed the “flag ”

Thanks for Reading

--

--