Fixing Router Advertisement function #24
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello!
Here is a small PR in order to fix two things :
1: Router lifetime
In the blog post about mitm6, it says
However, according to RFC4861 (section 4.2)
Before this PR, if you check
route PRINT
on the victime's machine you should see that the IPv6 default gateway is the attacker machine because the defaultrouterlifetime
value in scapy is 1800 . Thus, this PR forces therouterlifetime
option to 0.2: Multiple interfaces on attacker's machine
Force source MAC and the source IPv6 adresse of the RA packet to be adresses associated with the interface sending the packet. Before this PR, RA packet leaks the link-local adresse of my second network interface.
As a side note
If someone stumble upon this PR while searching about IPv6 attacks: I tried to implement a "RA only" version of mitm6 using the RDNS option of RA. However, even if Windows sets my rogue DNS server, it never uses it to resolve names. I suspect that Windows implements RFC8106 (Section 5.3.1):
Thanks for this amazing tool! 👍
🌻