Skip to main content

LeakIX API Client

Project description

🚀 LeakPy

LeakPy is a third-party client designed to seamlessly interact with the leakix.net API using Python.

Note: This is not the official LeakIX client. Always refer to the Official LeakIX Python Client for the official client.

📥 Installation

To install LeakPy via PyPi:

pip install leakpy

🖥️ CLI Usage

$ leakpy -h

Options:

$ leakpy -h                                                                               

usage: leakpy [-h] [-s {service,leak}] [-p PAGES] [-q QUERY] [-P PLUGINS] [-o OUTPUT]
              [-f FIELDS] [-r] [-lp]

options:
  -h, --help            show this help message and exit
  -s {service,leak}, --scope {service,leak}
                        Type Of Informations
  -p PAGES, --pages PAGES
                        Number Of Pages
  -q QUERY, --query QUERY
                        Specify The Query
  -P PLUGINS, --plugins PLUGINS
                        Specify The Plugin(s)
  -o OUTPUT, --output OUTPUT
                        Output File
  -f FIELDS, --fields FIELDS
                        Fields to extract from the JSON, comma-separated. For example:
                        'protocol,ip,port'
  -r, --reset-api       Reset the saved API key
  -lp, --list-plugins   List Available Plugins

📘 Library Documentation

LeakixScraper

The LeakixScraper class provides a direct and simple interface to the leakix.net API.

Initialization:

from leakpy.scraper import LeakixScraper

scraper = LeakixScraper(api_key="Your_API_Key")

Methods:

  • execute(scope, query, pages, plugin, fields)

    Conduct a search on leakix.net.

    Arguments:

    • scope (str): Type of information (e.g., "service" or "leak").
    • query (str): The query to be executed.
    • pages (int): Number of pages to fetch.
    • plugin (str): Plugins to use (e.g., "PulseConnectPlugin, SharePointPlugin")
    • fields (str): Fields to extract from the JSON, comma-separated (e.g., "event_source, host, ip, port").

    Example:

    results = scraper.execute(scope="leak", query='+country:"France"', pages=5, fields="event_source, host, ip, port", plugin="PulseConnectPlugin")
    for result in results:
        print("Event Source:", result["event_source"])
        print("Host:", result["host"])
        print("IP:", result["ip"])
        print("Port:", result["port"])
        print("*" * 20)
    

🚫 Disclaimer

LeakPy is an unofficial tool and is not affiliated with leakix.net. The developers of LeakPy are not responsible for any misuse or potential damage from this tool. Use responsibly and ensure you have the necessary permissions when accessing data.

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

leakpy-1.5.6.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

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

leakpy-1.5.6-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file leakpy-1.5.6.tar.gz.

File metadata

  • Download URL: leakpy-1.5.6.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for leakpy-1.5.6.tar.gz
Algorithm Hash digest
SHA256 f6ce7541a7f741ab405b9a6cadd5c2ef5931049d93fe5bc9c96411734ab4254e
MD5 082e4e6ba5159a097367ff09e78b0464
BLAKE2b-256 6160ffb8bf5002965d0d1d0574dd1a1e2197b8aa69872d39c20c2334064d3de5

See more details on using hashes here.

File details

Details for the file leakpy-1.5.6-py3-none-any.whl.

File metadata

  • Download URL: leakpy-1.5.6-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for leakpy-1.5.6-py3-none-any.whl
Algorithm Hash digest
SHA256 12dec0fc15872e2202c4b0f7ad5bbba621d3ee7c0dae936b9792cb8ce2eec6a7
MD5 99927ba8776b1a81278bc5e0d7241395
BLAKE2b-256 5c5a25b6e8d57a2e64725476aeb934e022b8ad09c3c2fd7562541600209a5dbf

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