rapid7 / rex-socket

The Rex Socket Abstraction Library
Other
12 stars 33 forks source link

Add in function to convert IPv6 addresses to IPv6 URL compatible format #61

Closed gwillcox-r7 closed 1 year ago

gwillcox-r7 commented 1 year ago

This uses https://en.wikiversity.org/wiki/IPv6#Use_in_URLs and the information in several RFCs which specify that IPv6 addresses in URLs should be enclosed in [ ] and makes a function in Rex-Socket that makes it easy to identify if an address is an IPv6 address and convert it into a URL compatible string.

This came up after some discussion with @smcintyre-r7 about the lack of ability to do this in Metasploit and the increased need to support IPv6 in Metasploit.