Modified argparse to run in its own get_args function

master
John Hammond 2021-09-04 01:39:17 -04:00
parent 249aee4142
commit 7aa7d7a59e
1 changed files with 40 additions and 36 deletions

View File

@ -8,6 +8,9 @@ import urllib.parse
import requests
def get_args():
parser = argparse.ArgumentParser()
parser.add_argument(
@ -45,6 +48,7 @@ parser.add_argument(
)
args = parser.parse_args()
return args
class Exploit:
@ -137,7 +141,7 @@ class Exploit:
if __name__ == "__main__":
exploit = Exploit(args)
exploit = Exploit(get_args())
success = exploit.run()
if not success: