Skip to content

Repository files navigation

Web Penetration Testing Toolkit

Python Version License Security Tools OWASP Top 10

A comprehensive collection of penetration testing tools, scripts, and configurations for cybersecurity professionals and ethical hackers. This toolkit includes automated scanners, security assessment utilities, and system hardening scripts following industry best practices.

πŸ›‘οΈ About This Toolkit

This repository contains practical implementations of cybersecurity concepts and tools designed for:

  • Security Professionals conducting authorized penetration tests
  • Ethical Hackers learning security assessment techniques
  • System Administrators implementing security hardening
  • Bug Bounty Hunters discovering web application vulnerabilities
  • Students studying cybersecurity concepts

🎯 Key Features

  • Automated Security Scanning: Custom Python scripts for comprehensive vulnerability assessment
  • Network Security Analysis: Advanced Nmap scripts and network reconnaissance tools
  • Web Application Testing: OWASP Top 10 2023 compliant testing suite
  • System Hardening: CIS Benchmark and STIG-aligned security configurations
  • Vulnerability Assessment: Risk-based vulnerability management and reporting
  • Security Automation: CI/CD integration and automated security workflows

πŸ” Testing Coverage

  • Web Application Security: XSS, SQL Injection, CSRF, Authentication Bypass, File Upload Vulnerabilities
  • Network Security: Port Scanning, Service Enumeration, Vulnerability Detection, Protocol Analysis
  • API Security: REST/GraphQL testing, JWT analysis, API rate limiting
  • System Security: Linux hardening, access control, configuration assessment
  • Cryptographic Security: SSL/TLS analysis, certificate validation, cipher testing

πŸ”§ Technologies & Tools Used

πŸ› οΈ Security Tools

  • Network Analysis: Nmap, Wireshark, Masscan, Zmap
  • Web Application Testing: Burp Suite, OWASP ZAP, Nikto, Dirb, Gobuster
  • Exploitation Frameworks: Metasploit, SQLmap, XSStrike
  • System Security: Lynis, OpenSCAP, CIS-CAT
  • Custom Tools: Python automation scripts, Bash utilities

πŸ’» Programming & Scripting

  • Python 3.8+: Advanced security automation and vulnerability scanners
  • Bash/Shell: System administration and security hardening scripts
  • PowerShell: Windows security assessment utilities
  • JavaScript: Client-side security testing and DOM manipulation

πŸ–₯️ Operating Systems & Environments

  • Linux Distributions: Ubuntu, Kali Linux, CentOS, RHEL
  • Windows Environments: Windows 10/11, Windows Server
  • Containerization: Docker, Kubernetes security testing
  • Cloud Platforms: AWS, Azure, GCP security assessment

πŸ—οΈ Frameworks & Standards

  • OWASP Top 10 2023: Complete testing coverage
  • NIST Cybersecurity Framework: Risk-based approach
  • CIS Controls: Critical security controls implementation
  • ISO 27001/27002: Information security management standards

πŸ“ Repository Structure

πŸ“ Repository Structure

Web-Pentest-Toolkit/
β”œβ”€β”€ web-security/                 # Web application testing tools
β”‚   β”œβ”€β”€ web_vulnerability_scanner.py
β”‚   β”œβ”€β”€ ssl_tester.py
β”‚   β”œβ”€β”€ sql_injection_payloads.txt
β”‚   └── xss_payloads.txt
β”œβ”€β”€ network-scanning/             # Network reconnaissance
β”‚   β”œβ”€β”€ nmap_comprehensive_scan.sh
β”‚   └── port_enumeration.sh
β”œβ”€β”€ vulnerability-assessment/     # Assessment and reporting
β”‚   β”œβ”€β”€ generate_report.sh
β”‚   └── owasp_top10_checker.py
β”œβ”€β”€ system-hardening/            # Security hardening scripts
β”‚   └── linux_hardening.sh
β”œβ”€β”€ automation-scripts/          # Automated workflows
β”‚   └── automated_security_assessment.sh
β”œβ”€β”€ configs/                     # Tool configurations
β”‚   β”œβ”€β”€ burp_suite_config.properties
β”‚   └── owasp_zap_config.properties
β”œβ”€β”€ scripts/                     # Utility scripts
β”‚   └── quick_assessment.sh
└── documentation/               # Usage guides and methodologies
    β”œβ”€β”€ methodology.md
    β”œβ”€β”€ web_scanner_guide.md
    └── troubleshooting.md
