Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cancelling an overlapped future failed error in Scapy on Windows #4204

Open
Rrpd opened this issue Dec 11, 2023 · 1 comment
Open

Cancelling an overlapped future failed error in Scapy on Windows #4204

Rrpd opened this issue Dec 11, 2023 · 1 comment

Comments

@Rrpd
Copy link

Rrpd commented Dec 11, 2023

Brief description

Encountering the "Cancelling an overlapped future failed" error while using Scapy on Windows. The issue manifests during packet sniffing, and attempts to resolve it have included updating Scapy and investigating potential dependencies. Seeking assistance to identify and implement a solution for this error.

Scapy version

2.5

Python version

3.8

Operating system

Windows 11

Additional environment information

No response

How to reproduce

Environment Details:

  • Operating System: Windows 11
  • Python Version: 3.8
  • Scapy Version: 2.5.0

Steps to Reproduce:

  1. Open a Command Prompt.
  2. Run the command scapy.
  3. In the Scapy console, execute the sniff(count=2) command.
  4. Observe the error message 'Cancelling an overlapped future failed.'

Expected Behavior:

  • Scapy should execute the sniff command without errors.

Actual Behavior:

  • Error message 'Cancelling an overlapped future failed' is displayed.

Additional Context:

  • This issue occurs consistently.

Actual result

Cancelling an overlapped future failed
future: <_OverlappedFuture pending overlapped=<pending, 0x5a10a20> cb=[BaseProactorEventLoop._loop_self_reading()]>
Traceback (most recent call last):
File "C:\Networks\Python3.8\lib\asyncio\windows_events.py", line 66, in _cancel_overlapped
self._ov.cancel()
OSError: [WinError 6] The handle is invalid

Expected result

Packet 1

Source: 192.168.1.2
Destination: 192.168.1.1
Protocol: TCP
Payload: [Packet Data]

Packet 2

Source: 10.0.0.1
Destination: 10.0.0.2
Protocol: UDP
Payload: [Packet Data]

Related resources

No response

@gpotter2
Copy link
Member

Could you provide the full error log? Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants