Skip to content

ipv4mix creates various mixed representations of a specified IPv4 address. It outputs the IP in different formats, including decimal, hexadecimal, octal, and their combinations, providing a versatile view of the address.

License

Notifications You must be signed in to change notification settings

cmd-tools/ipv4mix

Repository files navigation

ipv4mix

ipv4mix creates various mixed representations of a specified IPv4 address. It outputs the IP in different formats, including decimal, hexadecimal, octal, and their combinations, providing a versatile view of the address.

For more info see also:


Table of Contents

Installation

Using go:

go install github.com/cmd-tools/ipv4mix@latest

Using homebrew:

brew tap cmd-tools/homebrew-tap
brew install ipv4mix

Using docker:

docker pull cmdtoolsowner/ipv4mix

Usage

ipv4mix <IPV4 dot separated>

Example

ipv4mix 8.8.9.9
8.8.9.9
0x8.0x8.0x9.0x9
010.010.011.011
8.0x8.9.9
8.8.0x9.9
8.8.9.0x9
8.010.9.9
8.8.011.9
8.8.9.011
0x8.8.9.9
0x8.0x8.9.9
0x8.8.0x9.9
0x8.8.9.0x9
010.010.9.9
8.0x8.9.0x9
8.0x8.0x9.9
134744329
0x8080909
01002004411
8.8.2313
8.0x8.2313
8.010.2313
8.526601
0x8.526601
010.526601
010.010.2313
010.010.0x909
010.010.04411

Using docker:

docker run -i cmdtoolsowner/ipv4mix 8.8.8.8

It can be used in combination with other network related tools like ping, curl, etc.:

ipv4mix main.go 8.8.8.8 | xargs -I {} ping -c 1 {}
ipv4mix main.go 1.2.3.4 | xargs -I {} curl {}/some-path

CTF

Highlighting RFC-3936 Uniform Resource Identifier (URI) (section Rare IP Address Formats)

These additional IP address formats are not allowed in the URI syntax due to differences between platform implementations. However, they can become a security concern if an application attempts to filter access to resources based on the IP address in string literal format. If this filtering is performed, literals should be converted to numeric form and filtered based on the numeric value, and not on a prefix or suffix of the string form

See also:

Contributing

You want to contribute to this project? Wow, thanks! So please just fork it and send a pull request.

About

ipv4mix creates various mixed representations of a specified IPv4 address. It outputs the IP in different formats, including decimal, hexadecimal, octal, and their combinations, providing a versatile view of the address.

Resources

License

Stars

Watchers

Forks

Packages

No packages published