Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Python Security Scripts

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.


Repository Structure

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)

Scripts

πŸ” Network / port_scanner.py

Scans a target IP or hostname for open TCP ports and identifies the running service.

Usage:

python port_scanner.py

Features:

  • 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.

πŸ” Password Tools / password_generator.py

Generates cryptographically random passwords with configurable length and character sets.

Usage:

python password_generator.py

Features:

  • Configurable password length
  • Optional symbol inclusion
  • Generates 5 password options per run
  • Uses Python's random.choices() for unpredictable output

Skills Demonstrated

  • 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

Certifications In Progress

  • βœ… CompTIA A+ Core 1 (220-1201) β€” studying
  • πŸ”„ CompTIA Network+ β€” after A+
  • πŸ”„ CompTIA Security+ β€” after Network+

Related Repositories


Building toward SOC Analyst / Junior Security Analyst roles. AA Mathematics @ Miami Dade College. BS Cybersecurity (in progress).

About

Python scripts for security automation and network analysis

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages