mirror of
https://github.com/trustedsec/trevorc2
synced 2026-06-08 17:57:56 +00:00
update requirements and fix for python3
This commit is contained in:
@@ -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,2 +1,3 @@
|
||||
bleach
|
||||
tornado
|
||||
pycrypto
|
||||
|
||||
+3
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user