SpectreXSS is a modern web application designed to scan websites for potential Cross-Site Scripting (XSS) vulnerabilities. Built with cutting-edge technologies, it provides a user-friendly interface for security professionals and developers to identify and mitigate Reflected XSS risks.
Watch this video to see SpectreXSS in action:
Watch the SpectreXSS on YouTube
- Frontend Framework: Astro - A modern static site generator that allows for fast, optimized websites.
- Styling: Tailwind CSS - A utility-first CSS framework for rapid UI development.
- State Management: React Hooks (
useState,useEffect) - For managing component state and side effects. - Playwright: A browser automation library used for testing URLs by emulating a real browser environment to detect XSS vulnerabilities.
- Astro API Routes: - For handling server-side logic.
- Astrojs/node: For create a standalone server.
- Toast Notifications: Sonner - A lightweight toast notification library.
- Radix UI: Radix UI - Unstyled, accessible UI primitives for building design systems.
- React: - JavaScript library for building user interfaces, integrated with Astro for dynamic components.
- React Bits: Library with animated UI components.
- Node.js (v18 or higher)
- npm (v9 or higher)
- Clone the repository:
git clone https://github.com/sp1r1tt/spectrexss.git cd spectrexss - Install dependencies::
npm install
- Running the Development Server::
npm run dev
- Open your browser: Visit http://localhost:4321 to see the application running.
Enter a URL: Input the URL of the website you want to scan in the provided field.
Upload Custom Payloads: Optionally, upload a .txt file containing custom XSS payloads.
Upload URLs: Optionally, upload a .txt file containing multiple URLs to scan.
Start Scanning: Click the "Scan" button to begin the vulnerability scan.
View Results: The results will be displayed in the "Vulnerabilities" tab, showing any detected XSS vulnerabilities along with details such as payloads and test URLs.
/
├── public/ # Static assets (favicon)
├── src/
│ ├── assets/ # Project assets (images, logos)
│ ├── components/ # React components
│ ├── layouts/ # Layout components
│ ├── lib/ # Modules
│ ├── pages/ # Astro pages
│ ├── styles/ # Global styles and Tailwind configuration
├── astro.config.mjs # Astro configuration
├── package.json # Project dependencies and scripts
└── tsconfig.json # TypeScript configuration
This project is licensed under the BSD-3-Clause. See the LICENSE file for details.
SpectreXSS is intended for educational and ethical hacking purposes only. It should only be used to test systems you own or have explicit permission to test. Unauthorized use of third-party websites or systems without consent is illegal and unethical.
Happy scanning! 🚀
