Open postmodern opened 2 weeks ago
Add a core-ext method to String which can un-defang a URI or a IP address.
String
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.
Ronin::Support::Network::URL.refang
Ronin::Support::Network::IP.refang
Ronin::Support::Network::Defang
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
andRonin::Support::Network::IP.refang
methods, or creating aRonin::Support::Network::Defang
module to contain the defanging/refanging logic.