Skip to content

Commit 9d056e0

Browse files
committed
update README
1 parent 7d7af58 commit 9d056e0

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
## Introduction
2121
- **PentestGPT** is a penetration testing tool empowered by **ChatGPT**.
2222
- It is designed to automate the penetration testing process. It is built on top of ChatGPT and operate in an interactive mode to guide penetration testers in both overall progress and specific operations.
23-
- **PentestGPT** is able to solve easy to medium HackTheBox machines, and other CTF challenges. You can check [this](./resources/README.md) example in `resources` where we use it to solve HackTheBox challenge *template*.
23+
- **PentestGPT** is able to solve easy to medium HackTheBox machines, and other CTF challenges. You can check [this](./resources/README.md) example in `resources` where we use it to solve HackTheBox challenge **TEMPLATED** (web challenge).
2424
- A sample testing process of **PentestGPT** on a target VulnHub machine (Hackable II) is available at [here](./resources/PentestGPT_Hackable2.pdf).
2525
- A sample usage video is below: (or available here: [Demo](https://youtu.be/h0k6kWWaCEU))
2626

@@ -34,7 +34,11 @@ https://user-images.githubusercontent.com/78410652/232327920-7318a0c4-bee0-4cb4-
3434
## Installation
3535
1. Install `requirements.txt` with `pip install -r requirements.txt`
3636
2. (Deprecated: Will update support for non-plus member later.) ~~Install `chatgpt-wrapper` if you're non-plus members: `pip install git+https://github.com/mmabrouk/chatgpt-wrapper`. More details at: https://github.com/mmabrouk/chatgpt-wrapper. Note that the support for non-plus members are not optimized.~~
37-
3. Configure the keys in `config`. You may follow a sample by `cp config/chatgpt_config_sample.py. config/chatgpt_config.py`.
37+
3. Configure the cookies in `config`. You may follow a sample by `cp config/chatgpt_config_sample.py. config/chatgpt_config.py`.
38+
- Login to ChatGPT session page.
39+
- Find the request cookies to `https://chat.openai.com/api/auth/session` and paste it into the `cookie` field of `config/chatgpt_config.py`. (You may use Inspect->Network, find session and copy the `cookie` field in `request_headers` to `https://chat.openai.com/api/auth/session`)
40+
- Note that the other fields are temporarily deprecated due to the update of ChatGPT page.
41+
4. To verify that the connection is configured properly, you may run `python3 utils/chatgpt.py`. You should see some sample conversation with ChatGPT.
3842

3943

4044

0 commit comments

Comments
 (0)