Official Python client to interact with the InsecureWeb API.
Project description
InsecureWeb Python Client
This is the official Python client to easily interact with the InsecureWeb API.
Installation
You can install this package easily using pip:
pip install insecureweb-client
Quickstart
Here is an example of how to use the client to create organizations in bulk. Remember to configure your API Key as an environment variable.
import os
from insecureweb import InsecureWebClient
# 1. Load your API key
my_key = "YOUR_API_KEY_HERE" # We recommend using environment variables (os.getenv)
# 2. Initialize the client
client = InsecureWebClient(my_key)
# 3. Prepare the data
data = [
{
"orgName": "My Test Company",
"domains": ["mycompany.com"],
"emails": [],
"users": [],
"ips": [],
"scanServices": ["DARK_WEB"]
}
]
# 4. Send the request
result = client.create_organizations_bulk(data)
print(result)
Usage Examples
Once the client is initialized, you can easily use the monitoring and scanning engines:
Dark Web & Typosquatting
# Get Dark Web breaches for your organization
breaches = client.get_dark_web_breaches(organization_id=123456)
print(f"Found {len(breaches)} breaches.")
# Check for Typosquatting (domain impersonation)
typo_threats = client.check_typosquatting(organization_id=123456)
print(f"Found {len(typo_threats)} suspicious domains.")
Live Scan & Vulnerabilities
# Search the Dark Web in real time
live_results = client.live_scan_dark_web(field="domain", search_term="example.com")
print(f"Found {len(live_results)} real-time matches.")
# Launch an infrastructure vulnerability scan
scan = client.register_vulnerability_scan(
organization_id=123456,
scan_name="Scheduled SDK Scan",
targets=["example.com", "8.8.8.8"],
run_now=True
)
print("Scan successfully registered!")
Features
- Automatic handling of authentication headers (
api-key). - API version injection (
v3andv2endpoints supported). - Smart HTTP response handling and error message extraction.
- Support for empty server responses (HTTP 204).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file insecureweb_client-0.2.0.tar.gz.
File metadata
- Download URL: insecureweb_client-0.2.0.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4767391eaf08299e275763919df10f87f5c36971620ba156892ee7ecea582915
|
|
| MD5 |
eba650e81e3d0d98971d9e9353762608
|
|
| BLAKE2b-256 |
28fa595c303eef32fa30b52956b133e1565893ab754f42e18f22829d3ed42999
|
File details
Details for the file insecureweb_client-0.2.0-py3-none-any.whl.
File metadata
- Download URL: insecureweb_client-0.2.0-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c9df1d752ede06a22964ac945f7a9eb8cb9b336bd8b5c9917eaaa00dfa056bcc
|
|
| MD5 |
9e540682aa51fb5f8275df4df1a51118
|
|
| BLAKE2b-256 |
162c2f05beffdada001e27839f08e7cd258fec145d9bdb9358eb5ee4d5eb3f9a
|