Added titles for individual pushover messages

This commit is contained in:
Jonathan Echavarria
2016-03-07 22:21:13 +00:00
parent e17b07df91
commit dcff958fee
2 changed files with 27 additions and 29 deletions
Regular → Executable
+9 -9
View File
@@ -1,11 +1,10 @@
#!/bin/bash
# Very simple pushover bash script. Can be piped to, or fed text via argv(s)
# should be stored in /usr/bin/pushover-<app abbreviation>
if [[ $# -gt 0 ]]; then
a=$@
else
read a;
#!/bin/bash
if [[ $# -gt 0 ]]; then
title=$1
shift
a=$@
else
read a;
fi
pushover () {
@@ -13,4 +12,5 @@ pushover () {
}
# sample pushover user config
# pushover <app_token> <user_token> <app_title> "$a" #sample_username1
# add a line for each user you wish to receive a message
# pushover <app_token> <user_token> "$title" "$a" #sample_username1
+18 -20
View File
@@ -1,50 +1,48 @@
# This script adds basic pushover functionality to Cobalt Strike for all event log messages
# You must have pushover-cs in /usr/bin/pushover-cs, ensure it has execute permission(s) set
# run with ./agscript
# Und3rf10w
# This script adds basic pushover functionality to Cobalt Strike
# by Und3rf10w
on ready {
elog("Pushover notifications are now configured");
}
on event_notify {
$push = exec("/usr/bin/pushover-cs $2 $+ : $1");
$push = exec("/usr/bin/pushover-cs System_Event $2 $+ : $1");
@pushdata = readAll($push);
closef($push);
}
on event_join {
$push = exec("/usr/bin/pushover-cs $2 $+ : $1 has joined");
$push = exec("/usr/bin/pushover-cs User_Joined $2 $+ : $1 has joined");
@pushdata = readAll($push);
closef($push);
}
on event_newsite {
$push = exec("/usr/bin/pushover-cs $3 $+ : $1 $+ : $2 ");
$push = exec("/usr/bin/pushover-cs New_Site_Added $3 $+ : $1 $+ : $2 ");
@pushdata = readAll($push);
closef($push);
}
on event_action {
$push = exec("/usr/bin/pushover-cs $2 $+ : < $+ $3 $+ >: $1 ");
$push = exec("/usr/bin/pushover-cs Action_Performed $2 $+ : < $+ $3 $+ >: $1 ");
@pushdata = readAll($push);
closef($push);
}
on event_public {
$push = exec("/usr/bin/pushover-cs $3 $+ : < $+ $1 $+ >: $2 ");
$push = exec("/usr/bin/pushover-cs New_Message $3 $+ : < $+ $1 $+ >: $2 ");
@pushdata = readAll($push);
closef($push);
}
on event_quit {
$push = exec("/usr/bin/pushover-cs $2 $+ : $1 has quit");
$push = exec("/usr/bin/pushover-cs User_Left $2 $+ : $1 has quit");
@pushdata = readAll($push);
closef($push);
}
on event_beacon_inital {
$push = exec("/usr/bin/pushover-cs $2 $+ : $1 ");
$push = exec("/usr/bin/pushover-cs New_Beacon $2 $+ : $1 ");
@pushdata = readAll($push);
closef($push);
}
}