Skip to content

WinError 87 #33

@rasoolZero

Description

@rasoolZero

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions