Skip to content

Latest commit

Β 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 

Repository files navigation

πŸ›‘οΈ Zero-Weak

A Python-based vulnerability scanner that automates the detection of common web vulnerabilities such as SQL Injection and Cross-Site Scripting (XSS). The tool is designed for students and developers to improve web application security by quickly identifying security flaws.

πŸš€ Features

  • SQL Injection Detection: Scans web forms and URLs for SQL injection vulnerabilities.
  • Cross-Site Scripting (XSS) Detection: Detects potential XSS vulnerabilities in web input fields.
  • PDF Reporting: Automatically generates detailed PDF reports of vulnerabilities found, including remediation suggestions.
  • Fast Scanning: Scans up to 100 URLs per session, reducing vulnerability scanning time by 40% compared to manual testing.
  • Easy to Use: Simple command-line interface for quick and efficient scanning.

πŸ› οΈ Technologies Used

  • Python: Core programming language for the scanner.
  • BeautifulSoup: HTML and XML parsing to interact with web forms.
  • Requests: For making HTTP requests and fetching content from URLs.
  • Reportlab: For generating PDF reports.

πŸ“‚ Project Structure

β”œβ”€β”€ scanner.py              # Core vulnerability scanner logic
β”œβ”€β”€ report_generator.py      # Module for generating PDF reports
β”œβ”€β”€ utils.py                 # Utility functions (e.g., payloads, input sanitization)
β”œβ”€β”€ README.md                # Project documentation
β”œβ”€β”€ requirements.txt         # Python dependencies
└── LICENSE                  # License file

βš™οΈ Setup & Installation

  1. Clone the repository:

    git clone https://github.com/libberaj/Zero-Weak
  2. Install dependencies:

    Make sure you have Python 3 installed. Install required Python libraries using the following command:

    pip install -r requirements.txt

    The dependencies are:

    • requests
    • beautifulsoup4
    • reportlab
  3. Run the Scanner:

    To start scanning, use the following command:

    python scanner.py

    By default, the tool will prompt you for a target URL or list of URLs to scan for vulnerabilities.

πŸ“ Usage

  1. Basic Scan:

    python scanner.py --url https://example.com

    This will initiate a scan on the specified URL for SQL Injection and XSS vulnerabilities.

  2. Scan Multiple URLs:

    You can also scan multiple URLs by passing them in a text file:

    python scanner.py --file urls.txt
  3. Generate PDF Report:

    After scanning, the tool automatically generates a report in the /reports/ directory. Each report will contain:

    • Vulnerabilities found
    • Payloads used
    • Recommended fixes

πŸ“Š Sample Report

Example of a vulnerability report:

Vulnerability: SQL Injection
URL: https://example.com/search?query=test
Payload: ' OR '1'='1
Recommendation: Use parameterized queries to prevent SQL Injection attacks.

πŸ›‘οΈ Future Improvements

  • Add support for more vulnerabilities (e.g., CSRF, SSRF).
  • Integrate AI-based analysis for detecting complex attack patterns.
  • Implement a GUI for easier use.

🀝 Contributing

Contributions are welcome! Please fork the repository and create a pull request. Make sure to add tests for any new features or bug fixes.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages