-
Notifications
You must be signed in to change notification settings - Fork 46
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
Pypacker incompatible with windows (AttributeError: sockets.AF_PACKET) #52
Comments
Thanks for the hint, I rarely use windows for development so this never popped up. |
Thanks for the comment. My first attempt was using scapy and that works flawlessly under windows and Python 2.7. However, it's a bit slow for my use case (basically bridging several interfaces for UDP packets). As pypacker is faster I thought I give it a try ;) |
Yeah scapy uses Winpcap/Npcap (https://scapy.readthedocs.io/en/latest/installation.html#windows). If you want to use pypacker after all you could create the raw sockets yourself, should be ~4 extra lines of code. |
Ok, thanks for the hint. I'll look into it. |
Hi,
Unrelated note: First of all, I am sorry that I didn't put this issue in gitlab. However, Gitlab currently seems to have quite strong restrictions with allowed domain names for email. Apparently my email provider(s) aren't on this whitelist, lol.
When I create a psocket with Pypacker the following exception is thrown:
Pypacker works fine with Linux, however for my use case I am restricted to Windows. In the FAQ it is stated that it should run on Windows as well. Therefore I think this should be an issue.
I am trying to write an UDP Sniffer / UDP Forwarding Script with Pypacker. Is there a workaround for the usage of pypacker.psocket or socket.AF_PACKET?
This would be a stripped down example of what I am currently doing:
Thanks!
The text was updated successfully, but these errors were encountered: