Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fuckup1337/bc15bc12b31058e6cb3a5abb565fbb24 to your computer and use it in GitHub Desktop.
Save fuckup1337/bc15bc12b31058e6cb3a5abb565fbb24 to your computer and use it in GitHub Desktop.
NewIpAlert.cna
on heartbeat_15m {
foreach $beacon (beacons()) {
println("[VPN] Running command on id: " . $beacon['id'] . ", hostname:" . binfo($beacon['id'], "computer") . "\n");
$id = $beacon['id'];
bipconfig($id,{
print("[VPN] Captured network interfaces from " . binfo($1, "computer") . ", looking for a new IPs to alert on\n");
exec("python3.7 /<fullpath>/AlertOnNewIp.py --data " . transform($2, "powershell-base64") . " --user " . binfo($1, "user") . " --computer " . binfo($1, "computer"));
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment