https://github.com/kishwordulal1234/phantomxss
๐ Advanced Multi-Vector XSS Scanner | Automated crawling + payload testing | Reflected/Stored/DOM XSS detection | JSON reports | WAF evasion | Cookie support | 80+ modern payloads | Enterprise-ready security tool
https://github.com/kishwordulal1234/phantomxss
advanced-security bugbounty perl vulnerability-scanner xss xss-detection xss-exploitation xss-payload-list xss-payloads xss-scanner xss-vulnerability xsspayload
Last synced: 9 months ago
JSON representation
๐ Advanced Multi-Vector XSS Scanner | Automated crawling + payload testing | Reflected/Stored/DOM XSS detection | JSON reports | WAF evasion | Cookie support | 80+ modern payloads | Enterprise-ready security tool
- Host: GitHub
- URL: https://github.com/kishwordulal1234/phantomxss
- Owner: kishwordulal1234
- Created: 2025-07-12T11:54:41.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-08-04T13:17:19.000Z (11 months ago)
- Last Synced: 2025-08-04T17:32:33.249Z (11 months ago)
- Topics: advanced-security, bugbounty, perl, vulnerability-scanner, xss, xss-detection, xss-exploitation, xss-payload-list, xss-payloads, xss-scanner, xss-vulnerability, xsspayload
- Language: Perl
- Homepage:
- Size: 88.9 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
# ๐ PhantomXSS Scanner v2.0 ๐ฉ๏ธ๐ฅ
**PhantomXSS** is the **ultimate** Perl-powered XSS vulnerability scanner that obliterates boring security tools with its **blazing-fast** crawling, **vibrant** output, and **hard-hitting** detection for Reflected, Stored, and DOM-based XSS. With a ๐ฅ *sick* ASCII art banner and ๐จ rainbow-colored console, itโs the **badass** choice for pentesters and bug bounty hunters who want to *stand out* and *own the game*! ๐ดโโ ๏ธ
---
## ๐ Features That Slap
- **๐ฅ Multi-Mode Scanning**: Crush it with `all`, `r` (Reflected), `d` (DOM-based), or `sd` (Stored) XSS modes. Pick your poison! ๐
- **๐ธ๏ธ Smart Web Crawler**: Auto-discovers every nook and cranny of the target domain like a digital ninja. ๐ฅท
- **๐ Custom Payloads**: Load your own XSS payloads to *wreck* vulnerable sites with precision. ๐ฃ
- **๐ Form Buster**: Sniffs out forms and blasts them with payloads to uncover Stored XSS. ๐งจ
- **๐จ Eye-Popping Output**: Rainbow-colored results with emojis to make your terminal *pop*! ๐
- **โก Lightning Fast**: Optimized with timeouts and payload limits to keep scans *snappy*. ๐๏ธ
- **๐ฆ Cross-Platform Swagger**: Runs anywhere Perl livesโLinux, macOS, or Windows. ๐ช
- **๐ Why Itโs Epic**: Combines `LWP::UserAgent` and `WWW::Mechanize` for *unmatched* HTTP dominance, leaving other scanners in the dust. ๐
---
## ๐ ๏ธ Installation: Get Ready to Roll
### ๐ Prerequisites
- Perl 5.10+ (the OG scripting beast ๐ฆ)
- Unix-like system (Linux/macOS) or Windows with Perl
- Google Chrome for DOM XSS scans (because itโs *headless* and cool ๐)
### ๐ฆ Install Dependencies
Unleash the power with these Perl libraries via CPAN:
```bash
cpan install Getopt::Long LWP::UserAgent URI HTML::LinkExtor Term::ANSIColor WWW::Mechanize
```
Or, for Debian-based systems, slam this command:
```bash
sudo apt-get install libgetopt-long-descriptive-perl libwww-perl libhtml-linkextor-perl libterm-ansicolor-perl libwww-mechanize-perl
```
### โ
Verify the Vibe
Check if your setup is *lit*:
```bash
perl -e "use LWP::UserAgent; use WWW::Mechanize; use HTML::LinkExtor; use Term::ANSIColor; use Getopt::Long; print '๐ฅ Dependencies ready to rock! ๐ฅ\n';"
```
---
## ๐ฎ Usage: Time to Hack
Launch PhantomXSS with these *sick* commands:
```bash
perl xss-perl.pl -u -w -s [all|r|d|sd]
# OR
perl xss-perl.pl -uw -w -s [all|r|d|sd]
```
### ๐ฏ Command-Line Options
| Option | What It Does | Example |
|--------|--------------|---------|
| `-u` | Single URL to *smash* | `-u http://example.com` |
| `-uw` | File with a list of URLs to *destroy* | `-uw urls.txt` |
| `-w` | Payload file (defaults to `payloads.txt`) | `-w payloads.txt` |
| `-s` | Scan mode: `all` (go ham), `r` (Reflected), `d` (DOM), `sd` (Stored) | `-s all` |
### ๐ Example Commands
1. Wreck a single URL with all scans:
```bash
perl xss-perl.pl -u http://example.com -w payloads.txt -s all
```
2. Blast multiple URLs for Reflected XSS:
```bash
perl xss-perl.pl -uw urls.txt -w payloads.txt -s r
```
3. Hit a URL with Stored XSS and custom payloads:
```bash
perl xss-perl.pl -u http://example.com -w epic_payloads.txt -s sd
```
---
## โ Help Menu: Get the Lowdown
Run without args to see the *drip*:
```bash
perl xss-perl.pl
```
Output:
```
Usage: perl xss-perl.pl -u -w -s [all|r|d|sd]
or: perl xss-perl.pl -uw -w -s [all|r|d|sd]
```
---
## ๐ Payload File: Load Your Ammo
Your `payloads.txt` should have one *nasty* XSS payload per line. Example:
```
alert('XSS')
">alert(1)
javascript:alert('XSS')
```
**Pro Tip**: The script caps at 5 payloads for speed. Tweak the code to *unleash* more! ๐
---
## ๐ก๏ธ How It Dominates
1. **๐ธ๏ธ Crawling**: Uses `HTML::LinkExtor` to *sneak* through every link in the target domain.
2. **๐ Reflected XSS**: Injects payloads into URL params and checks for echoes. ๐ฅ
3. **๐ Stored XSS**: Finds forms, stuffs them with payloads, and hunts for persistent XSS. ๐งจ
4. **๐๏ธ DOM XSS**: Fires up headless Chrome to catch payloads in the DOM. ๐
5. **๐ Output**: Color-coded *bangers*:
- **๐ด Red**: Reflected XSS hits
- **๐ฃ Magenta**: Stored XSS jackpots
- **๐ Cyan**: DOM XSS wins
- **๐ก Yellow**: Scan progress and warnings
- **๐ข Green**: Crawl success
---
## ๐ Why PhantomXSS Is the GOAT
- **๐ฅ All-in-One**: Scans Reflected, Stored, and DOM XSSโmost tools canโt hang! ๐ค
- **๐ท๏ธ Crawl King**: Auto-finds subpages, saving you from manual URL hunting. ๐ธ๏ธ
- **โก Speed Demon**: Optimized with timeouts and limits for *blazing* performance. ๐
- **๐จ Visual Flex**: ASCII art and rainbow output make your terminal a *masterpiece*. ๐ผ๏ธ
- **๐ ๏ธ Hackable**: Swap payloads and modes to fit your *unique* style. ๐ฆ
---
## โ ๏ธ Limitations
- Needs Chrome for DOM XSS (itโs worth it, trust ๐).
- Stored XSS tests only the first two forms/payloads for speed.
- JavaScript-heavy sites or network hiccups might throw shade. ๐ฉ๏ธ
---
## ๐ค Contributing: Join the Crew
Got ideas to make PhantomXSS *sicker*? Fork the repo, add your *sauce*, and drop a pull request. Keep it clean and commented! ๐งโ๐ป
---
## ๐ License
MIT Licenseโcheck the `LICENSE` file for the deets. ๐
---
**๐ Get out there and *own* with PhantomXSS! ๐ฅ**