Skip to main content

Geo locator

Project description

Nash-NetGeoScanner

Nash-NetGeoScanner is a Python-based tool that combines network scanning using nmap with IP geolocation retrieval. It allows you to scan networks and obtain geographical information about IP addresses.

Features

  • Network Scanning: Perform network scans using nmap. The tool scans a given website link for open ports and other network-related information.
  • IP Geolocation: Retrieve the geographical location of an IP address using an external API. The tool returns information such as city, region, country, latitude, and longitude.

Functions

  • sanitize_input: Cleans and formats the input string to ensure it is in a suitable format for further processing.
  • Nmap: Scans a website link after sanitizing it, using nmap to gather network information.
  • get_location: Queries an external API to retrieve geographical data for a given IP address.

Usage

  1. Clone the repository:
    git clone https://github.com/yourusername/Nash-NetGeoScanner.git
    python nash_netgeoscanner.py
    

Enter the website link and IP address when prompted to perform the scan and retrieve location data.

Important Notes

Security: Running nmap with elevated permissions (sudo) based on user input can be potentially dangerous. Ensure proper input sanitization and only scan networks/IP addresses you have permission to scan. API Key Management: Keep your API key secure. Avoid hard-coding it in the script; use environment variables or a secure vault instead.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nash_geo_scanner-0.1.0.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Nash_Geo_Scanner-0.1.0-py3-none-any.whl (1.9 kB view details)

Uploaded Python 3

File details

Details for the file nash_geo_scanner-0.1.0.tar.gz.

File metadata

  • Download URL: nash_geo_scanner-0.1.0.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.9

File hashes

Hashes for nash_geo_scanner-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8f86a287108aec19d4abd01589e94007dd7dd79a0a081bc5e885200ace12524e
MD5 f5e1ff56fcee2a44d41ba82f061f5648
BLAKE2b-256 5905096429b12783ff3c383e4d1674a3f35af0958ef2a967a4426d0ab5032b0c

See more details on using hashes here.

File details

Details for the file Nash_Geo_Scanner-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for Nash_Geo_Scanner-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2545b4495c12ee63368db7ff1e2927a7519a70f2d4712d530ffd5e901e092d30
MD5 0708a3532429d68574ecd637900ebea3
BLAKE2b-256 fa6f77de44e3e8f04c860c4732720df23cb9dabe1f1c4dd9e628931ed4182147

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page