Skip to content

Instantly share code, notes, and snippets.

@alexander-hanel
Last active January 5, 2018 00:16
Show Gist options
  • Save alexander-hanel/c57a65b2e3426bd621bc3a51d433bb15 to your computer and use it in GitHub Desktop.
Save alexander-hanel/c57a65b2e3426bd621bc3a51d433bb15 to your computer and use it in GitHub Desktop.
hex to ip
import socket
import struct
def ipconver(addr_long):
return socket.inet_ntoa(struct.pack("<L", addr_long))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment