A collection of Python scripts for security automation, network analysis, and cybersecurity tooling. Built as part of my journey toward CompTIA A+, Network+, and Security+ certifications and a career as a SOC Analyst.
python-security-scripts/
βββ network/
β βββ port_scanner.py # TCP port scanner with service identification
βββ password-tools/
β βββ password_generator.py # Secure password generator with custom options
βββ log-analysis/
β βββ (coming soon)
βββ automation/
βββ (coming soon)
Scans a target IP or hostname for open TCP ports and identifies the running service.
Usage:
python port_scanner.pyFeatures:
- Scans 11 common ports (FTP, SSH, HTTP, HTTPS, RDP, MySQL, DNS, and more)
- Identifies service name for each open port
- 1-second timeout per port for fast scanning
- Handles hostname resolution errors gracefully
Example output:
Scanning 192.168.1.254...
Port 53: OPEN (DNS)
Port 80: OPEN (HTTP)
Port 443: OPEN (HTTPS)
Scan complete. 3 open port(s) found.
Generates cryptographically random passwords with configurable length and character sets.
Usage:
python password_generator.pyFeatures:
- Configurable password length
- Optional symbol inclusion
- Generates 5 password options per run
- Uses Python's
random.choices()for unpredictable output
- Python scripting for security automation
- TCP socket programming and network connectivity testing
- Port enumeration and service identification
- Secure random password generation
- Error handling and exception management
- β CompTIA A+ Core 1 (220-1201) β studying
- π CompTIA Network+ β after A+
- π CompTIA Security+ β after Network+
- packet-tracer-labs β Cisco Packet Tracer network labs
- TryHackMe β SOC Level 1 learning path progress
Building toward SOC Analyst / Junior Security Analyst roles. AA Mathematics @ Miami Dade College. BS Cybersecurity (in progress).