β”‚   β”œβ”€β”€ compliance_mapping.md       # Framework alignment
β”‚   β”œβ”€β”€ tool_usage_guides/          # Detailed tool documentation
β”‚   └── sample_reports/             # Report templates
β”œβ”€β”€ πŸ“ configs/                  # Tool configurations
β”‚   β”œβ”€β”€ burp_suite_config.properties # Burp Suite settings
β”‚   β”œβ”€β”€ owasp_zap_config.properties  # OWASP ZAP configuration
β”‚   β”œβ”€β”€ nmap_timing_templates.conf   # Nmap optimization
β”‚   └── scanning_profiles/           # Custom scan profiles
β”œβ”€β”€ πŸ“ payloads/                 # Security testing payloads
β”‚   β”œβ”€β”€ command_injection/           # OS command injection
β”‚   β”œβ”€β”€ file_upload/                # Malicious file uploads
β”‚   β”œβ”€β”€ authentication/             # Auth bypass techniques
β”‚   └── cryptographic/              # Crypto attack vectors
└── πŸ“ tools/                    # Utility scripts
    β”œβ”€β”€ log_analyzer.py             # Security log analysis
    β”œβ”€β”€ hash_cracker.py             # Password hash utilities
    β”œβ”€β”€ ssl_tester.py               # SSL/TLS security testing
    └── osint_collector.py          # Open source intelligence

⚑ Quick Start

Prerequisites

  • Python 3.8+
  • Git
  • Docker (optional, for containerized testing)

Installation Options

Option 1: Automated Setup (Recommended)

git clone https://github.com/your-username/Web-Pentest-Toolkit.git
cd Web-Pentest-Toolkit
chmod +x setup.sh
./setup.sh

Option 2: Manual Setup

git clone https://github.com/your-username/Web-Pentest-Toolkit.git
cd Web-Pentest-Toolkit
pip install -r requirements.txt

Option 3: Docker Environment

git clone https://github.com/your-username/Web-Pentest-Toolkit.git
cd Web-Pentest-Toolkit
docker-compose up -d
docker exec -it pentest-toolkit bash

Quick Test

# Test web vulnerability scanner
python3 web-security/web_vulnerability_scanner.py https://example.com --scan-types sql xss

# Run network scan
bash network-scanning/nmap_comprehensive_scan.sh 192.168.1.0/24

# Check OWASP Top 10 compliance
python3 vulnerability-assessment/owasp_top10_checker.py https://example.com

🎯 Comprehensive Assessment

# Full security assessment workflow
./scripts/comprehensive_assessment.sh https://example.com ./results

# Quick vulnerability assessment
./scripts/quick_assessment.sh https://example.com

πŸ“Š Key Features

  • Web Security: Comprehensive vulnerability scanning and testing
  • Network Analysis: Port scanning and service enumeration
  • SSL/TLS Testing: Certificate and cipher analysis
  • Reporting: JSON, HTML, text output formats
  • Cross-platform: Linux, Windows, macOS support

πŸ“‹ Detailed Usage Examples

πŸ” Web Vulnerability Scanner

The enhanced web vulnerability scanner provides comprehensive OWASP Top 10 2023 coverage:

# Basic scan (all vulnerability types)
python3 web-security/web_vulnerability_scanner.py https://example.com

# Specific vulnerability testing
python3 web-security/web_vulnerability_scanner.py https://example.com --scan-types sql xss

# Advanced scanning with custom options
python3 web-security/web_vulnerability_scanner.py https://example.com \
  --threads 10 \
  --rate-limit 0.2 \
  --user-agent "Custom-Scanner/1.0" \
  --output report.json \
  --format html

# Disable crawling for single page testing
python3 web-security/web_vulnerability_scanner.py https://example.com --no-crawl

Supported Vulnerability Types:

  • sql - SQL Injection (A03:2021)
  • xss - Cross-Site Scripting (A03:2021)
  • command - Command Injection (A03:2021)
  • path_traversal - Path Traversal (A01:2021)
  • xxe - XML External Entity (A05:2021)
  • open_redirect - Open Redirects (A01:2021)

🌐 Network Scanning

# Comprehensive network discovery and vulnerability scanning
bash network-scanning/nmap_comprehensive_scan.sh 192.168.1.0/24

# Port enumeration with service detection
bash network-scanning/port_enumeration.sh 192.168.1.100

# Custom Nmap scan with specific scripts
nmap -sV -sC --script vuln 192.168.1.100

πŸ”’ System Hardening

# Linux system security hardening
sudo bash system-hardening/linux_hardening.sh

# Check system security configuration
bash system-hardening/security_audit.sh

πŸ“Š Vulnerability Assessment

# OWASP Top 10 compliance testing
python3 vulnerability-assessment/owasp_top10_checker.py https://example.com

# Generate comprehensive security report
bash vulnerability-assessment/generate_report.sh target_domain.com

# Automated security assessment
bash automation-scripts/automated_security_assessment.sh target.com

πŸ› οΈ Tools Included

🌐 Web Application Security

Tool Purpose Features
web_vulnerability_scanner.py Comprehensive web app testing OWASP Top 10, custom payloads, reporting
ssl_tester.py SSL/TLS configuration testing Cipher analysis, certificate validation

πŸ” Network Security

Tool Purpose Features
nmap_comprehensive_scan.sh Advanced network scanning Service detection, vulnerability scripts
vulnerability_scan.py Network vulnerability assessment CVE integration, risk scoring
port_enumeration.sh Detailed service analysis Banner grabbing, version detection

πŸ” System Security

Tool Purpose Features
linux_hardening.sh System security hardening CIS Benchmark, STIG compliance

πŸ“Š Reporting & Analysis

Tool Purpose Features
generate_report.sh Automated report generation HTML, PDF, JSON formats

πŸ“– Documentation

πŸ”’ Security Considerations

Responsible Usage

  • Authorization Required: Only test systems you own or have explicit permission to test
  • Legal Compliance: Ensure compliance with local laws and regulations
  • Scope Definition: Clearly define testing scope and boundaries
  • Data Protection: Handle sensitive data according to privacy regulations

Operational Security

  • Network Isolation: Use isolated lab environments when possible
  • Traffic Encryption: Encrypt sensitive communications
  • Log Management: Securely store and manage testing logs
  • Tool Updates: Keep tools and signatures up to date

🀝 Contributing

We welcome contributions from the cybersecurity community! Please see our Contributing Guidelines for details.

How to Contribute

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/new-tool)
  3. Commit your changes (git commit -am 'Add new security tool')
  4. Push to the branch (git push origin feature/new-tool)
  5. Create a Pull Request

Contribution Areas

  • New security tools and scripts
  • Documentation improvements
  • Bug fixes and optimizations
  • Test cases and validation
  • Integration with additional frameworks

πŸ› Troubleshooting

Common Issues

Permission Denied Errors:

# Fix script permissions
chmod +x script-name.sh

# Run with sudo for system-level tools
sudo ./script-name.sh

Missing Dependencies:

# Update package lists
sudo apt update

# Install missing packages
sudo apt install package-name

# Reinstall Python dependencies
pip install -r requirements.txt --force-reinstall

Network Scanning Issues:

# Check network connectivity
ping target-ip

# Verify firewall settings
sudo ufw status

# Test with minimal scan first
nmap -sT -p 80,443 target-ip

For more detailed troubleshooting, see our Troubleshooting Guide.

πŸ“ž Support

πŸ“„ License

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

⚠️ Disclaimer

These tools are for educational purposes and authorized penetration testing only. Always ensure you have explicit permission before testing any systems. Unauthorized access to computer systems is illegal.

Important Legal Notice:

  • Use only on systems you own or have written permission to test
  • Comply with all applicable laws and regulations
  • Respect privacy and data protection requirements
  • Report discovered vulnerabilities responsibly

This toolkit represents practical cybersecurity skills developed through hands-on application of security concepts and industry-standard tools.

πŸ™ Acknowledgments

  • OWASP Foundation for security testing methodologies
  • Security research community for vulnerability disclosures
  • Open source tool developers for their contributions
  • Cybersecurity professionals sharing knowledge and best practices

⭐ Star this repository if you find it useful!

Made with ❀️ by Abeer for the cybersecurity community.

About

This is collection of automation scripts of various pentesting commands.

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages