IPGeoLocation
====
Una herramienta para recuperar información de geolocalización IP
Desarrollado por ip-api
Requisitos
Python 3.x
termcolor
colorama
Descarga / Instalación
clon de git https://github.com/maldevel/IPGeoLocation
pip3 install -r requirements.txt --user
si falta pip3:
apt-get install python3-setuptools
easy_install3 pip
pip3 install -r requirements.txt
Caracteristicas
Recuperar IP o geolocalización de dominio.
Recupera tu propia Geolocalización de IP.
Recupere la geolocalización para direcciones IP o dominios cargados desde el archivo. Cada objetivo en una nueva línea.
Defina su propia cadena de agente de usuario personalizada.
Seleccione cadenas de usuario-agente aleatorias del archivo. Cada cadena de agente de usuario en una nueva línea.
Soporte de proxy.
Seleccione un proxy aleatorio del archivo. Cada URL de proxy en una nueva línea.
Abra la geolocalización de IP en Google Maps usando el navegador predeterminado.
Exporta los resultados a formato csv, xml y txt.
Información de geolocalización
ASN
Ciudad
País
Código de país
ISP
Latitud
Longitud
Organización
Código de región
Nombre de la región
Zona horaria
Código postal
Uso
$ ./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.
Ejemplos
Recupera tu Geolocalización de IP
./ip2geolocation.py -m
Recuperar la geolocalización de IP
./ip2geolocation.py -t xxxx
Recuperar la geolocalización del dominio
./ip2geolocation.py -t example.com
No guarde archivos .log
./ip2geolocation.py -t example.com --nolog
Cadena de agente de usuario personalizada
./ip2geolocation.py -t xxxx -u "Mozilla / 5.0 (Windows NT 6.3; WOW64; Trident / 7.0; rv: 11.0) como Gecko"
Usando Proxy
./ip2geolocation.py -t xxxx -x http://127.0.0.1:8080
Usando proxy aleatorio
./ip2geolocation.py -t xxxx -X /path/to/proxies/filename.txt
Elija la cadena de usuario-agente al azar
./ip2geolocation.py -t xxxx -U /path/to/user/agent/strings/filename.txt
Recupere la geolocalización de IP y la ubicación abierta en los mapas de Google con el navegador predeterminado
./ip2geolocation.py -t xxxx -g
Exportar resultados a archivo CSV
./ip2geolocation.py -t xxxx --csv /path/to/results.csv
Exportar resultados a archivo XML
./ip2geolocation.py -t xxxx --xml /ruta/a/resultados.xml
Exportar resultados a archivo TXT
./ip2geolocation.py -t xxxx -e /ruta/a/resultados.txt
Recuperar la geolocalización de IP para muchos objetivos
./ip2geolocation.py -T /ruta/a/targets/targets.txt
Recupere la geolocalización de IP para muchos objetivos y exporte los resultados a xml
./ip2geolocation.py -T /path/to/targets/targets.txt --xml /path/to/results.xml
No imprima los resultados en el terminal
./ip2geolocation.py -m -e /ruta/a/resultados.txt --noprin
Comentarios
Publicar un comentario