-
Notifications
You must be signed in to change notification settings - Fork 154
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
Suggestion for a more precise message for packets that are received after a timeout. #67
Comments
I think this is a long-standing bug that only occurs in certain situations and is difficult to reproduce. A host is marked as "not live" when it's either responded or when it has timed out, and the code assumes that any responses to a non-live host must be duplicates. But that is not strictly true because a hosts' first response can occur shortly after the host has been marked as non-live due to timeout. Note that marking a host as non-live only means that no more packets will be sent to that host, but received packets will still be displayed. Edit: this code in the pcap callback fundtion is also problematic because it assumes that any responding host that isn't marked as "live" when the response is received must be a duplicate and thus shouldn't increment responders.
When a response is received after the host has been marked as non-live due to timeout, it should be displayed in the normal way - no need to add "Received after timeout" because that's an internal implementation matter that the use shouldn't care about. We shouldn't be displaying the "SHOULDN'T HAPPEN" error message in this case either because it's normal (if unusual) behaviour. |
Hopefully fixed by commit 167b4c5 Not fully tested yet though. |
Looks like the issue is fixed. To reproduce I put a Linux bridge between the scanning system and target, and added a 1 second delay with Old behavior:
New behavior:
|
Just "anecdotally", this fixes it on my network. I've run it with and without patch and voila, works! Thanks! |
Thanks for the confirmation. I'm closing this issue now as it appears to be resolved. |
I'm scanning the local network.
It seems that I get
DUP: 1
entries when packets are received after the timeout.Most logical to me would be to adjust the message. If
he->num_recv
is equal to one, it's not a duplicate message, but a message that is received after the timeout.This is just using
arp-scan-1.9.7
the default on Ubuntu, but the precise version doesn't matter here I think. It would be great if the console log would be more precise here.Now:
Towards something like this:
The text was updated successfully, but these errors were encountered: