Coder Social home page Coder Social logo

Comments (8)

GreyDGL avatar GreyDGL commented on July 23, 2024 2

Hi there, did you try to copy the sample config into the config directory? cp config/chatgpt_config_sample.py. config/chatgpt_config.py
After this, you need to configure the keys in the configuration file.

from pentestgpt.

d0rb avatar d0rb commented on July 23, 2024

Hi there, did you try to copy the sample config into the config directory? cp config/chatgpt_config_sample.py. config/chatgpt_config.py After this, you need to configure the keys in the configuration file.

Hey thanks for replaying <3
Yes , sadly still getting ModuleNotFoundError: No module named 'config.chatgpt_config'
image

Also , sorry again but what keys are required? it's not mentioned in the docs ( anti skidies? )
Hopefully I could get this running otherwise would just mention a thumbs up for this , looks super cool and creative.

from pentestgpt.

GreyDGL avatar GreyDGL commented on July 23, 2024

I updated the readme a little bit for the required cookies to use ChatGPT.
For the ModuleNotFoundError, may you paste a complete command history and output so I can help to debug? Thanks!

from pentestgpt.

d0rb avatar d0rb commented on July 23, 2024

@GreyDGL thanks I will take a look at the new section you added.
Here's the history , sadly I dont have the output's history but I was trying to fix 'ModuleNotFoundError: No module named 'config.chatgpt_config' .

  241  git clone https://github.com/GreyDGL/PentestGPT
  242  ls
  243  cd PentestGPT/
  244  pip install -r requirements.txt
  248  python main.py
  250  sudo pip install config
  251  sudo python main.py
  253  sudo pip install -r requirements.txt
  254  sudo python main.py
  276  nano example_chatgpt_playwright.py
  277  sudo cp config/chatgpt_config_sample.py. config/chatgpt_config.py
  278  sudo cp config/chatgpt_config_sample.py config/chatgpt_config.py
  280  python main.py
  282  cd config
  284  ls
  285  nano chatgpt_config
  286  rm chatgpt_config
  287  rm chatgpt_config.py
  288  ls
  289  rm chatgpt_config.py
  290  ls
  291  rn chatgpt_config_sample.py  chatgpt_config.py
  292  sudo mv chatgpt_config_sample.py  chatgpt_config.py
  293  ls
  294  cd ~
  295  cd PentestGPT/
  296  ls
  297  clear
  298  python main.py
  299  ls
  300  cd config
  301  ls
  302  python main.py
  303  ~
  304  cd ~
  305  cd PentestGPT/
  306  python main.py
  307  cd config/
  308  ls
  309  nano chatgpt_config.py
  310  clear
  311  history

from pentestgpt.

BCanary avatar BCanary commented on July 23, 2024

I have fixed it by touch __init__.py in config folder. As I can understand, by this command python will see this as a module and it will work fine
image
.

But I still cant login, as in that issue #13 (comment)
UPD: I am not PLUS user so I got why its not works for me

from pentestgpt.

GreyDGL avatar GreyDGL commented on July 23, 2024

@BCanary Thanks for fixing the missing module issue. I'll update the repo accordingly. @d0rb You can check if this solution helps.
Non-plus users are not supported now. This is because OpenAI implements additional CloudFlare verification to non-plus users. I'll implement an API-based solution soon.

from pentestgpt.

d0rb avatar d0rb commented on July 23, 2024

@BCanary Thanks for fixing the missing module issue. I'll update the repo accordingly. @d0rb You can check if this solution helps. Non-plus users are not supported now. This is because OpenAI implements additional CloudFlare verification to non-plus users. I'll implement an API-based solution soon.

Hey I tried BCanary's solution also pulled the lat commit but now sadly Im getting a different error
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char

I haven't set up my cookies yet because I'm first trying to get it running somwhow , but when Im trying to run python3 utils/chatgpt.py just to check if anything works Im getting the last error ,
ModuleNotFoundError: No module named 'config.chatgpt_config'

I did piped the requirements both with pip and pip3

from pentestgpt.

GreyDGL avatar GreyDGL commented on July 23, 2024

@d0rb The setup doc has been updated. Please try python3 test_connection.py

from pentestgpt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.