Created
October 20, 2013 21:19
-
-
Save Leask/7075483 to your computer and use it in GitHub Desktop.
Access your website just like dialing a phone number.
TIPS: $ curl http://[SCRIPT RETURNS]
EXAMPLE: $ curl http://3237077094
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
| #!/usr/bin/env python | |
| import socket | |
| import struct | |
| def ip2long(ip): | |
| packedIP = socket.inet_aton(ip) | |
| return struct.unpack("!L", packedIP)[0] | |
| print ip2long('192.241.224.102') # your website ip address |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment