An open API service indexing awesome lists of open source software.

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

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! ๐Ÿ’ฅ**