Skip to content

Instantly share code, notes, and snippets.

@jezman
Created February 7, 2017 07:36
Show Gist options
  • Save jezman/69456a114f275fd0166c0f835ea4d1f0 to your computer and use it in GitHub Desktop.
Save jezman/69456a114f275fd0166c0f835ea4d1f0 to your computer and use it in GitHub Desktop.
GeoIP DB by Pentestit
#!/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