pip3 install leakcheck
Or download tarball / git clone
and execute python3 setup.py install
To start working with this package you need to obtain personal API key from here and link IP address of your server or personal computer. It can be IPv6 as well as IPv4.
Public API can be used without IP linking.
Package automatically creates "PyLCAPI.json" file in the working directory on the first startup. Then, API key and/or proxy settings can be loaded from there.
usage: leakcheck [-h] [--key KEY] [-m] [--proxy PROXY] [--endpoint ENDPOINT]
[--type TYPE] [-lo] [-p]
query
CLI version of LeakCheck API (v1.0.0). Licensed under MIT license
positional arguments:
query What are we going to search?
optional arguments:
-h, --help show this help message and exit
--key KEY Set an API key (taken from config by default)
-m Use mirror (leakcheck.io instead of leakcheck.net, default: False)
--proxy PROXY Set proxy (supported: HTTP/HTTPS/SOCKS4/SOCKS5, default: empty)
--endpoint ENDPOINT Set an endpoint (default: /)
--type TYPE Set a type of the query (default: auto)
-lo Print lines/sources only (useful if you process them later or save, default: False)
-p Lookup privately (hashes data with SHA256, then truncates hash to 24 characters; works for email, pass_email only, default: False)
from leakcheck import LeakCheckAPI
# Initialising API class
api = LeakCheckAPI()
# API key setting
api.set_key("YOUR_KEY")
# Type setting
api.set_type("email")
# Or login / mass / etc
# Search setting
api.set_query("example@example.com")
# Query prepared. Now we're ready to make our first request
result = api.lookup() # list of dicts
# HTTP/HTTPS/SOCKS4/SOCKS5 supported
# Handled by requests[proxy], requests[socks]
api.set_proxy("socks5://127.0.0.1:8123")
# This will use leakcheck.io instead of leakcheck.net
api.use_mirror()
from leakcheck import LeakCheckAPI
# Initialising API class
api = LeakCheckAPI()
ip = api.getIP() # string
from leakcheck import LeakCheckAPI
# Initialising API class
api = LeakCheckAPI()
# API key setting
api.set_key("YOUR_KEY")
limits = api.getLimits() # dict