User lists

This commit is contained in:
Flowseal
2026-02-22 03:09:19 +03:00
parent bea49d3774
commit 2aea7ea384
2 changed files with 32 additions and 0 deletions

4
.gitignore vendored
View File

@@ -1 +1,5 @@
/utils/test results /utils/test results
/lists/ipset-all-user.txt
/lists/ipset-exclude-user.txt
/lists/list-general-user.txt
/lists/list-exclude-user.txt

View File

@@ -25,12 +25,19 @@ if "%~1"=="load_game_filter" (
exit /b exit /b
) )
if "%~1"=="load_user_lists" (
call :load_user_lists
exit /b
)
if "%1"=="admin" ( if "%1"=="admin" (
call :check_command chcp call :check_command chcp
call :check_command find call :check_command find
call :check_command findstr call :check_command findstr
call :check_command netsh call :check_command netsh
call :load_user_lists
echo Started with admin rights echo Started with admin rights
) else ( ) else (
call :check_extracted call :check_extracted
@@ -96,6 +103,27 @@ if "%menu_choice%"=="0" exit /b
goto menu goto menu
:: LOAD USER LISTS =====================
:load_user_lists
set "LISTS_PATH=%~dp0lists\"
if not exist "%LISTS_PATH%ipset-all-user.txt" (
echo 203.0.113.113/32>"%LISTS_PATH%ipset-all-user.txt"
)
if not exist "%LISTS_PATH%ipset-exclude-user.txt" (
echo 203.0.113.113/32>"%LISTS_PATH%ipset-exclude-user.txt"
)
if not exist "%LISTS_PATH%list-general-user.txt" (
echo domain.example.abc>"%LISTS_PATH%list-general-user.txt"
)
if not exist "%LISTS_PATH%list-exclude-user.txt" (
echo domain.example.abc>"%LISTS_PATH%list-exclude-user.txt"
)
exit /b
:: TCP ENABLE ========================== :: TCP ENABLE ==========================
:tcp_enable :tcp_enable
netsh interface tcp show global | findstr /i "timestamps" | findstr /i "enabled" > nul || netsh interface tcp set global timestamps=enabled > nul 2>&1 netsh interface tcp show global | findstr /i "timestamps" | findstr /i "enabled" > nul || netsh interface tcp set global timestamps=enabled > nul 2>&1