Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion imports/eula_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def prompt_eula(self):
notice += '|infect your machines with live and dangerous malwares! |\n'
notice += '|___________________________________________________________________________|\n'
print(red(notice))
eula_answer = raw_input(
eula_answer = input(
'Type YES in captial letters to accept this EULA.\n > ')
if eula_answer == 'YES':
new = open(globals.vars.eula_file, 'a')
Expand Down
6 changes: 3 additions & 3 deletions imports/update_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def get_maldb_ver(self):
Get current malwareDB version and see if we need an update
'''
try:
with file(globals.vars.maldb_ver_file) as f:
with open(globals.vars.maldb_ver_file) as f:
return f.read()
except IOError:
print(
Expand All @@ -64,7 +64,7 @@ def update_db(self, curr_db_version):
print(green('[+]') + " theZoo is up to date.\n" + green('[+]') + " You are at " + new_maldb_ver + " which is the latest version.")
return

print(red('[+]') + " A newer version is available: " + new_maldb_ver + "!")
print(red('[+]') + " A newer version is available: " + new_maldb_ver.decode() + "!")
print(red('[+]') + " Updating...")

# Get the new DB and update it
Expand All @@ -78,7 +78,7 @@ def update_db(self, curr_db_version):
# Write the new DB version into the file

f = open(globals.vars.maldb_ver_file, 'w')
f.write(new_maldb_ver)
f.write(new_maldb_ver.decode())
f.close()
return

Expand Down