PentestGPT icon indicating copy to clipboard operation
PentestGPT copied to clipboard

Problem with setting cookies

Open tryhardYY opened this issue 2 years ago • 4 comments

Following your tutorial, you will https://chat.openai.com/api/auth/session The cookie in the request header under the website, paste it into config/chatgpt_ The cookie field of config.py. Run Python 3 test_ Connection.py has been unable to connect properly. I have also tried using co okiehttps://chat.openai.com/backend-api/conversations It doesn't work either. Can you provide a detailed installation tutorial? Thank you very much!

tryhardYY avatar Apr 28 '23 06:04 tryhardYY

Did you follow the most recent README on setting up the user agent?

GreyDGL avatar Apr 28 '23 06:04 GreyDGL

image-20230428144802439

tryhardYY avatar Apr 28 '23 06:04 tryhardYY

it this right? image-20230428150240657

tryhardYY avatar Apr 28 '23 07:04 tryhardYY

  • there are some things before you want to start, pay attention to the section "utils/chatgpt.py", "config/chatgpt_config.py" json is not imported, so you have to import it manually.

Screenshot_1

  • then there is another part of the error which is in the json decoder part. then the code below is an alternative to solve this problem. Screenshot_2

  • solved :D Screenshot_3

ThatNotEasy avatar Apr 28 '23 11:04 ThatNotEasy

Merge into #26

GreyDGL avatar May 01 '23 16:05 GreyDGL