-
Notifications
You must be signed in to change notification settings - Fork 191
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
Scapy3k for Windows7 #96
Conversation
…verything else too ;)
The get_if_raw_hwaddr function always crashed. This causes scapy to use the 00:00:00:00:00:00 to be the mac address used (windows specific code only). Fixed the function to not crash as well as to return the correct / expected values
…ests) Removed old prints Changed "ifaces" variable in get_working_if to "IFACES". This was a changed introduced on original scapy project on the master. Wanted to stick with their changes for compliancy reasons Added a print for the Exception in case the get_working_if function crashes.
Can you clarify which code parts are due to Windows 7 compatibility and which are general improvements? The code as is worked ok for Windows 8+ users, so I am not fond of major rewrite to make it compatible with older Windows version if the reasons are not traceable to specific parts of code. |
I actually copied the latest windows/init.py from the secdev python master.
I would suggest from my side to handle perform the following: I can check if i have some free time to implement points 1-3 as described each separatly and update the Pull Request. |
You see the history is not simple :) Windows support without libdnet first appeared in this project (scapy3k) not in scapy v2.0 project. Also, scapy3k targets primarily newer Windows platforms (e.g. 10) while scapy v2.0 is naturally more frequently used on older ones. Both projects would like to see full compatibility, but this is about priorities, which, also, affect the code. So, pure copying from the other project is not a good option. |
For what it's worth...I used this version of the file to get Scapy working with Win 7. And then with Win 10 sniffing worked if I manually fixed the value in conf.iface (sometimes it would pick up the BT or wired -and inactive- Ethernet port) but sending always failed until I tried this same file. Seems like a winner to me :) |
Update IANA Router Alert Options
As a side note, it's wrong that the original scapy does not support the latest versions. It actually does, and supports as well older ones. |
Closing as there is a newer Pull Request that is less intrusive |
Tested my implementation. Sending / send+receive and arping works correctly on Windows 7 with winpcap installed in the newest version.
Changes performed: