Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Commit

Permalink
Build 216 - Initial commit on the path to python3. Only manual change…
Browse files Browse the repository at this point in the history
…s so far. Next stop, automated conversion tools. Issue #112
  • Loading branch information
sethsec committed Aug 23, 2019
1 parent 7493133 commit 7569ec0
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions celerystalk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/python3

"""
Usage:
Expand Down Expand Up @@ -89,7 +89,7 @@ import csv

from lib.nmap import nmapcommand

build=str(215)
build=str(216)

def print_banner():

Expand Down Expand Up @@ -466,7 +466,7 @@ def main(arguments):
if arguments["reset"]:
lib.administrative.backup_all_workspaces(backup_file=arguments["-f"])
print("[!] WARNING: This action destroy the celerystalk database and flush the redis DB.")
answer = raw_input("Are you sure you want to continue? (y\N): ")
answer = input("Are you sure you want to continue? (y|N): ")
print("")
if (answer == "Y") or (answer == "y"):
from subprocess import Popen
Expand Down Expand Up @@ -505,7 +505,7 @@ def main(arguments):
# exit()
# lib.administrative.backup_all_workspaces(backup_file=arguments["-f"])
# print("[!] WARNING: This action destroy the celerystalk database and flush the redis DB.")
# answer = raw_input("Are you sure you want to continue? (y\N): ")
# answer = input("Are you sure you want to continue? (y|N): ")
# print("")
# if (answer == "Y") or (answer == "y"):
# from subprocess import Popen
Expand Down Expand Up @@ -551,7 +551,7 @@ def main(arguments):

screenshots = lib.screenshot.does_aquatone_folder_exixst()
if screenshots == False:
answer = raw_input("[!] Would you like to take screenshots of all paths before generating the report? [Y\\n] ")
answer = input("[!] Would you like to take screenshots of all paths before generating the report? [Y\\n] ")
if (answer == "Y") or (answer == "y") or (answer == ""):
lib.screenshot.screenshot_command(arguments)
exit()
Expand Down Expand Up @@ -694,7 +694,7 @@ def main(arguments):
if arguments["limit"]:
paths = lib.screenshot.get_max_screenshots(workspace,config_file)
for path in paths:
print path
print(path)
else:
paths_rows = lib.db.get_all_paths(workspace)
for row in paths_rows:
Expand Down Expand Up @@ -888,14 +888,14 @@ def main(arguments):
if str(vhost) not in all_submitted_vhosts_list:
print("[!] [{0}] has never been submitted, so it can't be rescanned.".format(vhost))
else:
answer = raw_input("[!] {0} has already been scanned. Scan it again? [Y\\n] ".format(vhost))
answer = input("[!] {0} has already been scanned. Scan it again? [Y\\n] ".format(vhost))
if (answer == "Y") or (answer == "y") or (answer == ""):
ip = db.get_vhost_ip(vhost, workspace)[0][0]
db.update_vhosts_submitted(ip, vhost, workspace, 0)
else:
for submitted_vhost in all_submitted_vhosts:
vhost = submitted_vhost[0]
answer = raw_input("[!] {0} has already been scanned. Scan it again? [Y\\n] ".format(vhost))
answer = input("[!] {0} has already been scanned. Scan it again? [Y\\n] ".format(vhost))
if (answer == "Y") or (answer == "y") or (answer == ""):
ip = db.get_vhost_ip(vhost,workspace)[0][0]
db.update_vhosts_submitted(ip, vhost, workspace, 0)
Expand Down

0 comments on commit 7569ec0

Please sign in to comment.