Skip to content

Aim to identify vulnerabilities in NPM packages extracted from websites using Wappalyzer.

Notifications You must be signed in to change notification settings

enderphan94/WebPackScan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

Check NPM Packages Vulnerability

A Python tool to identify vulnerabilities in NPM packages extracted from websites using Wappalyzer.

Features

  • Extracts package information using Wappalyzer.
  • Filters JavaScript libraries and verifies their availability in the NPM registry.
  • Generates a package.json file for valid dependencies.
  • Runs npm audit to detect vulnerabilities and saves a detailed report.

Prerequisites

  1. Install Node.js and NPM: Node.js Downloads.
  2. Install Python (3.6+).
  3. Install Wappalyzer:
git clone https://github.com/tunetheweb/wappalyzer.git
cd wappalyzer
npm install

Usage

Manual

Step 1: Extract Packages

Use Wappalyzer to crawl a website and save the data:

node src/drivers/npm/cli.js https://example.com > input.json

Step 2: Run the Script

Run the vulnerability checker:

python vulPack.py input.json

Example

node src/drivers/npm/cli.js https://example.com >> input.json
python vulPack.py input.json

Automated

Place main.py and scan.sh scripts in the wappalyzer folder

./scan.sh <http://<url>>

Docker

docker pull enderphan94/webpack:latest
docker run --rm enderphan94/webpack <https://url>

Console Output

[RESULT] Technologies:
Name                            Version
------------------------------  ---------
PHP                             N/A
Bootstrap                       4.6.2
PayPal                          N/A
Google Ads                      N/A
theTradeDesk                    N/A
Hotjar                          N/A
Google Tag Manager              N/A
CookieFirst                     N/A
Akamai Bot Manager              N/A
Quantcast Measure               N/A
Microsoft Advertising           N/A
LazySizes                       N/A
jQuery                          3.7.1
Google Analytics                N/A
Facebook Pixel                  2.9.180
core-js                         3.32.2
reCAPTCHA                       N/A
Priority Hints                  N/A
Google Ads Conversion Tracking  N/A
Sectigo                         N/A
Akamai                          N/A
Webpack                         N/A
PWA                             N/A

Sanitized package name: Lodash -> lodash
Skipping package not in 'javascript-libraries': Contact Form 7
Generated package.json.
Creating package-lock.json...
Installing dependencies...
Running npm audit...
npm audit report
...
Saved audit report to audit-report.txt.

About

Aim to identify vulnerabilities in NPM packages extracted from websites using Wappalyzer.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published