Skip to content

Instantly share code, notes, and snippets.

@0xm4ud
Created January 15, 2023 01:33
Show Gist options
  • Save 0xm4ud/67f15746a30f17401ad001780f7927f0 to your computer and use it in GitHub Desktop.
Save 0xm4ud/67f15746a30f17401ad001780f7927f0 to your computer and use it in GitHub Desktop.
Oneliner to convert IP to hex in reverse for Assembly ws32 shell
python3 -c 'print("".join([octet[2:] for octet in [hex(int(octet)) for octet in input("Enter an IP address: ").split(".")][::-1]]))'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment