- 
                Notifications
    You must be signed in to change notification settings 
- Fork 184
research/fragattack: implement --pre-test-delay #44
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
Conversation
| time.sleep(self.options.connected_delay) | ||
| log(STATUS, f"Client {station.get_peermac()} with IP {peerip} has connected") | ||
| station.set_ip_addresses(self.arp_sender_ip, peerip) | ||
|  | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@angeloc There are few problems here:
- Suggested-by is missing
- The sleep should happen happen after the print
- Suggest even to move after set_ip_address
| The delay was implemented in  This delay should happen after completing the 4-way handshake. The delay that you seem to be adding is done after getting an IP address. I suppose this difference was important in your case. Can you confirm that a delay after getting the IP address was important? We can add a separate parameter for that. | 
| Correct, if we don't have the delay the ping packet in receive interface is dropped. We will check it | 
b45cf53    to
    5af94ca      
    Compare
  
    5af94ca    to
    eb436e0      
    Compare
  
    | Thanks for the update, will try to find time to check this. | 
pre_delay can be used to add a delay before actually executing the test. Suggested-by: Michael Trimarchi <[email protected]> Signed-off-by: Angelo Compagnucci <[email protected]>
Adding a delay before actually executing the test. This can be useful in all the cases the network stack of the victim is still not ready to receive packets leading to a timed out test result. Suggested-by: Michael Trimarchi <[email protected]> Signed-off-by: Angelo Compagnucci <[email protected]>
This parameter can be used each time a test needs to be delayed before actually executing it. Suggested-by: Michael Trimarchi <[email protected]> Signed-off-by: Angelo Compagnucci <[email protected]>
eb436e0    to
    0375781      
    Compare
  
    | Looks good. I've tweaked the code and pushed those changes (it's the first time I edited a pull request so hopefully that went well). If possible, can you confirm that the updated code works for you? Then I'll merge these changes. | 
| Looks good to me! | 
Adding --pre-test-delay parameter