Skip to main content

Obscure IPv4 addresses into alternative representations

Project description

obscureV4

Let's obscure some IPv4 addresses

Absolutely requires Python3.6+, confirmed broken on anything older.

Usage

python3 obscure $IP

You can use --payload to interpolate the obfuscated IPs into a command using \I as the anchor for where you want the IP to be.

python3 obscure $IP --payload "ping -c 4 \I"

Example

python3 obscure 216.58.217.206    
3627735502
216.58.217.206
216.58.55758
216.3856846
0xd83ad9ce
0xd8.0x3a.0xd9.0xce
0xd8.58.0xd9.0xce
[...]

Using as a Library

Install the package:

pip install -e .

Then import and use ObscureIP directly:

from obscure import ObscureIP

o = ObscureIP("203.0.113.1")

for ip in o.obscure_ips:
    print(ip)

You can also defer generation with auto_obscure=False:

o = ObscureIP("203.0.113.1", auto_obscure=False)
# ... do other setup ...
o.obscure()
print(o.obscure_ips)

To get a single random obscured IP (guaranteed not to be the plain dotted-decimal form):

o = ObscureIP("203.0.113.1")
print(o.random_ip)  # e.g. '0xcb.0x0.0x71.0x1'

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

obscureipv4-4.0.0.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

obscureipv4-4.0.0-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file obscureipv4-4.0.0.tar.gz.

File metadata

  • Download URL: obscureipv4-4.0.0.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.7

File hashes

Hashes for obscureipv4-4.0.0.tar.gz
Algorithm Hash digest
SHA256 5a75fefb82c80736f5df3b597c9e8df143117a85688cc49e35b071b591228cfc
MD5 c9aa052f96e2e102c4721718c93d39c3
BLAKE2b-256 b9ecd175a26bf24560ff6b0e9371b5f22571a98a74aae4163e856298dd95f422

See more details on using hashes here.

File details

Details for the file obscureipv4-4.0.0-py3-none-any.whl.

File metadata

  • Download URL: obscureipv4-4.0.0-py3-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.7

File hashes

Hashes for obscureipv4-4.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 34e48da90b83c5d39ff9fb094935a41be8986958459938bee519f0368f8daefd
MD5 449116913b5b782949cfec7690c40ca7
BLAKE2b-256 51ae9d906488d0016dc266e14de0a7776e2e0f12583d6d54754eed3565e604b4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page