8000 GitHub - CX330Blake/Spell-Whisperer
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

CX330Blake/Spell-Whisperer

Repository files navigation

Spell Whisperer

opengraph-image

Disclaimer

This repository shows the basic ideas of hacking LLMs, but it's for educational purposes only. I am not responsible for any misuse of this repository.

Introduction

Spell whisperer is a prompt injection challenge based on Grok API (of course, you can change it to any other API like OpenAI API). There's five challenges now, probably more in the future.

Deploy

Deploy on Vercel

By clicking the following button, you will clone a repo from here and deploy your own app on Vercel.

Deploy with Vercel

Deploy on your own

  1. Clone/Fork this repository

  2. Install all the dependencies

    npm install
  3. Export your Grok/OpenAI API Key using this command

    export XAI_API_KEY=YOUR_API_KEY
  4. Run npm build && npm start to start the server

Customize the challenges

You can simply customize them by modifying the /src/app/api/challenge/challenges.json. You'll see everything you need there.

Star History

Star History Chart

TODO

  1. Challenges page refactor (use a layout like PicoCTF or CTFd)
  2. Other challenges (not just flag stealer)
  3. Show others solutions
0