Skip to content

subhammishra90/vuln-scanner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ”Ž Web Application Vulnerability Scanner (Node.js)

A lightweight backend-only vulnerability scanner built with Node.js.
It scans target web applications for common vulnerabilities like Cross-Site Scripting (XSS) and SQL Injection (SQLi), then generates a JSON report.

πŸš€ Features

βœ… Detects XSS vulnerabilities with common payloads

βœ… Detects SQL Injection with test payloads

βœ… Automated scanning via CLI

βœ… Generates detailed scan-report.json

βœ… Simple & extensible design (easy to add new tests)

πŸ“‚ Project Structure
vuln-scanner/
│── package.json        # Node project config
│── vulnerability-scanner.js   # Main scanner script
│── scan-report.json    # Auto-generated report (after scan)

⚑ Installation

Install Node.js
 (LTS recommended).

Clone the repo:

git clone https://github.com/your-username/vuln-scanner.git
cd vuln-scanner


Install dependencies:

npm install axios

πŸ› οΈ Usage

Run the scanner on a target URL:

node vulnerability-scanner.js http://example.com/search


Output example (saved in scan-report.json):

{
  "xss": [
    { "payload": "<script>alert(1)</script>", "vulnerable": false }
  ],
  "sqli": [
    { "payload": "' OR '1'='1", "vulnerable": true }
  ]
}

πŸ”’ Disclaimer

This tool is for educational & ethical purposes only.

⚠️ Do not scan websites without proper authorization.

About

πŸ”Ž Web Application Vulnerability Scanner (Node.js)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors