Skip to content

Instantly share code, notes, and snippets.

View rsmudge's full-sized avatar

Raphael rsmudge

View GitHub Profile
@rsmudge
rsmudge / irc.cna
Created February 19, 2016 16:24
Aggressor Script IRC Example
#
# Quick/Dirty IRC Library for use with Aggressor Script
# https://www.cobaltstrike.com/aggressor-script/index.html
#
# irc_close($handle);
sub irc_close {
println($1, "QUIT :Good bye!");
closef($1);
}
@rsmudge
rsmudge / gist:6717164
Created September 26, 2013 17:04
Cortana Hail Mary / Find Attacks Example (taken from my development testing... not tested recently. This code was used in a highly stripped down version of Armitage)
#
# This code is related to the Attacks -> Find Attacks and Attacks -> Hail Mary features
#
popup attacks {
item "&Find Attacks" {
spawn(&runFindAttacks);
}
item "&Hail Mary" {
@rsmudge
rsmudge / gist:6717127
Created September 26, 2013 17:02
Cortana Find Attacks / Hail Mary Samples (taken out of context, not tested in production, used for testing in a stripped down Armitage)
#
# This code is related to the Attacks -> Find Attacks and Attacks -> Hail Mary features
#
sub exploitPorts {
local('$exploit %exploits $options $port');
foreach $exploit (modules("exploits")) {
$options = options("exploit", $exploit);
if ('RPORT' in $options) {