-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathPS3_Blacklist_Sniffer.bat
1856 lines (1827 loc) · 73.2 KB
/
PS3_Blacklist_Sniffer.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
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
::------------------------------------------------------------------------------
:: NAME
:: PS3_Blacklist_Sniffer.bat - PS3 Blacklist Sniffer
::
:: DESCRIPTION
:: Track your blacklisted people new usernames and IPs.
:: Detect blacklisted people who are trying
:: to connect in or who are already in to your session.
::
:: REQUIREMENTS
:: Windows 10 or 11 (x86/x64)
:: Wireshark (with Npcap/Winpcap installed)
:: webMAN MOD ((PS3 Notification) not obligatory)
::
:: AUTHOR
:: IB_U_Z_Z_A_R_Dl
::
:: CREDITS
:: @Rosalyn - *giving me the force*
:: @NotYourDope - Helped me for generating the PS3 console notifications.
:: @NotYourDope - Helped me for English translations.
:: @Simi - Helped me for some English translations.
:: @Grub4K - Creator of the timer algorithm.
:: @Grub4K - Creator of the the ending newline detection algorithm.
:: @Grub4K - Helped me improving the hexadecimal algorithms.
:: @Grub4K - Helped me improving the updater algorithm.
:: @Grub4K - Quick analysis of the source code to improve it.
:: @Grub4K and @Sintrode
:: Helped me understand the Windows 7 (x86)
:: "find.exe" command bug with the 65001 codepage.
:: To avoid similar problems in the future and solve it,
:: I decided to remove the support for Windows 7, 8, 8.1
:: @Grub4K and @Sintrode
:: Helped me solve and understand a Batch bug with "FOR" loop variables.
:: @sintrode and https://www.dostips.com/forum/viewtopic.php?t=6560
:: ^^ "How to put inner quotes in outer quotes in "FOR" loop?"
::
:: A project created in the "server.bat" Discord: https://discord.gg/GSVrHag
::------------------------------------------------------------------------------
@echo off
cls
setlocal DisableDelayedExpansion
pushd "%~dp0"
for /f %%A in ('copy /z "%~nx0" nul') do (
set "\R=%%A"
)
for /f %%A in ('forfiles /m "%~nx0" /c "cmd /c echo(0x08"') do (
set "\B=%%A"
)
set @MSGBOX=(if not exist "lib\msgbox.vbs" call :MSGBOX_GENERATION)^& cscript //nologo "lib\msgbox.vbs"
set @MSGBOX_B=(if not exist "lib\msgbox.vbs" call :MSGBOX_GENERATION)^& start /b cscript //nologo "lib\msgbox.vbs"
set @TIMER_T1=for /f "tokens=1-4delims=:.," %%A in ("!time: =0!") do set /a "?_t1_!ip!=(((1%%A*60)+1%%B)*60+1%%C)*100+1%%D-36610100"
set @TIMER_T2=for /f "tokens=1-4delims=:.," %%A in ("!time: =0!") do set /a "t2=(((1%%A*60)+1%%B)*60+1%%C)*100+1%%D-36610100, tDiff=t2-?_t1_!ip!, tDiff+=((~(tDiff&(1<<31))>>31)+1)*8640000, ?_seconds_!ip!=tDiff/100"
set #MAP_ASCII_TO_HEX=#--2D#0030#1131#2232#3333#4434#5535#6636#7737#8838#9939#AA41#BB42#CC43#DD44#EE45#FF46#GG47#HH48#II49#JJ4A#KK4B#LL4C#MM4D#NN4E#OO4F#PP50#QQ51#RR52#SS53#TT54#UU55#VV56#WW57#XX58#YY59#ZZ5A#__5F#aa61#bb62#cc63#dd64#ee65#ff66#gg67#hh68#ii69#jj6A#kk6B#ll6C#mm6D#nn6E#oo6F#pp70#qq71#rr72#ss73#tt74#uu75#vv76#ww77#xx78#yy79#zz7A
set #MAP_HEX_TO_ASCII=#2D-#300#311#322#333#344#355#366#377#388#399#41A#42B#43C#44D#45E#46F#47G#48H#49I#4AJ#4BK#4CL#4DM#4EN#4FO#50P#51Q#52R#53S#54T#55U#56V#57W#58X#59Y#5AZ#5F_#61a#62b#63c#64d#65e#66f#67g#68h#69i#6Aj#6Bk#6Cl#6Dm#6En#6Fo#70p#71q#72r#73s#74t#75u#76v#77w#78x#79y#7Az
setlocal EnableDelayedExpansion
set @LOOKUP_PSN_LENGTH=`136`1160`
set @LOOKUP_IPLOOKUP_FIELDS=`status`message`continent`continentCode`country`countryCode`region`regionName`city`district`zip`lat`lon`timezone`offset`currency`isp`org`as`asname`reverse`mobile`proxy`hosting`query`proxy_2`type`
(set \N=^
%=leave unchanged=%
)
if defined ProgramFiles(x86) (
set "PATH=!PATH!;lib\curl\x64"
) else (
set "PATH=!PATH!;lib\curl\x86"
)
if defined VERSION (
set OLD_VERSION=!VERSION!
)
if defined last_version (
set OLD_LAST_VERSION=!last_version!
)
set VERSION=v2.2.4 - 30/05/2022
set TITLE=PS3 Blacklist Sniffer
set TITLE_VERSION=PS3 Blacklist Sniffer !VERSION:~0,6!
title !TITLE_VERSION!
for /f "tokens=4-7delims=[.] " %%A in ('ver') do (
if /i "%%A"=="version" (
set "WINDOWS_VERSION=%%B.%%C"
) else (
set "WINDOWS_VERSION=%%A.%%B"
)
)
if not "!WINDOWS_VERSION!"=="10.0" (
%@MSGBOX% "Your Windows version is not compatible with PS3 Blacklist Sniffer.!\N!!\N!You need Windows 10/11 (x86/x64)." 69648 "!TITLE_VERSION!"
exit /b 0
)
>nul chcp 65001
echo:
echo Searching for a new update ...
call :UPDATER || (
echo ERROR: Failed updating. Try updating manually:
echo https://github.com/Illegal-Services/PS3-Blacklist-Sniffer
echo:
<nul set /p=Press {ANY KEY} to continue ...
>nul pause
)
>nul 2>&1 sc query npcap || (
>nul 2>&1 sc query npf || (
%@MSGBOX% "!TITLE! could not detect the 'Npcap' or 'WinpCap' driver installed on your system.!\N!!\N!Redirecting you to Npcap download page." 69648 "!TITLE_VERSION!"
start "" "https://nmap.org/npcap/"
exit /b 0
)
)
for %%A in (
ARP.EXE
curl.exe
notepad.exe
) do (
>nul 2>&1 where "%%A" || (
%@MSGBOX% "!TITLE! could not find '%%A' executable in your system PATH.!\N!!\N!Your system does not meet the minimum software requirements to use !TITLE!." 69648 "!TITLE_VERSION!"
exit /b 0
)
)
echo:
echo Applying your custom settings from 'Settings.ini' ...
:SETUP
set /a settings_number=0, clear_vars_timer_seconds_max=0
set "lookup_memory_blacklisted_found=`"
for %%A in (
"@WINDOWS_TSHARK_STDERR"
"@PS3_IP_ADDRESS"
"@PS3_MAC_ADDRESS"
"@PS3_NOTIFICATIONS_ABOVE_SOUND"
"last_version"
"generate_new_settings_file"
"pid_notepad"
"ps3_connected_notification"
) do (
if defined %%~A (
set %%~A=
)
)
for %%A in (
"WINDOWS_TSHARK_PATH"
"WINDOWS_TSHARK_STDERR"
"WINDOWS_BLACKLIST_PATH"
"WINDOWS_RESULTS_LOGGING"
"WINDOWS_RESULTS_LOGGING_PATH"
"WINDOWS_NOTIFICATIONS"
"WINDOWS_NOTIFICATIONS_TIMER"
"WINDOWS_NOTIFICATIONS_PACKETS_INTERVAL"
"WINDOWS_NOTIFICATIONS_PACKETS_INTERVAL_TIMER"
"PS3_IP_AND_MAC_ADDRESS_AUTOMATIC"
"PS3_IP_ADDRESS"
"PS3_MAC_ADDRESS"
"PS3_PROTECTION"
"PS3_NOTIFICATIONS"
"PS3_NOTIFICATIONS_IP_ADDRESS_CONNECTED_ICON"
"PS3_NOTIFICATIONS_IP_ADDRESS_CONNECTED_SOUND"
"PS3_NOTIFICATIONS_ABOVE"
"PS3_NOTIFICATIONS_ABOVE_ICON"
"PS3_NOTIFICATIONS_ABOVE_SOUND"
"PS3_NOTIFICATIONS_ABOVE_TIMER"
"PS3_NOTIFICATIONS_ABOVE_PACKETS_INTERVAL"
"PS3_NOTIFICATIONS_ABOVE_PACKETS_INTERVAL_TIMER"
"PS3_NOTIFICATIONS_BOTTOM"
"PS3_NOTIFICATIONS_BOTTOM_SOUND"
"PS3_NOTIFICATIONS_BOTTOM_TIMER"
"PS3_NOTIFICATIONS_BOTTOM_PACKETS_INTERVAL"
"PS3_NOTIFICATIONS_BOTTOM_PACKETS_INTERVAL_TIMER"
"DETECTION_TYPE_DYNAMIC_IP_PRECISION"
) do (
if defined %%~A (
set %%~A=
)
if exist "Settings.ini" (
set first_1=1
for /f "tokens=1*delims==" %%B in ('findstr /bc:"%%~A=" "Settings.ini"') do (
set /a settings_number+=1
if defined first_1 (
set first_1=
if "%%~B"=="WINDOWS_TSHARK_PATH" (
set "%%~A=%%~C"
call :CREATE_WINDOWS_TSHARK_PATH || (
exit /b 0
)
) else if "%%~B"=="WINDOWS_TSHARK_STDERR" (
for %%D in (true false) do (
if /i "%%~C"=="%%D" (
set "%%~A=%%~C"
if "%%~C"=="false" (
set "@%%~A=2^>nul "
)
)
)
) else if "%%~B"=="WINDOWS_BLACKLIST_PATH" (
set "%%~A=%%~C"
call :CREATE_WINDOWS_BLACKLIST_FILE
) else if "%%~B"=="WINDOWS_RESULTS_LOGGING" (
for %%D in (true false) do (
if /i "%%~C"=="%%D" (
set "%%~A=%%~C"
)
)
) else if "%%~B"=="WINDOWS_RESULTS_LOGGING_PATH" (
set "%%~A=%%~C"
call :CREATE_WINDOWS_RESULTS_LOGGING_FILE
) else if "%%~B"=="WINDOWS_NOTIFICATIONS" (
for %%D in (true false) do (
if /i "%%~C"=="%%D" (
set "%%~A=%%~C"
)
)
) else if "%%~B"=="WINDOWS_NOTIFICATIONS_TIMER" (
set "x=%%~C"
call :CHECK_NUMBER x && (
set "%%~A=!x!"
)
) else if "%%~B"=="WINDOWS_NOTIFICATIONS_PACKETS_INTERVAL" (
for %%D in (true false) do (
if /i "%%~C"=="%%D" (
set "%%~A=%%~C"
)
)
) else if "%%~B"=="WINDOWS_NOTIFICATIONS_PACKETS_INTERVAL_TIMER" (
set "x=%%~C"
call :CHECK_NUMBER x && (
set "%%~A=!x!"
)
) else if "%%~B"=="PS3_IP_AND_MAC_ADDRESS_AUTOMATIC" (
for %%D in (true false) do (
if /i "%%~C"=="%%D" (
set "%%~A=%%~C"
)
)
) else if "%%~B"=="PS3_IP_ADDRESS" (
set "x=%%~C"
call :CHECK_IP x && (
set "%%~A=%%~C"
)
) else if "%%~B"=="PS3_MAC_ADDRESS" (
set "x=%%~C"
call :CHECK_MAC x && (
set "%%~A=%%~C"
)
) else if "%%~B"=="PS3_PROTECTION" (
for %%D in (false Reload_Game Exit_Game Restart_PS3 Shutdown_PS3) do (
if /i "%%~C"=="%%D" (
set "%%~A=%%~C"
)
)
) else if "%%~B"=="PS3_NOTIFICATIONS" (
for %%D in (true false) do (
if /i "%%~C"=="%%D" (
set "%%~A=%%~C"
)
)
) else if "%%~B"=="PS3_NOTIFICATIONS_IP_ADDRESS_CONNECTED_ICON" (
for /l %%D in (0,1,50) do (
if "%%~C"=="%%D" (
set "%%~A=%%~C"
)
)
) else if "%%~B"=="PS3_NOTIFICATIONS_IP_ADDRESS_CONNECTED_SOUND" (
for %%D in (false 0 1 2 3 4 5 6 7 8 9) do (
if /i "%%~C"=="%%D" (
set "%%~A=%%~C"
)
)
) else if "%%~B"=="PS3_NOTIFICATIONS_ABOVE" (
for %%D in (true false) do (
if /i "%%~C"=="%%D" (
set "%%~A=%%~C"
)
)
) else if "%%~B"=="PS3_NOTIFICATIONS_ABOVE_ICON" (
for /l %%D in (0,1,50) do (
if "%%~C"=="%%D" (
set "%%~A=%%~C"
)
)
) else if "%%~B"=="PS3_NOTIFICATIONS_ABOVE_SOUND" (
for %%D in (false 0 1 2 3 4 5 6 7 8 9) do (
if /i "%%~C"=="%%D" (
set "%%~A=%%~C"
)
)
) else if "%%~B"=="PS3_NOTIFICATIONS_ABOVE_TIMER" (
set "x=%%~C"
call :CHECK_NUMBER x && (
set "%%~A=!x!"
)
) else if "%%~B"=="PS3_NOTIFICATIONS_ABOVE_PACKETS_INTERVAL" (
for %%D in (true false) do (
if /i "%%~C"=="%%D" (
set "%%~A=%%~C"
)
)
) else if "%%~B"=="PS3_NOTIFICATIONS_ABOVE_PACKETS_INTERVAL_TIMER" (
set "x=%%~C"
call :CHECK_NUMBER x && (
set "%%~A=!x!"
)
) else if "%%~B"=="PS3_NOTIFICATIONS_BOTTOM" (
for %%D in (true false) do (
if /i "%%~C"=="%%D" (
set "%%~A=%%~C"
)
)
) else if "%%~B"=="PS3_NOTIFICATIONS_BOTTOM_SOUND" (
for %%D in (false 0 1 2 3 4 5 6 7 8 9) do (
if /i "%%~C"=="%%D" (
set "%%~A=%%~C"
)
)
) else if "%%~B"=="PS3_NOTIFICATIONS_BOTTOM_TIMER" (
set "x=%%~C"
call :CHECK_NUMBER x && (
set "%%~A=!x!"
)
) else if "%%~B"=="PS3_NOTIFICATIONS_BOTTOM_PACKETS_INTERVAL" (
for %%D in (true false) do (
if /i "%%~C"=="%%D" (
set "%%~A=%%~C"
)
)
) else if "%%~B"=="PS3_NOTIFICATIONS_BOTTOM_PACKETS_INTERVAL_TIMER" (
set "x=%%~C"
call :CHECK_NUMBER x && (
set "%%~A=!x!"
)
) else if "%%~B"=="DETECTION_TYPE_DYNAMIC_IP_PRECISION" (
for %%D in (1 2 3) do (
if /i "%%~C"=="%%D" (
set "%%~A=%%~C"
)
)
)
)
)
) else (
if not defined generate_new_settings_file (
set generate_new_settings_file=1
)
goto :JUMP_1
)
)
if not "!settings_number!"=="28" (
if not defined generate_new_settings_file (
set generate_new_settings_file=1
)
)
:JUMP_1
if defined settings_number (
set settings_number=
)
for %%A in (
"WINDOWS_TSHARK_STDERR=true"
"WINDOWS_BLACKLIST_PATH=Blacklist.ini"
"WINDOWS_RESULTS_LOGGING=true"
"WINDOWS_RESULTS_LOGGING_PATH=Logs.txt"
"WINDOWS_NOTIFICATIONS=true"
"WINDOWS_NOTIFICATIONS_TIMER=0"
"WINDOWS_NOTIFICATIONS_PACKETS_INTERVAL=true"
"WINDOWS_NOTIFICATIONS_PACKETS_INTERVAL_TIMER=120"
"PS3_IP_AND_MAC_ADDRESS_AUTOMATIC=true"
"PS3_PROTECTION=false"
"PS3_NOTIFICATIONS=true"
"PS3_NOTIFICATIONS_IP_ADDRESS_CONNECTED_ICON=22"
"PS3_NOTIFICATIONS_IP_ADDRESS_CONNECTED_SOUND=5"
"PS3_NOTIFICATIONS_ABOVE=true"
"PS3_NOTIFICATIONS_ABOVE_ICON=23"
"PS3_NOTIFICATIONS_ABOVE_SOUND=3"
"PS3_NOTIFICATIONS_ABOVE_TIMER=0"
"PS3_NOTIFICATIONS_ABOVE_PACKETS_INTERVAL=true"
"PS3_NOTIFICATIONS_ABOVE_PACKETS_INTERVAL_TIMER=120"
"PS3_NOTIFICATIONS_BOTTOM=true"
"PS3_NOTIFICATIONS_BOTTOM_SOUND=8"
"PS3_NOTIFICATIONS_BOTTOM_TIMER=0"
"PS3_NOTIFICATIONS_BOTTOM_PACKETS_INTERVAL=true"
"PS3_NOTIFICATIONS_BOTTOM_PACKETS_INTERVAL_TIMER=3"
"DETECTION_TYPE_DYNAMIC_IP_PRECISION=3"
) do (
for /f "tokens=1*delims==" %%B in ("%%~A") do (
if not defined %%~B (
set "%%~B=%%~C"
if not defined generate_new_settings_file (
set generate_new_settings_file=1
)
)
)
)
if %PS3_NOTIFICATIONS%==true (
if %PS3_NOTIFICATIONS_ABOVE%==false (
if %PS3_NOTIFICATIONS_BOTTOM%==false (
set PS3_NOTIFICATIONS=false
if not defined generate_new_settings_file (
set generate_new_settings_file=1
)
)
)
)
if defined generate_new_settings_file (
echo:
echo Correct reconstruction of 'Settings.ini' ...
call :CREATE_SETTINGS_FILE
goto :SETUP
)
for %%A in (
WINDOWS_NOTIFICATIONS_TIMER
WINDOWS_NOTIFICATIONS_PACKETS_INTERVAL_TIMER
PS3_NOTIFICATIONS_ABOVE_TIMER
PS3_NOTIFICATIONS_ABOVE_PACKETS_INTERVAL_TIMER
PS3_NOTIFICATIONS_BOTTOM_TIMER
PS3_NOTIFICATIONS_BOTTOM_PACKETS_INTERVAL_TIMER
) do (
if !%%A! gtr !clear_vars_timer_seconds_max! (
set clear_vars_timer_seconds_max=!%%A!
)
)
if not defined WINDOWS_TSHARK_PATH (
call :CREATE_WINDOWS_TSHARK_PATH || (
exit /b 0
)
)
title Capture network interface selection - !TITLE_VERSION!
:CHOOSE_INTERFACE
cls
echo:
set cn=0
for /f "tokens=1*delims=(" %%A in ('"!WINDOWS_TSHARK_PATH!" -D') do (
set /a cn+=1
set "interface_!cn!=%%B"
for %%C in (!cn!) do (
set "interface_!cn!=!interface_%%C:~0,-1!"
)
<nul set /p="%%A(%%B"
echo:
)
echo:
set CAPTURE_INTERFACE=
set /p "CAPTURE_INTERFACE=Select your desired capture network interface (1,1,!cn!): "
for /l %%A in (1,1,!cn!) do (
if "%%A"=="!CAPTURE_INTERFACE!" (
goto :JUMP_2
)
)
goto :CHOOSE_INTERFACE
:JUMP_2
cls
title Cleaning temporary files - !TITLE_VERSION!
echo:
echo Cleaning incorrect, invalid or unnecessary temporary !TITLE! files ...
if exist "lib\tmp\_blacklisted_psn_hexadecimal.tmp" (
del /f /q "lib\tmp\_blacklisted_psn_hexadecimal.tmp"
)
<nul set /p="Checking temporary file 'blacklisted_psn_hexadecimal.tmp' ...!\R!"
if exist "!WINDOWS_BLACKLIST_PATH!" (
if exist "lib\tmp\blacklisted_psn_hexadecimal.tmp" (
for /f "usebackqdelims==" %%A in ("lib\tmp\blacklisted_psn_hexadecimal.tmp") do (
>nul findstr /bc:"%%~A=" "!WINDOWS_BLACKLIST_PATH!" || (
>"lib\tmp\_blacklisted_psn_hexadecimal.tmp" (
<"lib\tmp\blacklisted_psn_hexadecimal.tmp" find /v "%%~A="
) || (
if not exist "lib\tmp\_blacklisted_psn_hexadecimal.tmp" (
call :ERROR_FATAL WRITING_FAILURE "lib\tmp\_blacklisted_psn_hexadecimal.tmp"
)
)
)
)
if exist "lib\tmp\_blacklisted_psn_hexadecimal.tmp" (
>nul move /y "lib\tmp\_blacklisted_psn_hexadecimal.tmp" "lib\tmp\blacklisted_psn_hexadecimal.tmp"
)
)
)
for %%A in ("lib\tmp\dynamic_iplookup_*.tmp") do (
<nul set /p="Deleting temporary file '%%~nxA' ... !\R!"
del /f /q "%%~A"
)
for %%A in ("lib\tmp\blacklisted_iplookup_*.tmp") do (
<nul set /p="Checking temporary file '%%~nxA' ... !\R!"
if defined delete_file (
set delete_file=
)
for /f "usebackqtokens=1*delims==" %%B in ("lib\tmp\%%~nxA") do (
if "%%~B=%%~C"=="proxy_2=N/A" (
set delete_file=1
)
if defined delete_file (
if "%%~B=%%~C"=="type=N/A" (
<nul set /p="Deleting temporary file '%%~nxA' ... !\R!"
del /f /q "%%~A"
)
)
)
)
if defined delete_file (
set delete_file=
)
if exist "!WINDOWS_BLACKLIST_PATH!" (
for %%A in ("lib\tmp\blacklisted_iplookup_*.tmp") do (
<nul set /p="Checking temporary file '%%~nxA' ... !\R!"
set "x=%%~nA"
>nul findstr /ec:"=!x:blacklisted_iplookup_=!" "!WINDOWS_BLACKLIST_PATH!" || (
<nul set /p="Deleting temporary file '%%~nxA' ... !\R!"
del /f /q "%%~A"
)
)
)
cls
title Initializing addresses and establishing connection to your PS3 console - !TITLE_VERSION!
echo:
if !PS3_IP_AND_MAC_ADDRESS_AUTOMATIC!==true (
echo Initializing addresses and establishing connection to your PS3 console: ^|IP:!PS3_IP_ADDRESS!^| ^|MAC:!PS3_MAC_ADDRESS!^| ...
set /a search_ps3_ip_address=1, first_2=1
call :PS3_IP_AND_MAC_ADDRESS_AUTOMATIC_ARP_ATTRIBUTION
if defined PS3_IP_ADDRESS (
call :CHECK_WEBMAN_MOD_CONNECTION PS3_IP_ADDRESS PS3_MAC_ADDRESS && (
set search_ps3_ip_address=
set first_2=
)
)
for /f "tokens=1,2" %%A in ('ARP -a') do (
if not "%%~B"=="" (
set "x1=%%~A"
call :CHECK_IP x1 && (
set "local_ip_!x1!=1"
set "x2=%%~B"
set "x2=!x2:-=:!"
if defined search_ps3_ip_address (
call :CHECK_MAC x2 && (
if defined first_2 (
set first_2=
echo PS3 console IP and MAC addresses not found.
echo Attempting the automatic detection of your PS3 console ...
echo:
)
echo Trying connection on local: "!x1!"
call :CHECK_WEBMAN_MOD_CONNECTION x1 x2 && (
set search_ps3_ip_address=
set "PS3_IP_ADDRESS=!x1!"
set "PS3_MAC_ADDRESS=!x2!"
call :CREATE_SETTINGS_FILE
)
)
)
)
)
)
for %%A in (
search_ps3_ip_address
first_2
x1
x2
) do (
set %%~A=
)
) else if defined PS3_IP_ADDRESS (
echo Establishing connection to your PS3 console: ^|IP:!PS3_IP_ADDRESS!^| ^|MAC:!PS3_MAC_ADDRESS!^| ...
call :CHECK_WEBMAN_MOD_CONNECTION PS3_IP_ADDRESS PS3_MAC_ADDRESS
)
title Computing ascii PSN usernames to hexadecimal in memory - !TITLE_VERSION!
:LOOP_BLACKLIST_FILE_EMPTY
cls
echo:
if defined ps3_connected_notification (
echo Successfully connected to your PS3 console: ^|IP:!PS3_IP_ADDRESS!^| ^|MAC:!PS3_MAC_ADDRESS!^| ...
) else (
echo Error: Unable to connect to your PS3 console: ^|IP:!PS3_IP_ADDRESS!^| ^|MAC:!PS3_MAC_ADDRESS!^| ...
echo Make sure you have the following:
echo - Your PS3 console must be turned on.
echo - webMAN MOD is correctly configured on your PS3 console.
echo - If you have a HEN jailbreaked console, make sure HEN is enabled.
if not defined PS3_IP_ADDRESS (
echo PS3 notifications disabled for this session.
)
)
echo:
for %%A in (
blacklisted_invalid_psn
blacklisted_invalid_ip
) do (
if defined %%A (
set %%A=
)
)
if exist "!WINDOWS_BLACKLIST_PATH!" (
echo Computing ascii PSN usernames to hexadecimal in memory and
echo checking "!WINDOWS_BLACKLIST_PATH!" PSN Usernames and IP addresses ...
for /f "usebackqtokens=1,2delims==" %%A in ("!WINDOWS_BLACKLIST_PATH!") do (
for %%C in (
blacklisted_psn_padding
blacklisted_ip_padding
blacklisted_invalid_found
) do (
if defined %%C (
set %%C=
)
)
if not "%%~A"=="" (
set "blacklisted_psn=%%~A"
set "blacklisted_ip=%%~B"
set "blacklisted_psn_padding=!blacklisted_psn:~0,16!"
if not "%%~B"=="" (
set "blacklisted_ip_padding=!blacklisted_ip:~0,15!"
)
<nul set /p="Processing blacklisted entry [!blacklisted_psn_padding!=!blacklisted_ip_padding!] ... !\R!"
call :ASCII_TO_HEXADECIMAL || (
set /a blacklisted_invalid_psn=1, blacklisted_invalid_found=1
<nul set /p="Blacklisted entry [!blacklisted_psn_padding!=!blacklisted_ip_padding!] does not contain a valid PSN username."
echo:
)
if not "%%~B"=="" (
call :CHECK_IP blacklisted_ip || (
set /a blacklisted_invalid_ip=1, blacklisted_invalid_found=1
<nul set /p="Blacklisted entry [!blacklisted_psn_padding!=!blacklisted_ip_padding!] does not contain a valid IP address."
echo:
)
)
)
)
if not defined blacklisted_invalid_found (
<nul set /p=".!\B! "
)
for %%A in (
blacklisted_psn
blacklisted_psn_padding
blacklisted_ip
blacklisted_ip_padding
blacklisted_invalid_found
) do (
set %%A=
)
) else (
call :CREATE_WINDOWS_BLACKLIST_FILE
goto :LOOP_BLACKLIST_FILE_EMPTY
)
echo:
if defined blacklisted_invalid_psn (
<nul set /p="^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^"
echo:
echo Unable to perform the PSN username search for this entrie^(s^) in your 'WINDOWS_BLACKLIST_PATH' setting.
echo Please ensure the PSN username is correct, and check for the following errors:
echo PSN usernames must consist of 3-16 characters, and only contain: [a-z] [A-Z] [0-9] [-] [_]
<nul set /p="^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^"
echo:
echo:
set blacklisted_invalid_psn=
)
if defined blacklisted_invalid_ip (
<nul set /p="^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^"
echo:
echo Unable to perform the IP adress search for this entrie^(s^) in your 'WINDOWS_BLACKLIST_PATH' setting.
echo Please ensure the IP address is correct, and check for the following errors:
echo The IP address must be composed of 4 octets of a number from 0 to 255 each separated by a dot.
<nul set /p="^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^"
echo:
echo:
set blacklisted_invalid_ip=
)
:WAIT_FILE_SAVED_WINDOWS_BLACKLIST_PATH
>nul 2>&1 set blacklisted_psn_hexadecimal_ || (
if defined pid_notepad (
2>nul tasklist /nh /fo csv /fi "pid eq !pid_notepad!" | >nul find /i """notepad.exe""" || (
set pid_notepad=
)
)
if not defined pid_notepad (
%@MSGBOX% "!TITLE! could not find any valid users in your 'WINDOWS_BLACKLIST_PATH' setting.!\N!!\N!Add your first entry to start scanning." 69648 "!TITLE_VERSION!"
notepad.exe "!WINDOWS_BLACKLIST_PATH!" && (
>nul timeout /t 1 /nobreak
)
for /f "tokens=2delims=," %%A in ('2^>nul tasklist /nh /fo csv /fi "imagename eq notepad.exe" ^| find /i """notepad.exe"""') do (
set "pid_notepad=%%~A"
)
)
if exist "!WINDOWS_BLACKLIST_PATH!" (
for /f "usebackqdelims==" %%A in ("!WINDOWS_BLACKLIST_PATH!") do (
if not "%%~A"=="" (
goto :LOOP_BLACKLIST_FILE_EMPTY
)
)
) else (
call :CREATE_WINDOWS_BLACKLIST_FILE
)
goto :WAIT_FILE_SAVED_WINDOWS_BLACKLIST_PATH
)
if defined PS3_IP_ADDRESS (
set "@PS3_IP_ADDRESS=dst or src host !PS3_IP_ADDRESS! and "
if "!VERSION:~1,5!" lss "!last_version:~1,5!" (
>nul curl.exe -fks "http://%PS3_IP_ADDRESS%/notify.ps3mapi?msg=!TITLE_VERSION: =+!:%%0D%%0AA+newer+version+is+detected+(v!last_version:~1,5!).&icon=21&snd=5"
)
)
if defined PS3_MAC_ADDRESS (
set "@PS3_MAC_ADDRESS=ether dst or src !PS3_MAC_ADDRESS! and "
)
set "CAPTURE_FILTER=!@PS3_IP_ADDRESS!!@PS3_MAC_ADDRESS!ip and udp and not broadcast and not multicast and not port 443 and not port 80 and not port 53 and not net 3.237.117.0/24 and not net 52.40.62.0/24 and not net 162.244.52.0/23 and not net 185.34.107.0/24"
title Sniffin' my babies IPs. ^|IP:!PS3_IP_ADDRESS!^| ^|MAC:!PS3_MAC_ADDRESS!^| ^|Interface:!interface_%CAPTURE_INTERFACE%!^| - !TITLE_VERSION!
echo Started capturing on network interface "!interface_%CAPTURE_INTERFACE%!" ...
echo:
for /l %%? in () do (
if exist "!WINDOWS_TSHARK_PATH!" (
if exist "!WINDOWS_BLACKLIST_PATH!" (
for %%A in (
blacklisted_found_
cache_current_psn_ascii_
skip_static_
skip_lookup_
skip_dynamic_
) do (
for /f "delims==" %%B in ('2^>nul set %%A') do (
set "%%~B="
)
)
for %%A in (!lookup_memory_blacklisted_found:`^= !) do (
set "ip=%%A"
%@TIMER_T2:?=tmp_clear_vars_timer%
if !tmp_clear_vars_timer_seconds_%%A! gtr !clear_vars_timer_seconds_max! (
set "lookup_memory_blacklisted_found=!lookup_memory_blacklisted_found:`%%A`=!"
if not defined lookup_memory_blacklisted_found (
set lookup_memory_blacklisted_found=`
)
for /f "delims==" %%B in ('2^>nul set tmp_ ^| findstr /c:"%%A="') do (
set "%%~B="
)
)
)
for %%A in (ip skip_ps3_protection) do (
if defined %%A (
set %%A=
)
)
for /f "usebackqdelims==" %%A in ("!WINDOWS_BLACKLIST_PATH!") do (
if not defined blacklisted_psn_hexadecimal_%%~A (
set "blacklisted_psn=%%~A"
call :ASCII_TO_HEXADECIMAL
)
)
for /f "tokens=1-8" %%A in ('^"%@WINDOWS_TSHARK_STDERR%"!WINDOWS_TSHARK_PATH!" -q -Q -i !CAPTURE_INTERFACE! -f "!CAPTURE_FILTER!" -Y "frame.len^>^=68 and frame.len^<^=1160" -Tfields -Eseparator^=/s -e ip.src_host -e ip.src -e udp.srcport -e ip.dst_host -e ip.dst -e udp.dstport -e data -e frame.len -a duration:1^"') do (
if not "%%~H"=="" (
set "hexadecimal_packet=%%~G"
set "frame_len=%%~H"
if defined local_ip_%%~B (
set "reverse_ip=%%~D"
set "ip=%%~E"
set "port=%%~F"
call :BLACKLIST_SEARCH src
) else (
set "reverse_ip=%%~A"
set "ip=%%~B"
set "port=%%~C"
call :BLACKLIST_SEARCH dst
)
)
)
) else (
call :CREATE_WINDOWS_BLACKLIST_FILE
)
) else (
%@MSGBOX% "!TITLE! could not find your 'WINDOWS_TSHARK_PATH' setting on your system.!\N!!\N!Redirecting you to Wireshark download page.!\N!!\N!You can also define your own PATH in the 'Settings.ini' file." 69648 "!TITLE_VERSION!"
exit /b 0
)
)
exit /b 0
:BLACKLIST_SEARCH
if defined local_ip_%ip% (
exit /b 0
)
if defined blacklisted_found_%ip% (
exit /b 0
)
if defined skip_static_%ip% (
if defined skip_lookup_%ip% (
if defined skip_dynamic_%ip% (
exit /b 0
)
)
)
if "%ip:~0,8%"=="192.168." (
set "local_ip_%ip%=1"
exit /b 0
) else if "%ip:~0,3%"=="10." (
set "local_ip_%ip%=1"
exit /b 0
) else if "%ip:~0,4%"=="172." (
for /l %%A in (16,1,31) do (
if "%ip:~4,3%"=="%%~A." (
set "local_ip_%ip%=1"
exit /b 0
)
)
) else if "%ip:~0,4%"=="100." (
for /l %%A in (64,1,99) do (
if "%ip:~4,3%"=="%%~A." (
set "local_ip_%ip%=1"
exit /b 0
)
)
for /l %%A in (100,1,127) do (
if "%ip:~4,4%"=="%%~A." (
set "local_ip_%ip%=1"
exit /b 0
)
)
)
if defined current_psn_ascii (
set current_psn_ascii=
)
if not defined skip_lookup_%ip% (
if not "!@LOOKUP_PSN_LENGTH:`%frame_len%`=!"=="!@LOOKUP_PSN_LENGTH!" (
if not "!hexadecimal_packet:FF83FFFEFFFE=!"=="!hexadecimal_packet!" (
if not "!hexadecimal_packet:707333=!"=="!hexadecimal_packet!" (
set "psn_hexadecimal=!hexadecimal_packet:*FF83FFFEFFFE=!"
if %1==src (
set "psn_hexadecimal=!psn_hexadecimal:~72,32!"
) else (
set "psn_hexadecimal=!psn_hexadecimal:~8,32!"
)
if defined psn_hexadecimal (
set "psn_hexadecimal=!psn_hexadecimal:00=!"
if defined psn_hexadecimal (
set "skip_lookup_%ip%=1"
if defined blacklisted_psn_ascii_!psn_hexadecimal! (
for %%A in (!psn_hexadecimal!) do (
set blacklisted_psn=!blacklisted_psn_ascii_%%A!
)
set blacklisted_detection_type=PSN Username
call :BLACKLISTED_FOUND
exit /b 0
)
%= resolves the newer username if it has changed for the IP algos below =%
if defined cache_current_psn_ascii_!psn_hexadecimal! (
for %%A in (!psn_hexadecimal!) do (
set current_psn_ascii=!cache_current_psn_ascii_%%A!
)
) else (
call :HEXADECIMAL_TO_ASCII && (
for %%A in (!psn_hexadecimal!) do (
set current_psn_ascii=!cache_current_psn_ascii_%%A!
)
)
)
)
)
)
)
)
)
if not defined skip_static_%ip% (
set "skip_static_%ip%=1"
for /f "tokens=1,2delims==" %%A in ('findstr /ec:"=%ip%" "!WINDOWS_BLACKLIST_PATH!"') do (
if "%ip%"=="%%~B" (
set "blacklisted_psn=%%~A"
set blacklisted_detection_type=Static IP
call :BLACKLISTED_FOUND
exit /b 0
)
)
)
if not defined skip_dynamic_%ip% (
set "skip_dynamic_%ip%=1"
call :DETECTION_TYPE_FORM_PRECISION ip dynamic_ip
for /f "delims==" %%A in ('2^>nul set skip_dynamic_try_') do (
set "%%~A="
)
for /f "tokens=1,2delims==" %%A in ('findstr /c:"=!dynamic_ip!" "!WINDOWS_BLACKLIST_PATH!"') do (
if not "%%~B"=="" (
if not defined skip_dynamic_try_%%~B (
set "skip_dynamic_try_%%~B=1"
set "x=%%~B"
call :DETECTION_TYPE_FORM_PRECISION x blacklisted_dynamic_ip
if "!dynamic_ip!"=="!blacklisted_dynamic_ip!" (
if not exist "lib\tmp\dynamic_iplookup_%ip%.tmp" (
call :IPLOOKUP dynamic %ip%
)
if not exist "lib\tmp\blacklisted_iplookup_%%~B.tmp" (
call :IPLOOKUP blacklisted %%~B
)
if defined dynamic_iplookup_dif (
set dynamic_iplookup_dif=
)
for /f "usebackqtokens=1*delims==" %%C in ("lib\tmp\dynamic_iplookup_%ip%.tmp") do (
for /f "usebackqtokens=1*delims==" %%E in ("lib\tmp\blacklisted_iplookup_%%~B.tmp") do (
if "%%~C"=="%%~E" (
if not "%%~D"=="%%~F" (
if not "%%~C"=="status" (
if not "%%~C"=="message" (
if not "%%~C"=="reverse" (
if not "%%~C"=="query" (
if not "%%~C"=="proxy_2" (
if not "%%~C"=="type" (
set dynamic_iplookup_dif=1
)
)
)
)
)
)
)
)
)
)
if not defined dynamic_iplookup_dif (
set "blacklisted_psn=%%~A"
set blacklisted_detection_type=Dynamic IP ^(bad accuracy*^)
call :BLACKLISTED_FOUND
exit /b 0
)
)
)
)
)
)
exit /b 1
:BLACKLISTED_FOUND
for /f "tokens=2delims==." %%A in ('2^>nul wmic os get LocalDateTime /value') do (
set "datetime=%%A"
set "datetime=!datetime:~0,-10!-!datetime:~-10,2!-!datetime:~-8,2!_!datetime:~-6,2!-!datetime:~-4,2!-!datetime:~-2!"
set "hourtime=!datetime:~11,2!:!datetime:~14,2!"
)
if not defined blacklisted_found_%ip% (
set /a blacklisted_found_%ip%=1, tmp_clear_vars_timer_seconds_%ip%=0
if "!lookup_memory_blacklisted_found:`%ip%`=!"=="!lookup_memory_blacklisted_found!" (
set "lookup_memory_blacklisted_found=!lookup_memory_blacklisted_found!%ip%`"
)
%@TIMER_T1:?=tmp_clear_vars_timer%
)
for %%A in (blacklisted_psn current_psn_ascii) do (
if defined %%A (
>nul findstr /xc:"!%%A!=%ip%" "!WINDOWS_BLACKLIST_PATH!" || (
call :CHECK_FILE_NEWLINE WINDOWS_BLACKLIST_PATH
>>"!WINDOWS_BLACKLIST_PATH!" (
!@write_newline!
echo !%%A!=%ip%
) || (
call :ERROR_FATAL WRITING_FAILURE_OR_INVALID_FILENAME WINDOWS_BLACKLIST_PATH
)
)
)
)
if not defined tmp_blacklisted_iplookup_%ip% (
call :IPLOOKUP blacklisted %ip%
)
set blacklisted_psn_list_counter=1
set "@blacklisted_psn_list=[%blacklisted_psn%]"
set "@ps3_blacklisted_psn_list=%%5B%blacklisted_psn%%%5D"
for /f "delims==" %%A in ('findstr /bc:"%blacklisted_psn%=" "!WINDOWS_BLACKLIST_PATH!"') do (
if "%%~A"=="%blacklisted_psn%" (
if "!@blacklisted_psn_list:[%%~A]=!"=="!@blacklisted_psn_list!" (
set /a blacklisted_psn_list_counter+=1
set "@blacklisted_psn_list=!@blacklisted_psn_list!, [%%~A]"
set "@ps3_blacklisted_psn_list=!@ps3_blacklisted_psn_list!,+%%5B%%~A%%5D"
)
)
)
for /f "tokens=1,2delims==" %%A in ('findstr /ec:"=%ip%" "!WINDOWS_BLACKLIST_PATH!"') do (
if "%%~B"=="%ip%" (
if "!@blacklisted_psn_list:[%%~A]=!"=="!@blacklisted_psn_list!" (
set /a blacklisted_psn_list_counter+=1
set "@blacklisted_psn_list=!@blacklisted_psn_list!, [%%~A]"
set "@ps3_blacklisted_psn_list=!@ps3_blacklisted_psn_list!,+%%5B%%~A%%5D"
)
)
)
if !blacklisted_psn_list_counter! gtr 1 (
set "@ps3_psn_plurial_asterisk=%%2A"
set "@psn_plurial_asterisk=*"
) else (
set @ps3_psn_plurial_asterisk=
set @psn_plurial_asterisk=
)
echo User!@psn_plurial_asterisk!:!@blacklisted_psn_list! ^| ReverseIP:%reverse_ip% ^| IP:%ip% ^| Port:%port% ^| Time:!datetime! ^| Country:!tmp_blacklisted_iplookup_countrycode_%ip%! ^| Detection Type: !blacklisted_detection_type!
:LOOP_WINDOWS_RESULTS_LOGGING_PATH
if %WINDOWS_RESULTS_LOGGING%==true (
call :CHECK_FILE_NEWLINE WINDOWS_RESULTS_LOGGING_PATH
>>"%WINDOWS_RESULTS_LOGGING_PATH%" (
!@write_newline!
echo User!@psn_plurial_asterisk!:!@blacklisted_psn_list! ^| ReverseIP:%reverse_ip% ^| IP:%ip% ^| Port:%port% ^| Time:!datetime! ^| Country:!tmp_blacklisted_iplookup_countrycode_%ip%! ^| Detection Type: !blacklisted_detection_type!
) || (
call :CREATE_WINDOWS_RESULTS_LOGGING_FILE
goto :LOOP_WINDOWS_RESULTS_LOGGING_PATH
)
)
if %WINDOWS_NOTIFICATIONS%==true (
if defined skip_windows_notifications (
set skip_windows_notifications=
)
if %WINDOWS_NOTIFICATIONS_PACKETS_INTERVAL%==true (
if defined tmp_windows_notifications_packets_interval_t1_%ip% (
%@TIMER_T2:?=tmp_windows_notifications_packets_interval%
) else (
set tmp_windows_notifications_packets_interval_seconds_%ip%=%WINDOWS_NOTIFICATIONS_PACKETS_INTERVAL_TIMER%
)
if !tmp_windows_notifications_packets_interval_seconds_%ip%! lss %WINDOWS_NOTIFICATIONS_PACKETS_INTERVAL_TIMER% (
set skip_windows_notifications=1
)
%@TIMER_T1:?=tmp_windows_notifications_packets_interval%
)
if not defined skip_windows_notifications (
if defined tmp_windows_notifications_t1_%ip% (
%@TIMER_T2:?=tmp_windows_notifications%
) else (
set tmp_windows_notifications_seconds_%ip%=%WINDOWS_NOTIFICATIONS_TIMER%
)
if !tmp_windows_notifications_seconds_%ip%! geq %WINDOWS_NOTIFICATIONS_TIMER% (
set tmp_windows_notifications_t1_%ip%=
%@MSGBOX_B% "##### Blacklisted user detected at !hourtime:~0,5! #####!\N!!\N!User!@psn_plurial_asterisk!: !@blacklisted_psn_list!!\N!IP: %ip%!\N!Port: %port%!\N!Country Code: !tmp_blacklisted_iplookup_countrycode_%ip%!!\N!Detection Type: !blacklisted_detection_type!!\N!!\N!############# IP Lookup ##############!\N!!\N!Reverse IP: !tmp_blacklisted_iplookup_reverse_%ip%!!\N!Continent: !tmp_blacklisted_iplookup_continent_%ip%!!\N!Country: !tmp_blacklisted_iplookup_country_%ip%!!\N!City: !tmp_blacklisted_iplookup_city_%ip%!!\N!Organization: !tmp_blacklisted_iplookup_org_%ip%!!\N!ISP: !tmp_blacklisted_iplookup_isp_%ip%!!\N!AS: !tmp_blacklisted_iplookup_as_%ip%!!\N!AS Name: !tmp_blacklisted_iplookup_asname_%ip%!!\N!Proxy: !tmp_blacklisted_iplookup_proxy_2_%ip%!!\N!Type: !tmp_blacklisted_iplookup_type_%ip%!!\N!Mobile (cellular) connection: !tmp_blacklisted_iplookup_mobile_%ip%!!\N!Proxy, VPN or Tor exit address: !tmp_blacklisted_iplookup_proxy_%ip%!!\N!Hosting, colocated or data center: !tmp_blacklisted_iplookup_hosting_%ip%!" 69680 "!TITLE_VERSION!"