A standalone Blind XSS Script.
The script is a combination between PHP and JavaScript, it captures the data using JS and send it to the script itself, then it generates report files and deliver them through telegram.
- Web Server running on Linux with a domain and an SSL certificate.
- Telegram account (To receive BXSS reports)
Easy to setup. Fast. Reachable.
- Captures: IP, User-Agent, Date-Time, Local Storage, Session Storage, Cookies, Referrer, Origin, URL, HTML, If fired from an Iframe
- Session Builder: A JavaScript that can rebuild the session, open the captured URL and the devtools then paste it in the console and hit enter. If you're luck enough you can takeover the session.
- Telegram Notifications: Faster and easier to setup than e-mails and more reachable.
- Anti-Spam: You should only receive one/two notification for each captured URL. However, the script resets every once in a while to notify you again later.
- Encryption: You can set a password in the script and the report you receive in telegram will be a zip file protected by a password. (Telegram bots are not using end-to-end encryption).
- HTML Snapshot: Is an HTML file that will be delivered with the report, it should look similar to the page of your target.
- Go to telegram and have a chat with the @botfather.
- Write /start in the chat and create new bot.
- You should receive your bot token when you create it.
- Save the token aside.
- Now go to your newly created bot chat and start it then say hi.
- Then go to:
https://api.telegram.org/bot<bot_token>/getUpdates
- And save your chat id.
- Open the XSSFire Script and modify the following lines:
$chat_id = "<Telegram Chat ID>"; // Your Telegram Chat ID
$token = "<Telegram Bot Access Token>"; // Your telegram Bot Access token
$password = False; //Protect the Blind XSS Report with a password. Leave as False if not used.
- Upload the script to your server.
To generate payloads you might consider using the Blind-XSS-Manager https://github.com/SeifElsallamy/Blind-XSS-Manager You can simply create payloads through this extension by entering yourdomain.com/XSSFire.js in the domain field and click Save.
Thanks to GPT-3 xD