Skip to content

A comprehensive collection of Python-based security tools designed for cybersecurity students and ethical hacking education. Features network scanners, web vulnerability assessments, information gathering utilities, and penetration testing demonstrations. Perfect for learning network security fundamentals, web application security, and ethical hac

Notifications You must be signed in to change notification settings

rohandeb2/Python-Cybersecurity_projects

Repository files navigation

πŸ” Cybersecurity Learning Repository

πŸ“‹ Table of Contents

Overview

This repository contains a collection of cybersecurity tools and scripts developed for educational purposes. Each tool demonstrates different aspects of network security, penetration testing, and vulnerability assessment techniques commonly used in the cybersecurity field.

The author is not responsible for any misuse of these tools. Users are solely responsible for their actions.

πŸ› οΈ Tools Overview

Network Security Tools

Tool Purpose Skill Level
πŸ” Network Scanner Discover active hosts on network Beginner
πŸšͺ Port Scanner Identify open ports and services Beginner
🌐 MITM Tools Understand network interception techniques Advanced

Web Security Tools

Tool Purpose Skill Level
πŸ•·οΈ Web Scraper Extract information from websites Beginner
πŸ’₯ Directory Brute Forcer Find hidden web directories Intermediate
πŸ’‰ SQL Injection Scanner Detect SQL injection vulnerabilities Intermediate

Information Gathering

Tool Purpose Skill Level
πŸ” Info Gathering Tool Comprehensive target reconnaissance Intermediate
πŸ” Password Generator Create secure passwords Beginner

System Security

Tool Purpose Skill Level
πŸ–₯️ Remote Access Tools Understand RAT techniques Advanced
πŸ”Œ Socket Programming Network communication fundamentals Beginner

πŸ“š Learning Objectives

By exploring this repository, you will learn:

  • Network Security Fundamentals: Understanding how network protocols work and can be exploited
  • Web Application Security: Common vulnerabilities and testing methodologies
  • Information Gathering: Reconnaissance techniques used in penetration testing
  • Ethical Hacking Principles: Responsible security testing practices
  • Python for Security: Using Python for cybersecurity automation
  • Tool Development: Creating custom security tools

πŸš€ Getting Started

Prerequisites

  • 🐍 Python 3.7+
  • 🐧 Linux environment (recommended) or Windows with WSL
  • πŸ“š Basic understanding of networking concepts
  • βš–οΈ Permission to test on target systems

Quick Setup

# Clone the repository
git clone https://github.com/rohandeb2/cybersecurity-learning-tools.git
cd cybersecurity-learning-tools

# Install required packages
pip install -r requirements.txt

# Set up virtual environment (recommended)
python -m venv cybersec-env
source cybersec-env/bin/activate  # On Windows: cybersec-env\Scripts\activate

πŸ“ Project Structure

cybersecurity-learning-tools/
β”‚
β”œβ”€β”€ πŸ“‚ MITM/                    # Man-in-the-Middle techniques
β”‚   β”œβ”€β”€ arp_spoofer.py         # ARP spoofing demonstration
β”‚   └── dns_spoof.py           # DNS spoofing concepts
β”‚
β”œβ”€β”€ πŸ“‚ network_scanner/         # Network discovery tools
β”‚   └── network_scanner.py     # Host discovery script
β”‚
β”œβ”€β”€ πŸ“‚ port_scanner/           # Port scanning utilities
β”‚   β”œβ”€β”€ port_scanner.py        # Basic port scanner
β”‚   └── fast_port_scanner.py   # Threaded port scanner
β”‚
β”œβ”€β”€ πŸ“‚ brute_forcing/          # Brute force demonstrations
β”‚   └── brute_forcing_tools.py # Directory brute forcing
β”‚
β”œβ”€β”€ πŸ“‚ info_gather_tool/       # Information gathering
β”‚   └── info_gathering.py      # Comprehensive recon tool
β”‚
β”œβ”€β”€ πŸ“‚ password_generator/     # Password utilities
β”‚   β”œβ”€β”€ password_generator.py  # Secure password creator
β”‚   └── random_password_creator.py
β”‚
β”œβ”€β”€ πŸ“‚ malware/                # RAT educational tools
β”‚   └── server.py              # C&C server demonstration
β”‚
β”œβ”€β”€ πŸ“‚ sockets/                # Network programming basics
β”‚   β”œβ”€β”€ socket_server.py       # Server implementation
β”‚   └── socket_client.py       # Client implementation
β”‚
β”œβ”€β”€ πŸ“‚ web_pentest_tool/       # Web security tools
β”‚
β”œβ”€β”€ πŸ“„ mega_project.py         # All-in-one security toolkit
β”œβ”€β”€ πŸ“„ scrape_data_from_website.py # Web scraping tool
β”œβ”€β”€ πŸ“„ sqli_scanner.py         # SQL injection detector
└── πŸ“„ README.md               # This file

