A powerful website security scanner and penetration testing tool that downloads websites locally and runs 65+ security checks including WordPress vulnerabilities, SQL injection testing, XSS detection, and CSP header generation.
| Feature | Description |
|---|---|
| Website Downloader | Downloads HTML, CSS, JS, images, PDFs locally |
| 65+ Security Checks | Comprehensive vulnerability scanning |
| SQL Injection Scanner | Safe penetration testing with proof generation |
| WordPress Scanner | 15+ WordPress-specific security checks |
| CSP Generator | Auto-generate Content-Security-Policy headers |
| Client Reports | Professional security reports for clients |
- π΄ Exposed
.envfiles with API keys and secrets - π΄ Exposed
.gitdirectories with source code - π΄ Database files publicly accessible
- π΄ Private keys and certificates exposed
- π΄ Hardcoded passwords in source code
- π SQL Injection (Error-based, Boolean-based, Time-based)
- π Cross-Site Scripting (XSS)
- π Command Injection
- π File Inclusion (LFI/RFI)
- π Missing security headers (CSP, HSTS, X-Frame-Options)
- π‘ Server information disclosure
- π‘ Directory listing enabled
- π‘ Admin panels accessible
- π‘ Default credentials
- π‘ Outdated software versions
# Clone the repository
git clone https://github.com/jackharsh0/webtester.git
# Navigate to project folder
cd webtester
# Install dependencies
pip install -r requirements.txtpython webtester.py https://example.compython webtester.py https://example.com --sqlipython webtester.py https://example.com --csppython webtester.py --csp-only data/example_com https://example.com============================================================
WEBTESTER - Website Security Scanner v2.0
============================================================
Target: https://example.com
Time: 2024-01-15 10:30:00
PHASE 1: DOWNLOADING WEBSITE
[β] Downloaded: index.html (15.2 KB)
[β] Total: 47 files (12.5 MB)
PHASE 2: SECURITY SCANNING
[1/65] .env files...
[2/65] Git exposure...
[3/65] Security headers...
...
SCAN RESULTS
CRITICAL: 2
HIGH: 5
MEDIUM: 8
LOW: 12
Total Issues: 27
The SQL injection scanner only reads data to prove vulnerabilities exist:
- β Detects SQL injection flaws
- β Collects proof (database version, name, user)
- β Generates client-ready reports
- β Does NOT delete data
- β Does NOT modify data
- β Does NOT execute harmful commands
When a vulnerability is found, the scanner safely extracts:
- Database version
- Database name
- Current user
- Number of tables
- Table names
webtester/
βββ webtester.py # Main entry point
βββ scraper.py # Website downloader
βββ scanner.py # 65+ security checks
βββ sqli_scanner.py # SQL injection testing
βββ csp_generator.py # CSP header generator
βββ requirements.txt # Python dependencies
βββ LICENSE # MIT License
βββ CONTRIBUTING.md # Contribution guidelines
βββ README.md # This file
| Vulnerability | What You Can Demonstrate |
|---|---|
| SQL Injection | Show database access without authorization |
| Exposed Secrets | Prove .env files are publicly accessible |
| Missing Headers | Document security header vulnerabilities |
| WordPress Issues | Show plugin/theme vulnerabilities |
| XSS Vulnerabilities | Demonstrate script injection risks |
- Exposed .env files
- Exposed .git directories
- Exposed .svn directories
- Exposed config files
- Exposed backup files
- Exposed database files
- Exposed private keys
- Exposed credentials files
- API keys in source code
- Hardcoded passwords
- Content-Security-Policy (CSP)
- Strict-Transport-Security (HSTS)
- X-Frame-Options
- X-Content-Type-Options
- X-XSS-Protection
- Referrer-Policy
- Permissions-Policy
- SSL certificate validity
- TLS protocol version
- Weak cipher suites
- HTTP to HTTPS redirect
- Mixed content detection
- SQL injection
- XSS vulnerabilities
- Command injection
- Directory traversal
- File inclusion (LFI/RFI)
- XML External Entity (XXE)
- Insecure deserialization
- WordPress version exposure
- XML-RPC enabled
- readme.html exposure
- license.txt exposure
- debug.log exposure
- wp-config.php backups
- Uploads directory listing
- wp-includes exposure
- User enumeration
- REST API exposure
- Vulnerable plugins
- File editing enabled
- Outdated versions
- .htaccess protection
- WPScan fingerprinting
Contributions are welcome! Please see CONTRIBUTING.md for guidelines.
This project is licensed under the MIT License - see the LICENSE file for details.
This tool is for authorized security testing only. Use only on websites you own or have permission to test. Unauthorized access to computer systems is illegal.
- GitHub: jackharsh0
- Email: hjain8483@gmail.com
- Repository: webtester
If you find this tool useful, please give it a β star on GitHub!
Built for the security community π