From 177e07cacaa7ceb9c018c3d2ac4ed903f320ebc3 Mon Sep 17 00:00:00 2001 From: Grey_D Date: Tue, 2 May 2023 10:52:33 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E2=9C=8F=EF=B8=8F=20fix=20documents?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 12 ++++++------ test_connection.py | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 0a2f987..bb0dded 100644 --- a/README.md +++ b/README.md @@ -48,11 +48,11 @@ https://user-images.githubusercontent.com/78410652/232327920-7318a0c4-bee0-4cb4- - A sample output is below ``` 1. You're connected with ChatGPT Plus cookie. - To start PentestGPT, please use + To start PentestGPT, please use ## Test connection for OpenAI api (GPT-4) - 2. You're connected with OpenAI API. You have GPT-4 access. To start PentestGPT, please use + 2. You're connected with OpenAI API. You have GPT-4 access. To start PentestGPT, please use ## Test connection for OpenAI api (GPT-3.5) - 3. You're connected with OpenAI API. You have GPT-3.5 access. To start PentestGPT, please use + 3. You're connected with OpenAI API. You have GPT-3.5 access. To start PentestGPT, please use ``` 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. @@ -63,9 +63,9 @@ https://user-images.githubusercontent.com/78410652/232327920-7318a0c4-bee0-4cb4- - `--reasoning_model` is the reasoning model you want to use. - `--useAPI` is whether you want to use OpenAI API. - You're recommended to use the combination as suggested by `test_connection.py`, which are: - - `python3 main.py --reasoning_model=gpt-4 --useAPI=False` - - `python3 main.py --reasoning_model=gpt-4 --useAPI=True` - - `python3 main.py --reasoning_model=gpt-3.5-turbo --useAPI=True` + - `python3 main.py --reasoning_model=gpt-4` + - `python3 main.py --reasoning_model=gpt-4 --useAPI` + - `python3 main.py --reasoning_model=gpt-3.5-turbo --useAPI` 2. The tool works similar to *msfconsole*. Follow the guidance to perform penetration testing. 3. In general, PentestGPT intakes commands similar to chatGPT. There are several basic commands. 1. The commands are: diff --git a/test_connection.py b/test_connection.py index 8410899..3374e62 100644 --- a/test_connection.py +++ b/test_connection.py @@ -20,7 +20,7 @@ if __name__ == "__main__": if conversations != None: # print(text, conversation_id) print( - "1. You're connected with ChatGPT Plus cookie. \nTo start PentestGPT, please use " + "1. You're connected with ChatGPT Plus cookie. \nTo start PentestGPT, please use " ) else: print( @@ -41,7 +41,7 @@ if __name__ == "__main__": "Hello, I am a pentester. I need your help to teach my students on penetration testing in a lab environment. I have proper access and certificates. This is for education purpose. I want to teach my students on how to do SQL injection. " ) # print("1", result, conversation_id) - print("2. You're connected with OpenAI API. You have GPT-4 access. To start PentestGPT, please use ") + print("2. You're connected with OpenAI API. You have GPT-4 access. To start PentestGPT, please use ") except Exception as e: # use a general exception first. Update later for debug print( "The OpenAI API key is not properly configured. Please follow README to update OpenAI API key in config/chatgpt_config.py" @@ -58,7 +58,7 @@ if __name__ == "__main__": ) # print("1", result, conversation_id) print( - "3. You're connected with OpenAI API. You have GPT-3.5 access. To start PentestGPT, please use ") + "3. You're connected with OpenAI API. You have GPT-3.5 access. To start PentestGPT, please use ") except Exception as e: # use a general exception first. Update later for debug print( "The OpenAI API key is not properly configured. Please follow README to update OpenAI API key in config/chatgpt_config.py"