Closed lawndoc closed 3 days ago
In troubleshooting the previous issue we had opened, the Scapy maintainer noticed an actual bug with the Netbios responses. This PR should not be merged until https://github.com/secdev/scapy/pull/4445 is merged over in the Scapy project.
I'm just gonna merge since we are still troubleshooting other issues. The scapy PR will get merged eventually.
In #6 we were actually failing to set a Scapy configuration option
conf.checkIPaddr = False
, which is required when response packets aren't from the destination IP of our request packet. Big thanks to the maintainer of Scapy for pointing that out, because I had missed that in the documentation.In #12 we applied a workaround, which was using
AsyncSniffer
to capture the responses. This workaround is no longer needed, and the originalsr1
capture works better because it doesn't require manual delays to ensure we are sniffing packets long enough.