Pushover changes and added messages for ssh sessions

This commit is contained in:
Jonathan Echavarria
2016-09-22 10:19:20 -04:00
parent 74e9a3bb38
commit 8f6276db36
+20 -15
View File
@@ -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);
}