Closed postmodern closed 1 week ago
Add a core-ext method to URI::HTTP which "de-fangs" the URI and returns a String.
URI::HTTP
String
http://www.evil.com/foo/bar/baz
hxxp://www[.]evil[.]com/foo/bar/baz
https://www.evil.com/foo/bar/baz
hxxps://www[.]evil[.]com/foo/bar/baz
This might also require putting the logic into Ronin::Support::Network::URL.defang and Ronin::Support::Network::IP.defang methods, or creating a Ronin::Support::Network::Defang module to contain the defanging/refanging logic.
Ronin::Support::Network::URL.defang
Ronin::Support::Network::IP.defang
Ronin::Support::Network::Defang
Implemented by cb97c14.
Add a core-ext method to
URI::HTTP
which "de-fangs" the URI and returns aString
.http://www.evil.com/foo/bar/baz
->hxxp://www[.]evil[.]com/foo/bar/baz
https://www.evil.com/foo/bar/baz
->hxxps://www[.]evil[.]com/foo/bar/baz
This might also require putting the logic into
Ronin::Support::Network::URL.defang
andRonin::Support::Network::IP.defang
methods, or creating aRonin::Support::Network::Defang
module to contain the defanging/refanging logic.