mirror of
https://github.com/Und3rf10w/Aggressor-scripts
synced 2026-06-08 12:46:53 +00:00
Pushover changes and added messages for ssh sessions
This commit is contained in:
+20
-15
@@ -1,50 +1,55 @@
|
||||
# This script adds basic pushover functionality to Cobalt Strike
|
||||
# Ensure that you configure the pushover users in pushover-cs, ensure it is executeable
|
||||
# @Und3rf10w
|
||||
|
||||
|
||||
on ready {
|
||||
elog("Pushover notifications are now configured");
|
||||
$pushover = script_resource("pushover-cs.sh")
|
||||
}
|
||||
|
||||
|
||||
on event_notify {
|
||||
$push = exec("$pushover-cs System_Event $2 $+ : $1");
|
||||
$push = exec("/usr/bin/pushover-cs CS:System_Event $2 $+ : $1");
|
||||
@pushdata = readAll($push);
|
||||
closef($push);
|
||||
}
|
||||
|
||||
|
||||
on event_join {
|
||||
$push = exec("$pushover-cs User_Joined $2 $+ : $1 has joined");
|
||||
$push = exec("/usr/bin/pushover-cs CS:User_Joined $2 $+ : $1 has joined");
|
||||
@pushdata = readAll($push);
|
||||
closef($push);
|
||||
}
|
||||
|
||||
|
||||
on event_newsite {
|
||||
$push = exec("$pushover-cs New_Site_Added $3 $+ : $1 $+ : $2 ");
|
||||
$push = exec("/usr/bin/pushover-cs CS:New_Site_Added $3 $+ : $1 $+ : $2 ");
|
||||
@pushdata = readAll($push);
|
||||
closef($push);
|
||||
}
|
||||
|
||||
|
||||
on event_action {
|
||||
$push = exec("$pushover-cs Action_Performed $2 $+ : < $+ $3 $+ >: $1 ");
|
||||
$push = exec("/usr/bin/pushover-cs CS:Action_Performed $2 $+ : < $+ $3 $+ >: $1 ");
|
||||
@pushdata = readAll($push);
|
||||
closef($push);
|
||||
}
|
||||
|
||||
|
||||
on event_public {
|
||||
$push = exec("$pushover-cs New_Message $3 $+ : < $+ $1 $+ >: $2 ");
|
||||
$push = exec("/usr/bin/pushover-cs CS:New_Message $3 $+ : < $+ $1 $+ >: $2 ");
|
||||
@pushdata = readAll($push);
|
||||
closef($push);
|
||||
}
|
||||
|
||||
|
||||
on event_quit {
|
||||
$push = exec("$pushover-cs User_Left $2 $+ : $1 has quit");
|
||||
$push = exec("/usr/bin/pushover-cs CS:User_Left $2 $+ : $1 has quit");
|
||||
@pushdata = readAll($push);
|
||||
closef($push);
|
||||
}
|
||||
|
||||
on beacon_initial {
|
||||
$push = exec("$pushover-cs New_Beacon New Beacon Received - ID: $1 | Hostname: " . binfo($1, "computer"));
|
||||
$push = exec("/usr/bin/pushover-cs CS:New_Beacon New Beacon Received - ID: $1 | Hostname: " . binfo($1, "computer"));
|
||||
@pushdata = readAll($push);
|
||||
closef($push);
|
||||
}
|
||||
|
||||
on ssh_initial {
|
||||
$push = exec("/usr/bin/pushover-cs CS:New_SSH New SSH Session Received - ID: $1 | Hostname " . bshell($1, "hostname"));
|
||||
@pushdata = readAll($push);
|
||||
closef($push);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user