Created
February 7, 2017 07:36
-
-
Save jezman/69456a114f275fd0166c0f835ea4d1f0 to your computer and use it in GitHub Desktop.
GeoIP DB by Pentestit
This file contains 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 python3 | |
# -*- coding: utf-8 -*- | |
from requests import get | |
from sys import argv | |
ip = argv[1] | |
r = get('https://ip.pentestit.ru/json.php?ip=' + ip) | |
data = r.json() | |
for key, value in data.items(): | |
print(key, value) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment