You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-5Lines changed: 8 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -47,6 +47,7 @@
47
47
48
48
<!-- ABOUT THE PROJECT -->
49
49
## General Updates
50
+
-[Update on 19/05/2023] A support to chatGPT cookie usage is added. Please read the installation section for more details.
50
51
-[Update on 13/05/2023] I'll add more demo videos for PentestGPT. Below are the available ones:
51
52
-**PentestGPT for OSCP-like machine: [HTB-Jarvis](https://youtu.be/lAjLIj1JT3c)**. This is the first part only, and I'll complete the rest when I have time.
52
53
-**PentestGPT on [HTB-Lame](https://youtu.be/Vs9DFtAkODM)**. This is an easy machine, but it shows you how PentestGPT skipped the rabbit hole and worked on other potential vulnerabilities.
@@ -86,12 +87,14 @@ Before installation, we recommend you to take a look at this [installation video
86
87
87
88
1. Install `requirements.txt` with `pip install -r requirements.txt`
88
89
2. Configure the cookies in `config`. You may follow a sample by `cp config/chatgpt_config_sample.py config/chatgpt_config.py`.
89
-
- If you're using cookie, please watch this video: https://youtu.be/IbUcj0F9EBc. The general steps are:
90
-
- Login to ChatGPT session page.
90
+
-**If you're using cookie, please go through the following details!!!**
91
+
- please watch this video: https://youtu.be/IbUcj0F9EBc.
92
+
-*Use Chrome* to login to ChatGPT.
91
93
- In `Inspect - Network`, find the connections to the ChatGPT session page.
92
-
- Find the cookie in the **request header** in the request 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`)
93
-
- Note that the other fields are temporarily deprecated due to the update of ChatGPT page.
94
+
- Find the cookie in the **request header** in the request to `https://chat.openai.com/public-api/conversation_limit` 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/public-api/conversation_limit`)
94
95
- Fill in `userAgent` with your user agent.
96
+
- During the usage of PentestGPT, **You may be asked to refresh the session as cookie expired**. Please copy the request to `https://chat.openai.com/public-api/conversation_limit` as **cURL** and paste it to `config/chatgpt_config_curl.txt`. Follow the instruction and the session will be updated.
97
+
- Note that each cookie may work for around 30 mins.
95
98
- If you're using API:
96
99
- Fill in the OpenAI API key in `chatgpt_config.py`.
97
100
3. To verify that the connection is configured properly, you may run `python3 test_connection.py`. You should see some sample conversation with ChatGPT.
@@ -104,7 +107,7 @@ Before installation, we recommend you to take a look at this [installation video
104
107
## Test connection for OpenAI api (GPT-3.5)
105
108
3. You're connected with OpenAI API. You have GPT-3.5 access. To start PentestGPT, please use <python3 main.py --reasoning_model=gpt-3.5-turbo --useAPI>
106
109
```
107
-
4. (Notice) The above verification process for cookie. If you encounter errors after several trials, please try to refresh the page, repeat the above steps, and try again. You may also try with the cookie to `https://chat.openai.com/backend-api/conversations`. Please submit an issue if you encounter any problem.
110
+
5. (Notice) The above verification process for cookie. If you encounter errors after several trials, please try to refresh the page, repeat the above steps, and try again. You may also try with the cookie to `https://chat.openai.com/backend-api/conversations`. Please submit an issue if you encounter any problem.
0 commit comments