πŸ”§ Installation

System Requirements

# Ubuntu/Debian
sudo apt-get update
sudo apt-get install python3 python3-pip python3-venv

# For advanced tools
sudo apt-get install build-essential python3-dev libnetfilter-queue-dev

# Install Python dependencies
pip install scapy requests beautifulsoup4 whois dnspython shodan argparse

Required Python Packages

Create a requirements.txt file:

scapy==2.4.5
requests==2.28.1
beautifulsoup4==4.11.1
python-whois==0.7.3
dnspython==2.2.1
shodan==1.28.0
argparse==1.4.0

πŸ“– Usage Examples

πŸ” Network Discovery

# Discover hosts on local network
python network_scanner/network_scanner.py 192.168.1.0/24

# Port scan a target (authorized testing only!)
python port_scanner/port_scanner.py 192.168.1.100 1 1000

πŸ•·οΈ Web Security Testing

# Information gathering (authorized targets only)
python info_gather_tool/info_gathering.py -d example.com

# Web scraping
python scrape_data_from_website.py

# SQL injection testing (authorized testing only)
python sqli_scanner.py

πŸ” Password Security

# Generate secure passwords
python password_generator/password_generator.py -c lud -l 16

🎯 Learning Path

🟒 Beginner Level

  1. Start with Socket Programming to understand network communication
  2. Use Password Generator to learn about secure password creation
  3. Explore Web Scraping for basic information gathering

🟑 Intermediate Level

  1. Network Scanner - Learn host discovery techniques
  2. Port Scanner - Understand service enumeration
  3. Information Gathering Tool - Comprehensive reconnaissance
  4. SQL Injection Scanner - Web application vulnerabilities

πŸ”΄ Advanced Level

  1. MITM Tools - Network interception techniques (Lab environment only!)
  2. RAT Tools - Understanding malware behavior (Educational purposes)
  3. Mega Project - Integrated security toolkit

πŸ“š Additional Resources

πŸ“– Recommended Reading

  • "The Web Application Hacker's Handbook" by Dafydd Stuttard
  • "Black Hat Python" by Justin Seitz
  • "Penetration Testing: A Hands-On Introduction to Hacking" by Georgia Weidman

πŸŽ“ Online Courses

πŸ§ͺ Practice Platforms

🀝 Contributing

We welcome contributions to improve these educational tools! Please:

  1. 🍴 Fork the repository
  2. 🌿 Create a feature branch (git checkout -b feature/educational-improvement)
  3. πŸ’Ύ Commit your changes (git commit -am 'Add educational content')
  4. πŸ“€ Push to the branch (git push origin feature/educational-improvement)
  5. πŸ”„ Create a Pull Request

Contribution Guidelines

  • βœ… Ensure all tools include proper educational disclaimers
  • πŸ“š Add comprehensive documentation
  • πŸ§ͺ Include usage examples
  • βš–οΈ Follow ethical hacking principles

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

Note: This license does not grant permission to use these tools for illegal activities. Always ensure you have proper authorization before testing any system.

About

A comprehensive collection of Python-based security tools designed for cybersecurity students and ethical hacking education. Features network scanners, web vulnerability assessments, information gathering utilities, and penetration testing demonstrations. Perfect for learning network security fundamentals, web application security, and ethical hac

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages