1
0
Fork 0
No description
Find a file
2025-02-17 13:43:53 +01:00
.gitignore Initial commit 2025-02-17 13:43:03 +01:00
compressIPv4.py Fix a minor logic itch 2025-02-17 13:43:53 +01:00
README.md Initial commit 2025-02-17 13:43:03 +01:00

compressIPv4

IPv4 addresses are typically written down as octets, e.g. 127.0.0.1. However the addresses seem to be actually interpreted as one large number (after conversion into binary). This allows for funny things, like to call http://0x7f000001:9000 to open a HTTP service on your local host, listenting on port 9000.

This repo holds a shiny tool to do the converstion for you. It's inspired by a blog post from 2021 by the curl CEO.