Skip to main content

No project description provided

Project description

G-Osintlib

This Python script contains several functions designed to validate and retrieve detailed information for various data types such as phone numbers, IP addresses, credit cards, email addresses, VINs, ISINs, and ISBNs. These functions make use of various third-party websites to fetch relevant data.


Table of Contents

  1. Functions Overview
  2. Function Details
  3. Requirements
  4. Usage
  5. Error Handling
  6. License

Functions Overview

The script includes the following functions:

  • phone(number): Validates and retrieves information about a phone number.
  • ipscan(ip, fast=False): Performs an IP scan and retrieves geolocation and open port information.
  • creditcard(card): Validates and retrieves information about a credit card.
  • email(email): Validates an email address and checks for a valid mail server.
  • vinscan(vin): Retrieves information about a vehicle using its VIN (Vehicle Identification Number).
  • isin(isin): Validates and retrieves information about an ISIN (International Securities Identification Number).
  • isbn(isbn): Validates and retrieves information about a book using its ISBN.

Function Details

phone(number)

  • Description: Validates a phone number and retrieves details such as country, carrier, time zone, and international format.
  • Input: A phone number as a string.
  • Output: Displays phone number information including country, carrier, and time zone.

ipscan(ip, fast=False)

  • Description: Scans an IP address, retrieves location information, and performs port scanning (optional).
  • Input: IP address (string), fast (boolean) to skip port scanning.
  • Output: Prints IP information such as location, organization, and open ports (if fast is set to False).

creditcard(card)

  • Description: Validates a credit card number using the Luhn algorithm and retrieves card information from BIN (Bank Identification Number).
  • Input: A credit card number as a string.
  • Output: Prints card details such as type, brand, issuer, country, and currency.

email(email)

  • Description: Validates the format of an email address and checks for a valid mail server (MX records).
  • Input: An email address as a string.
  • Output: Prints information about the email's domain and mail server validity.

vinscan(vin)

  • Description: Retrieves vehicle information based on the VIN (Vehicle Identification Number).
  • Input: A VIN as a string.
  • Output: Prints detailed information about the vehicle, such as make, model, and year.

isin(isin)

  • Description: Validates the format of an ISIN (International Securities Identification Number) and extracts its components.
  • Input: An ISIN number as a string.
  • Output: Prints the country code, security identifier, and checksum of the ISIN.

isbn(isbn)

  • Description: Validates the format of an ISBN and retrieves information about the book.
  • Input: An ISBN number as a string (either ISBN-10 or ISBN-13).
  • Output: Prints information about the book based on the ISBN format.

Requirements

To run this script, you will need to install the following Python packages:

  • phonenumbers: For phone number validation and information.
  • requests: For making HTTP requests to external APIs.
  • socket: For resolving IP addresses.
  • dns.resolver: For resolving MX records for email validation.
  • concurrent.futures: For multi-threaded port scanning.

Install the required packages using the following command:

pip install phonenumbers requests dnspython

Usage

To use the script, simply call one of the functions with the appropriate input. For example:

Example 1: Phone Number

phone("+14155552671")

Example 2: IP Scan

ipscan("8.8.8.8", fast=True)

Example 3: Credit Card

creditcard("4111111111111111")

Example 4: Email

email("example@example.com")

Example 5: VIN Scan

vinscan("1HGCM82633A123456")

Example 6: ISIN

isin("US0378331005")

Example 7: ISBN

isbn("9780132350884")

Error Handling

The functions handle various exceptions gracefully, including:

  • Invalid Format: If the input does not match the expected format, an error message will be shown.
  • Network Issues: If there is a problem with the external API or network, the script will output a relevant error message.
  • Invalid Data: If the data retrieved from an API is invalid or incomplete, the script will print an error message.

License

This script is released under the MIT License. Feel free to modify and distribute it as needed.


Credits

This script was created by LemonPower21 (also known as Francesco Vito Giotta).

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

gosintlib-3.1.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

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

gosintlib-3.1-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file gosintlib-3.1.tar.gz.

File metadata

  • Download URL: gosintlib-3.1.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.0

File hashes

Hashes for gosintlib-3.1.tar.gz
Algorithm Hash digest
SHA256 114c57c15ed203c5b28a0c3185f273a5d5945c22f91c9d5d63955a973fad4083
MD5 a10240c027c25dd1a5d3225883acb628
BLAKE2b-256 3dee66becb2caf3c0b72bcdf95e7cf56eb2d744b488640b0c61bb3d0f5099921

See more details on using hashes here.

File details

Details for the file gosintlib-3.1-py3-none-any.whl.

File metadata

  • Download URL: gosintlib-3.1-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.0

File hashes

Hashes for gosintlib-3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 109f78c3ebecf67dff776dc8284ff02638b59dfb0ddaeb6db93cbf4f9ad7f785
MD5 5c48fe650c2b4ade0c9fa1eca99b2709
BLAKE2b-256 bf43b74abc6eb61d658ffb9894920244c8c10bbeb461decafe7bdd0b9db20451

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