
Récupérer les informations de géolocalisation IP
====
si pip3 est manquant :
$ ./ip2geolocation.py
usage: ipgeolocation.py [-h] [-m] [-t TARGET] [-T file] [-u User-Agent]
[-U file] [-g] [--noprint] [-v] [--nolog] [-x PROXY]
[-X file] [-e file] [-ec file] [-ex file]
IPGeolocation 2.0.4
--[ Retrieve IP Geolocation information from ip-api.com
--[ Copyright (c) 2015-2016 maldevel (@maldevel)
--[ ip-api.com service will automatically ban any IP addresses doing over 150 requests per minute.
optional arguments:
-h, --help show this help message and exit
-m, --my-ip Get Geolocation info for my IP address.
-t TARGET, --target TARGET
IP Address or Domain to be analyzed.
-T file, --tlist file
A list of IPs/Domains targets, each target in new line.
-u User-Agent, --user-agent User-Agent
Set the User-Agent request header (default: IP2GeoLocation 2.0.3).
-U file, --ulist file
A list of User-Agent strings, each string in new line.
-g Open IP location in Google maps with default browser.
--noprint IPGeolocation will print IP Geolocation info to terminal. It is possible to tell IPGeolocation n
ot to print results to terminal with this option.
-v, --verbose Enable verbose output.
--nolog IPGeolocation will save a .log file. It is possible to tell IPGeolocation not to save those log
files with this option.
-x PROXY, --proxy PROXY
Setup proxy server (example: http://127.0.0.1:8080)
-X file, --xlist file
A list of proxies, each proxy url in new line.
-e file, --txt file Export results.
-ec file, --csv file Export results in CSV format.
-ex file, --xml file Export results in XML format.
Récupérer la géolocalisation de votre IP
Récupérer la géolocalisation d'une IP
Récupérer la géolocalisation d'un domaine
Ne pas sauvegarder les fichiers .log
Chaîne User-Agent personnalisée
Utilisation d'un proxy
Utilisation d'un proxy aléatoire
Choisir aléatoirement une chaîne User-Agent
Récupérer la géolocalisation IP et ouvrir l'emplacement dans Google Maps avec le navigateur par défaut
Exporter les résultats vers un fichier CSV
Exporter les résultats vers un fichier XML
Exporter les résultats vers un fichier TXT
Récupérer la géolocalisation IP pour plusieurs cibles
Récupérer la géolocalisation IP pour plusieurs cibles et exporter les résultats en xml
Ne pas afficher les résultats dans le terminal