Comments (8)
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.
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'
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.
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.
@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.
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
.
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.
@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.
@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.
@d0rb The setup doc has been updated. Please try python3 test_connection.py
from pentestgpt.
Related Issues (20)
- Can you add support for groq.com? HOT 2
- Suspicious on using GPT-4-Turbo HOT 1
- KeyError HOT 5
- Solved
- How to debug project step by step๏ผ HOT 3
- RetryError HOT 3
- dataset HOT 1
- can not use LLM
- PentestGPT will not load when using GPT4All option HOT 3
- Cannot close PentestGPT with "/bye" when opening normally with "pentestgpt" HOT 5
- What is the CHATGPT_COOKIE cookie that must be set for pentestgpt-connection to work? HOT 1
- vector database HOT 1
- no gpt4all.py HOT 1
- use <SHIFT + right arrow> not working HOT 2
- [Feature] Decoupling next commands with the tool inputs.
- [Feature] Update to GPT4o and Integrate the Image Module HOT 1
- Can you add Groq and Together API like you did with gpt4o?
- SyntaxError: keyword argument repeated: api_key
- Completed tasks in PTT not marked as completed
- shift + right-arrow Exception: RetryError HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pentestgpt.