A hands-on collection of Python scripting examples designed for cybersecurity enthusiasts, students, and professionals.
This repository is organized into branches, where each branch focuses on a specific Python topic or cybersecurity scripting concept. The goal is to build Python knowledge step by step while introducing techniques commonly used in security automation.
Each branch represents a learning module.
| Branch | Description | Status |
|---|---|---|
01_Hello |
Python fundamentals: variables, loops, functions, data structures, and comprehensions. | Available |
02_Advanced_P1 |
File handling, exception handling, modules, CLI applications, and virtual environments. | Available |
02_Advanced_P2 |
Continuation of advanced Python topics. | Available |
| Future Branches | Networking, Web Requests, Multithreading, Scapy, Automation, and more. | 🚧 Coming Soon |
The following image shows the currently available branches.
Current topics include:
- Python syntax and fundamentals
- Variables and data types
- Control flow
- Loops
- Functions
- List and dictionary comprehensions
- File handling
- JSON and CSV processing
- Exception handling
- Modules and imports
- Command-line interfaces (
argparse) - Virtual environments (
venv)
Future topics will include:
- Socket Programming
- HTTP Requests
- Web Scraping
- Regular Expressions
- Multithreading
- Scapy
- Port Scanners
- Log Analysis
- File Integrity Monitoring
- Packet Analysis
- Automation Scripts
- APIs
- And more...
Clone the repository:
git clone https://github.com/<your-username>/Python-Scripting-for-Cybersecurity.gitMove into the project:
cd Python-Scripting-for-CybersecuritySwitch to a branch you'd like to explore:
git checkout 01_Helloor
git checkout 02_Advanced_P1- Python 3.10+
- Git
Some branches may require additional packages. If needed, install them using:
pip install -r requirements.txtIt is recommended to study the branches in the following order:
01_Hello02_Advanced_P102_Advanced_P2- Future branches as they are released