Dr. Ibrar Ahmed

HomeCyber SecurityArticle

Cyber Mechanics

Nmap for Beginners: Watch Port 8080 Go Open → Closed (127.0.0.1)

Dr. Ibrar Ahmed3 min read

Same Cyber Mechanics practice computer as Episode 1. You run Nmap on 127. 0. 0. 1 only, stop one local demo service, and watch port 8080 flip from open to closed - then back to open after restart. CYBER MECHANICS · Beginner series · Authorized local practice only. WHAT YOU WILL DO • Hook: port 8080 open → stop demo → closed → Ubuntu proof • nmap -sT -p 5050,8080,9090 127.

0. 0. 1 (TCP connect scan on yourself) • make stop-http-demo → rescan → make start-http-demo → third scan • Learn: OPEN = listener answered · CLOSED = nothing listening (not "invisible") OPEN ≠ VULNERABLE. Nmap SERVICE names are guesses, not proof of the exact app. FOLLOW ALONG Episode: episodes/02-nmap-local-port-scan/ Lab commit: 8523a9d ```bash cd CyberMechanics/episodes/02-nmap-local-port-scan make lab-up-native nmap -sT -p 5050,8080,9090 127.

0. 0. 1 make stop-http-demo nmap -sT -p 5050,8080,9090 127. 0. 0. 1 make start-http-demo nmap -sT -p 5050,8080,9090 127. 0. 0. 1 ``` START WITH EPISODE 1 (lab setup): Educational defensive security · Dr. Ibrar Ahmed · Cyber Mechanics

Watch the video for the full walkthrough. Use this page when you want the argument in writing without scrubbing the timeline.