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

Add a String#refang method #517

Open
postmodern opened this issue Jun 19, 2024 · 0 comments
Open

Add a String#refang method #517

postmodern opened this issue Jun 19, 2024 · 0 comments
Labels
core_ext Core Extension feature New Feature network Network

Comments

@postmodern
Copy link
Member

postmodern commented Jun 19, 2024

Add a core-ext method to String which can un-defang a URI or a IP address.

  • hxxps://www[.]evil[.]com/foo/bar/baz -> https://www.evil.com/foo/bar/baz
  • 192[.]168[.]1[.]1 -> 192.168.1.1

This might also require putting the logic into Ronin::Support::Network::URL.refang and Ronin::Support::Network::IP.refang methods, or creating a Ronin::Support::Network::Defang module to contain the defanging/refanging logic.

@postmodern postmodern added core_ext Core Extension network Network feature New Feature labels Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core_ext Core Extension feature New Feature network Network
Projects
None yet
Development

No branches or pull requests

1 participant