This repository contains Python scripts and tools designed for Web Security with Python eBook. The tools cover various aspects of web security, including information gathering, gaining access, and vulnerability scanning.
Each chapter folder contains the tools discussed, with separate requirements.txt files. Before running any tool, ensure you install the required dependencies:
pip install -r requirements.txtThis chapter focuses on reconnaissance techniques to collect information about target websites.
admin_panel_finder.py- Scans for potential admin panel locations on a website.
dns_enumeration.py- Enumerates DNS records of a target domain.domain_info_extractor.py- Extracts domain registration and WHOIS information.domain_validator.py- Checks if a domain is valid and active.domain_whois.py- Retrieves WHOIS records of a domain.subdomain_scanner.py- Scans for subdomains associated with a target domain.subdomains.txt- A wordlist for subdomain enumeration.
email_extractor.py- Extracts email addresses from web pages.
fast_port_scanner.py- Quickly scans for open ports on a target.nmap_port_scanner.py- Uses Nmap to scan ports and services.port_scanner.py- A basic port scanner for identifying open ports.
reverse_dns_lookup.py- Resolves IP addresses back to domain names.
website_crawler.py- Crawls a website to discover internal links and resources.
This chapter includes tools for testing authentication mechanisms and proxy configurations.
ftp_bruteforce.py- Attempts to brute-force FTP credentials.
http_proxy.py- Implements an HTTP proxy for monitoring and modifying requests.
list_ftp_files.py- Lists available files on an FTP server.
login_password_guesser.py- Attempts login guesses against a target system.
free_proxies.py- Fetches and rotates through free proxies for anonymity.tor_proxy.py- Routes traffic through the Tor network.
hijack_session.py- Demonstrates session hijacking.vulnerable_app.py- A Flask App to demonstrate session hijacking.
ssh_bruteforce.py- Attempts to brute-force SSH credentials.
tcp_proxy.py- Implements a TCP proxy to intercept and modify network traffic.
This chapter focuses on identifying web application vulnerabilities.
clickjacking_scanner.py- Detects websites vulnerable to clickjacking attacks.
command_injection_scanner.py- Checks if a website is vulnerable to command injection attacks.
sql_injection_detector.py- Scans for SQL Injection (SQLi) vulnerabilities in web applications.
xss_scanner.py- Detects Cross-Site Scripting (XSS) vulnerabilities.xss_scanner_extended.py- An advanced XSS scanner with additional payloads.
This repository is strictly for educational and ethical hacking purposes. Unauthorized use of these scripts on systems without permission is illegal. Use them responsibly!
Stay ethical and secure the web!