https://github.com/friedjof/ctf_llm
https://github.com/friedjof/ctf_llm
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/friedjof/ctf_llm
- Owner: Friedjof
- Created: 2023-08-05T00:03:08.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-08-05T00:09:55.000Z (almost 2 years ago)
- Last Synced: 2023-08-05T01:36:03.999Z (almost 2 years ago)
- Language: Python
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ChatGPT CTF Challenge
## Description
This is a CTF challenge based on the ChatGPT API. The goal is to find the flag by chatting with the bot.## Setup
Installing the requirements:
```bash
pip install -r requirements.txt
```Generating the flag:
```bash
python3 setup.py
```Running the server:
```bash
python3 server.py
```Open another terminal and send a POST request with the `client.py` script:
```bash
python3 client.py
```## Instructions
Now try to elicit the flag from the model in the client terminal via the chat. Any means is allowed.
If you think you have the flag, enter `!flag{}` in the chat. If you are right, the server will respond with `Correct!` if the flag is correct, otherwise it will respond with `Incorrect!`.