Skip to content
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

Allowing IPv6 addresses in RespondTo and DontRespondTo #232

Merged
merged 6 commits into from
May 22, 2023

Conversation

also-here
Copy link

The ExpandIpRanges in settings.py did not handle IPv6 addresses. Added additional logic that function which:

  • Identifies IPv6 vs IPv4 address
  • Pads/expands shortened IPv6 addresses to ease iterating a known length
  • Iterates through the a provided range in a similar fashion to an IPv4 address
  • Shortens the IPv6 address to match with the system will see

Also updated Responder.conf in include IPv6 examples for the RespondTo and DontRespondTo options as wells as including a note that, for systems with both and IPv4 and IPv6 address, BOTH addresses must be included in the DontRespondTo option in order to be effective.

Still handles IPv4 addresses as well.
compresses expanded IPv6 addresses
Added IPv6 options to RespondTo and DontRespondTo
removed redundant upper()
added Don't Respond To instructions
@also-here also-here marked this pull request as ready for review March 6, 2023 01:29
Added a IPv6 check for the DNS address. IsOnTheSameSubnet does not currently support IPv6 which is fine as ICMP-Redirecy.py currently does not yet support IPv6 either.
@also-here
Copy link
Author

Also added a IPv6 check for the DNS address to LLMNR.py . IsOnTheSameSubnet does not currently support IPv6 which is fine as ICMP-Redirect.py currently does not yet support IPv6 either.

Should temporarily resolve Issue#152

@also-here also-here mentioned this pull request Mar 15, 2023
@lgandx lgandx merged commit ff21c54 into lgandx:master May 22, 2023
@lgandx
Copy link
Owner

lgandx commented May 22, 2023

Good addition, thanks for submitting this PR.

Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants