Last active
January 5, 2018 00:16
-
-
Save alexander-hanel/c57a65b2e3426bd621bc3a51d433bb15 to your computer and use it in GitHub Desktop.
hex to ip
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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