diff --git a/win7/WinDivert.dll b/win7/WinDivert.dll new file mode 100644 index 0000000..a6ef7c7 Binary files /dev/null and b/win7/WinDivert.dll differ diff --git a/win7/WinDivert64.sys b/win7/WinDivert64.sys new file mode 100644 index 0000000..d4c1ec2 Binary files /dev/null and b/win7/WinDivert64.sys differ diff --git a/win7/install_win7.cmd b/win7/install_win7.cmd new file mode 100644 index 0000000..90914c5 --- /dev/null +++ b/win7/install_win7.cmd @@ -0,0 +1,47 @@ +@echo off +chcp 65001 > nul +:: 65001 - UTF-8 + +cd /d "%~dp0" + +if "%1"=="admin" ( + echo Started with admin rights +) else ( + echo Requesting admin rights... + powershell -Command "Start-Process 'cmd.exe' -ArgumentList '/c \"\"%~f0\" admin\"' -Verb RunAs" + exit /b +) + +setlocal enabledelayedexpansion +if [%1] == [install] goto :install + +if %PROCESSOR_ARCHITECTURE%==AMD64 ( + FOR /F "tokens=3" %%B IN ('reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v CurrentBuildNumber') do set BUILD=%%B + if defined BUILD ( + goto :build + ) else ( + echo Could not get the OS build number + ) +) else ( + echo The script only works on x64 +) +goto :ex + +:build +echo OS build number: %BUILD% +if NOT %BUILD%==7601 if NOT %BUILD%==7600 goto :dont +goto :eof + +:dont +echo Only Windows 7 is supported +goto :ex + +:install +sc stop windivert >nul 2>&1 +sc delete windivert >nul 2>&1 +copy WinDivert64.sys ..\bin +copy WinDivert.dll ..\bin +echo Готово + +:ex +pause \ No newline at end of file