From dcff958feed6bdabdf20aef1a0c6d782fb7e6066 Mon Sep 17 00:00:00 2001 From: Jonathan Echavarria Date: Mon, 7 Mar 2016 22:21:13 +0000 Subject: [PATCH] Added titles for individual pushover messages --- Pushover/pushover-cs | 18 +++++++++--------- Pushover/pushover.cna | 38 ++++++++++++++++++-------------------- 2 files changed, 27 insertions(+), 29 deletions(-) mode change 100644 => 100755 Pushover/pushover-cs diff --git a/Pushover/pushover-cs b/Pushover/pushover-cs old mode 100644 new mode 100755 index fe459b3..79173e7 --- a/Pushover/pushover-cs +++ b/Pushover/pushover-cs @@ -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- - -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 "$a" #sample_username1 \ No newline at end of file +# add a line for each user you wish to receive a message +# pushover "$title" "$a" #sample_username1 diff --git a/Pushover/pushover.cna b/Pushover/pushover.cna index 3053725..bed32c7 100644 --- a/Pushover/pushover.cna +++ b/Pushover/pushover.cna @@ -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); -} \ No newline at end of file +}