forked from UberGuidoZ/PentestGPT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
25 lines (18 loc) · 856 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import loguru
import sys
import argparse
from utils.pentest_gpt import pentestGPT
logger = loguru.logger
if __name__ == "__main__":
parser = argparse.ArgumentParser(description='PentestGPT')
parser.add_argument('--reasoning_model', type=str, default="gpt-4")
parser.add_argument('--useAPI', action="store_true", default=False)
args = parser.parse_args()
pentestGPTHandler = pentestGPT(reasoning_model=args.reasoning_model, useAPI=args.useAPI)
# you may use this one if you want to use OpenAI API (without GPT-4)
# pentestGPTHandler = pentestGPT(reasoning_model="gpt-3.5-turbo", useAPI=True)
# you may use this one if you want to use OpenAI API with GPT-4
# pentestGPTHandler = pentestGPT(reasoning_model="gpt-4", useAPI=True)
# configure the session
# TODO: add param parsing
pentestGPTHandler.main()