Skip to content

Craft engaging XSS challenges effortlessly with CTF-XSS-BOT. This template simplifies setting up an environment for Capture The Flag competitions. Simulate admin actions using Puppeteer and control interactions with rate limiting.

License

Notifications You must be signed in to change notification settings

babywyrm/CTF-XSS-BOT

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CTF-XSS-BOT

Alt text

CTF-XSS-BOT is a flexible template designed for crafting Cross-Site Scripting (XSS) challenges in Capture The Flag (CTF) competitions. This project provides a foundation for effortlessly setting up an environment to host XSS challenges, while utilizing Puppeteer to simulate web browser behavior.

Features

  • Customize APP Name: Easily set a custom application name to match your challenge theme.
  • White List URL By Regex: Define a regex pattern to whitelist specific URLs for challenge interaction.
  • Rate Limiting: Prevent abuse with built-in rate limiting to control participant interactions.

Usage

  1. Clone this repository:

    git clone https://github.com/dimasma0305/CTF-XSS-BOT.git
    cd CTF-XSS-BOT
  2. Customize the source code of your challenge at ./src/*.

  3. Configure the parameters in docker-compose.yaml:

    ...snip...
     environment:
         APPNAME: YourAppName
         APPURL: YourAppURL
         APPURLREGEX: YourAppURLRegex
         APPFLAG: dev{flag}
         APPLIMIT: 2
         APPLIMITTIME: 60
     ...snip...
  4. Deploy the template using Docker Compose:

    docker-compose up -d

    Deploy with Docker

  5. Your ./src will be hosted at http://localhost/, and the bot can be accessed at http://localhost/report. Customize your XSS challenges and empower participants to master web security.

About

Craft engaging XSS challenges effortlessly with CTF-XSS-BOT. This template simplifies setting up an environment for Capture The Flag competitions. Simulate admin actions using Puppeteer and control interactions with rate limiting.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • EJS 45.0%
  • JavaScript 41.0%
  • HTML 9.2%
  • Dockerfile 4.8%