Module 1: Building Your First Security Tool

The Mission: Real security engineers don't just use tools; they build them. In this first module, we are skipping the boring "Hello World" tutorials and diving straight into the logic behind a Network Port Scanner.

How This Lab Works: The terminal below is running a Python Simulation.

  • Safety First: This script runs in a browser sandbox. It simulates the behavior of a scanner without actually sending packets across your network (which would get you flagged by your ISP).

  • The Goal: We are focusing on Structure. You will see how a few lines of code can automate a repetitive task—checking thousands of ports—in seconds.

Key Concepts You Are Using:

  • Input(): How we capture user data (like the Target IP) and store it in a Variable.

  • Lists []: A way to store multiple targets (Port 21, 22, 80) in one container.

  • Loops (For): The power of automation. Instead of writing code to check each port manually, we write one loop that cycles through our list automatically.

Instructions:

  1. Click the Run ► button in the terminal below.

  2. When prompted, enter a target IP address (e.g., 10.10.10.5) and hit Enter.

  3. Watch how the loop iterates through the ports and uses "Logic" to determine if they are Open or Closed.