Skip to content
KitploitKITPLOIT
OutilsBlog
Soumettre
OutilsBlog
Soumettre

Outils de Hacking, PenTest et Cybersécurité pour votre Arsenal de Sécurité !

Kitploit est un répertoire d'outils de hacking, de cybersécurité et de pentesting. Découvrez les dernières mises à jour des projets pour trouver des vulnérabilités, analyser des systèmes, automatiser les tests et renforcer votre sécurité.

··Flux·Contact·Confidentialité·© 2026 Kitploit

Répertoire d'outils

Catégories

Voir toutes les catégories
Loading categories
IPGeoLocation — Récupérer les informations de géolocalisation IP | Kitploit
Outils/GitHubGitHub/maldevel/ipgeolocation
OSINT (Renseignement de Sources Ouvertes)ReconnaissanceCollecte d'Informations
GitHubmaldevel/ipgeolocation

IPGeoLocation

Récupérer les informations de géolocalisation IP

Voir le dépôt
980348il y a 9 ansVérifié par Kitploit

Populaires

Voir tout →

Découvrez les outils les plus utilisés par notre communauté.

Explorer tous les outils

Parcourez notre collection d'outils

Voir tous les outils →
Partager

IPGeoLocation

====

  • Un outil pour récupérer des informations de géolocalisation IP
  • Propulsé par ip-api

Prérequis

  • Python 3.x
  • termcolor
  • colorama

Téléchargement/Installation

  • git clone https://github.com/maldevel/IPGeoLocation
  • pip3 install -r requirements.txt --user

si pip3 est manquant :

  • apt-get install python3-setuptools
  • easy_install3 pip
  • pip3 install -r requirements.txt

Fonctionnalités

  • Récupérer la géolocalisation d'une IP ou d'un domaine.
  • Récupérer la géolocalisation de votre propre IP.
  • Récupérer la géolocalisation d'IP ou de domaines chargés depuis un fichier. Chaque cible sur une nouvelle ligne.
  • Définir votre propre chaîne User-Agent personnalisée.
  • Sélectionner aléatoirement des chaînes User-Agent depuis un fichier. Chaque chaîne User-Agent sur une nouvelle ligne.
  • Support des proxys.
  • Sélectionner un proxy aléatoire depuis un fichier. Chaque URL de proxy sur une nouvelle ligne.
  • Ouvrir la géolocalisation IP dans Google Maps avec le navigateur par défaut.
  • Exporter les résultats aux formats csv, xml et txt.

Informations de géolocalisation

  • ASN
  • City
  • Country
  • Country Code
  • ISP
  • Latitude
  • Longtitude
  • Organization
  • Region Code
  • Region Name
  • Timezone
  • Zip Code

Utilisation

root@kitploit:~
$ ./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.

Exemples

Récupérer la géolocalisation de votre IP

  • ./ip2geolocation.py -m

Récupérer la géolocalisation d'une IP

  • ./ip2geolocation.py -t x.x.x.x

Récupérer la géolocalisation d'un domaine

  • ./ip2geolocation.py -t example.com

Ne pas sauvegarder les fichiers .log

  • ./ip2geolocation.py -t example.com --nolog

Chaîne User-Agent personnalisée

  • ./ip2geolocation.py -t x.x.x.x -u "Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; rv:11.0) like Gecko"

Utilisation d'un proxy

  • ./ip2geolocation.py -t x.x.x.x -x http://127.0.0.1:8080

Utilisation d'un proxy aléatoire

  • ./ip2geolocation.py -t x.x.x.x -X /path/to/proxies/filename.txt

Choisir aléatoirement une chaîne User-Agent

  • ./ip2geolocation.py -t x.x.x.x -U /path/to/user/agent/strings/filename.txt

Récupérer la géolocalisation IP et ouvrir l'emplacement dans Google Maps avec le navigateur par défaut

  • ./ip2geolocation.py -t x.x.x.x -g

Exporter les résultats vers un fichier CSV

  • ./ip2geolocation.py -t x.x.x.x --csv /path/to/results.csv

Exporter les résultats vers un fichier XML

  • ./ip2geolocation.py -t x.x.x.x --xml /path/to/results.xml

Exporter les résultats vers un fichier TXT

  • ./ip2geolocation.py -t x.x.x.x -e /path/to/results.txt

Récupérer la géolocalisation IP pour plusieurs cibles

  • ./ip2geolocation.py -T /path/to/targets/targets.txt

Récupérer la géolocalisation IP pour plusieurs cibles et exporter les résultats en xml

  • ./ip2geolocation.py -T /path/to/targets/targets.txt --xml /path/to/results.xml

Ne pas afficher les résultats dans le terminal

  • ./ip2geolocation.py -m -e /path/to/results.txt --noprint
Télécharger l’outil