1 unstable release
0.1.0 | Oct 18, 2024 |
---|
#2147 in Command line utilities
152 downloads per month
15KB
279 lines
IP Obfuscator (ipobf)
Obfuscate an IP address by taking advantage of lax parsers allowing hexdecimal and octal encoding, multi-byte integers and IPv6 compatibility.
Installation
cargo install ipobf
Or download and extract a pre-compiled binary from the Releases page.
Alternatively, build from source (requires Rust):
git clone https://github.com/JorianWoltjer/ipobf.git && cd ipobf
cargo install --path .
Example
Below is an example of some addresses that come out of the cloud metadata IP (169.254.169.254).
$ ipobf 169.254.169.254
169.254.169.254
0xa9.0xfe.0xa9.0xfe
0x000a9.0x000fe.0x000a9.0x000fe
0XA9.0XFE.0XA9.0XFE
...
0251.0376.0251.0376
169.254.43518
0X000A9.0X000FEA9FE
000025177524776
::ffff:a9fe:a9fe
0:0:00:000:0000:FFFF:A9FE:A9FE
::a9fe:a9fe
0:0:0:0:0:0:169.254.169.254
a9fea9fe.nip.io
a9fea9fe.01010101.rbndr.us
169-254-169-254.redir.jtw.sh
Usage
$ ipobf --help
A simple CLI to obfuscate IP addresses
Usage: ipobf [OPTIONS] <HOST>
Arguments:
<HOST> The IP address to obfuscate. May also be a hostname or any of "cloud|meta|metadata" to use 169.254.169.254
Options:
-p, --padding <PADDING> The amount of 0-padding to use [default: 3]
-n, --no-aliases Disable adding few extra aliases for localhost (eg. 0.0.0.0, 127.1.2.3) and cloud (eg. [fd00:ec2::254])
-o, --output <OUTPUT> Output file
-a, --output-append Append to the output file
-b, --brackets Add brackets to IPv6 addresses
-h, --help Print help
Dependencies
~1.3–10MB
~74K SLoC