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
| # search for and reproduce output that matches a specific regex. | |
| alias search { | |
| local('$regex $regex2 $entry $event $bid $out $when'); | |
| # take all of the args, without processing/parsing as normal. | |
| if (strlen($0) > 7) { | |
| $regex = substr($0, 7); | |
| } | |
| else { | |
| berror($1, "search [regex]"); |
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
| global('%checkins'); | |
| on beacon_checkin { | |
| local('$last'); | |
| if ($1 in %checkins) { | |
| $last = %checkins[$1]; | |
| # has it been 1m since the last task acknowledgement? | |
| if (($3 - $last) > 60000) { |
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
| # import mimikatz creds from a file. | |
| # go to View -> Script Console | |
| # load this script | |
| # type importcreds /path/to/file.txt | |
| sub process { | |
| if ($luser eq "(null)" || $luser eq "") { | |
| return; | |
| } |
OlderNewer