Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script Update #151

Open
CIPHER0930 opened this issue Sep 15, 2023 · 2 comments
Open

Script Update #151

CIPHER0930 opened this issue Sep 15, 2023 · 2 comments

Comments

@CIPHER0930
Copy link

import loguru
import sys
import argparse

from pentestgpt.utils.pentest_gpt import pentestGPT

def main():
"""main function"""
parser = argparse.ArgumentParser(description="PentestGPT")

# parser arguments
# 0. log directory
parser.add_argument("--log_dir", type=str, default="logs")
# 1. Reasoning Model
parser.add_argument("--reasoning_model", type=str, default="gpt-3")
# 2. Parsing Model
parser.add_argument("--parsing_model", type=str, default="gpt-3.5-base")

# Depracted: set to False only for testing if using cookie
parser.add_argument("--useAPI", action="store_true", default=True)

args = parser.parse_args()

pentestGPTHandler = pentestGPT(
    reasoning_model=args.reasoning_model,
    parsing_model=args.parsing_model,
    useAPI=args.useAPI,
    log_dir=args.log_dir,
)

pentestGPTHandler.main()

if name == "main":
main()

@GreyDGL
Copy link
Owner

GreyDGL commented Sep 16, 2023

I don't see the issue here. May you help to elaborate?

@CIPHER0930
Copy link
Author

I don't see the issue here. May you help to elaborate?

I'd love to paticipate on this PentestGPT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants