mirror of
https://github.com/Ekultek/Zeus-Scanner.git
synced 2026-03-11 08:55:51 +00:00
added prompt for when an error occurs, 'y' will create an auto issue for you
This commit is contained in:
parent
d813942c55
commit
0162ee134d
2 changed files with 28 additions and 13 deletions
|
|
@ -17,10 +17,6 @@ from lib.settings import (
|
|||
)
|
||||
|
||||
|
||||
def __mask_sensitive(data, arguments):
|
||||
pass
|
||||
|
||||
|
||||
def __get_encoded_string(filename="{}/var/auto_issue/oauth"):
|
||||
with open(filename.format(os.getcwd())) as data:
|
||||
return data.read()
|
||||
|
|
|
|||
37
zeus.py
37
zeus.py
|
|
@ -404,8 +404,12 @@ if __name__ == "__main__":
|
|||
logger.exception(set_color(
|
||||
"ran into exception '{}'...".format(e), level=50
|
||||
))
|
||||
fix_log_file()
|
||||
request_issue_creation()
|
||||
issue = prompt(
|
||||
"would you like to create an anonymous issue on Zeus's Github page", opts="yN"
|
||||
)
|
||||
if issue.lower().startswith("y"):
|
||||
fix_log_file()
|
||||
request_issue_creation()
|
||||
pass
|
||||
|
||||
urls_to_use = get_latest_log_file(URL_LOG_PATH)
|
||||
|
|
@ -436,8 +440,12 @@ if __name__ == "__main__":
|
|||
logger.exception(set_color(
|
||||
"ran into exception '{}'...".format(e), level=50
|
||||
))
|
||||
fix_log_file()
|
||||
request_issue_creation()
|
||||
issue = prompt(
|
||||
"would you like to create an anonymous issue on Zeus's Github page", opts="yN"
|
||||
)
|
||||
if issue.lower().startswith("y"):
|
||||
fix_log_file()
|
||||
request_issue_creation()
|
||||
pass
|
||||
|
||||
urls_to_use = get_latest_log_file(URL_LOG_PATH)
|
||||
|
|
@ -482,8 +490,12 @@ if __name__ == "__main__":
|
|||
"ran into exception '{}' and cannot continue, saved to current log file...".format(e),
|
||||
level=50
|
||||
))
|
||||
fix_log_file()
|
||||
request_issue_creation()
|
||||
issue = prompt(
|
||||
"would you like to create an anonymous issue on Zeus's Github page", opts="yN"
|
||||
)
|
||||
if issue.lower().startswith("y"):
|
||||
fix_log_file()
|
||||
request_issue_creation()
|
||||
|
||||
elif opt.spiderWebSite:
|
||||
problem_identifiers = ["http://", "https://"]
|
||||
|
|
@ -545,7 +557,10 @@ if __name__ == "__main__":
|
|||
))
|
||||
time.sleep(2)
|
||||
subprocess.call("python zeus.py --help", shell=True)
|
||||
|
||||
except IOError:
|
||||
logger.fatal(set_color(
|
||||
"provided file does not exist, make sure you have the full path...", level=50
|
||||
))
|
||||
except KeyboardInterrupt:
|
||||
logger.error(set_color(
|
||||
"user aborted process...", level=40
|
||||
|
|
@ -568,8 +583,12 @@ if __name__ == "__main__":
|
|||
logger.exception(set_color(
|
||||
"ran into exception '{}' exception has been saved to log file...".format(e), level=50
|
||||
))
|
||||
fix_log_file()
|
||||
request_issue_creation()
|
||||
issue = prompt(
|
||||
"would you like to create an anonymous issue on Zeus's Github page", opts="yN"
|
||||
)
|
||||
if issue.lower().startswith("y"):
|
||||
fix_log_file()
|
||||
request_issue_creation()
|
||||
|
||||
fix_log_file()
|
||||
shutdown()
|
||||
Loading…
Reference in a new issue