When running the project on Windows 10, This error is shown and nothing works. The terminal IS elevated to administrator.
I tried pydivert==3.1.3 and pydivert==3.1.0.
Traceback (most recent call last):
File "C:\Users\USERNAME\AppData\Local\Python\pythoncore-3.14-64\Lib\threading.py", line 1082, in _bootstrap_inner
self._context.run(self.run)
~~~~~~~~~~~~~~~~~^^^^^^^^^^
File "C:\Users\USERNAME\AppData\Local\Python\pythoncore-3.14-64\Lib\threading.py", line 1024, in run
self._target(*self._args, **self._kwargs)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\SNI-Spoof\SNI-Spoofing-main\injecter.py", line 34, in run
with self.w:
^^^^^^
File "E:\SNI-Spoof\SNI-Spoofing-main.venv\Lib\site-packages\pydivert\windivert.py", line 89, in enter
self.open()
~~~~~~~~~^^
File "E:\SNI-Spoof\SNI-Spoofing-main.venv\Lib\site-packages\pydivert\windivert.py", line 186, in open
self._handle = windivert_dll.WinDivertOpen(self._filter, self._layer, self._priority, self.flags) # type: ignore[attr-defined]
~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\SNI-Spoof\SNI-Spoofing-main.venv\Lib\site-packages\pydivert\windivert_dll_init.py", line 256, in prox
return getattr(module, funcname)(*args, **kwargs)
~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "E:\SNI-Spoof\SNI-Spoofing-main.venv\Lib\site-packages\pydivert\windivert_dll_init.py", line 168, in wrapper
raise err
OSError: [WinError 87] The parameter is incorrect.
When running the project on Windows 10, This error is shown and nothing works. The terminal IS elevated to administrator.
I tried
pydivert==3.1.3andpydivert==3.1.0.Traceback (most recent call last):
File "C:\Users\USERNAME\AppData\Local\Python\pythoncore-3.14-64\Lib\threading.py", line 1082, in _bootstrap_inner
self._context.run(self.run)
~~~~~~~~~~~~~~~~~^^^^^^^^^^
File "C:\Users\USERNAME\AppData\Local\Python\pythoncore-3.14-64\Lib\threading.py", line 1024, in run
self._target(*self._args, **self._kwargs)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\SNI-Spoof\SNI-Spoofing-main\injecter.py", line 34, in run
with self.w:
^^^^^^
File "E:\SNI-Spoof\SNI-Spoofing-main.venv\Lib\site-packages\pydivert\windivert.py", line 89, in enter
self.open()
~~~~~~~~~^^
File "E:\SNI-Spoof\SNI-Spoofing-main.venv\Lib\site-packages\pydivert\windivert.py", line 186, in open
self._handle = windivert_dll.WinDivertOpen(self._filter, self._layer, self._priority, self.flags) # type: ignore[attr-defined]
~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\SNI-Spoof\SNI-Spoofing-main.venv\Lib\site-packages\pydivert\windivert_dll_init.py", line 256, in prox
return getattr(module, funcname)(*args, **kwargs)
~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "E:\SNI-Spoof\SNI-Spoofing-main.venv\Lib\site-packages\pydivert\windivert_dll_init.py", line 168, in wrapper
raise err
OSError: [WinError 87] The parameter is incorrect.