docs: ✏️ fix documents

This commit is contained in:
Grey_D 2023-05-02 10:52:33 +08:00
parent 3bed2c0360
commit 177e07caca
2 changed files with 9 additions and 9 deletions

View File

@ -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 <python3 main.py --reasoning_model=gpt-4 --useAPI=False>
To start PentestGPT, please use <python3 main.py --reasoning_model=gpt-4>
## Test connection for OpenAI api (GPT-4)
2. You're connected with OpenAI API. You have GPT-4 access. To start PentestGPT, please use <python3 main.py --reasoning_model=gpt-4 --useAPI=True>
2. You're connected with OpenAI API. You have GPT-4 access. To start PentestGPT, please use <python3 main.py --reasoning_model=gpt-4 --useAPI>
## 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 <python3 main.py --reasoning_model=gpt-3.5-turbo --useAPI=True>
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>
```
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:

View File

@ -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 <python3 main.py --reasoning_model=gpt-4 --useAPI=False>"
"1. You're connected with ChatGPT Plus cookie. \nTo start PentestGPT, please use <python3 main.py --reasoning_model=gpt-4>"
)
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 <python3 main.py --reasoning_model=gpt-4 --useAPI=True>")
print("2. You're connected with OpenAI API. You have GPT-4 access. To start PentestGPT, please use <python3 main.py --reasoning_model=gpt-4 --useAPI>")
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 <python3 main.py --reasoning_model=gpt-3.5-turbo --useAPI=True>")
"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>")
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"