Skip to content

AI powered OSINT engine to discover and map 840+ social media identities across the web

feat!: v2.0 - pip package, ML detection, rich UI, proxy support

arxhr007eb10623492e1
diff --git a/.dockerignore b/.dockerignore
new file mode 100644
index 0000000..d92af0c
--- /dev/null
+++ b/.dockerignore
@@ -0,0 +1,12 @@
+.git
+.github
+photos
+results
+cache
+tests
+dist
+build
+*.egg-info
+__pycache__
+.pytest_cache
+.ruff_cache
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000..0cead32
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,49 @@
+name: CI
+
+on:
+ push:
+ branches: [main, v2-upgrade]
+ pull_request:
+ branches: [main]
+
+jobs:
+ lint:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ - uses: actions/setup-python@v5
+ with:
+ python-version: "3.12"
+ - run: pip install ruff
+ - run: ruff check src tests aliens_eye.py
+
+ test:
+ strategy:
+ fail-fast: false
+ matrix:
+ os: [ubuntu-latest, windows-latest]
+ python-version: ["3.10", "3.11", "3.12", "3.13"]
+ runs-on: ${{ matrix.os }}
+ steps:
+ - uses: actions/checkout@v4
+ - uses: actions/setup-python@v5
+ with:
+ python-version: ${{ matrix.python-version }}
+ - run: pip install -e ".[dev,train]"
+ - run: pytest -q
+
+ build:
+ runs-on: ubuntu-latest
+ needs: [lint, test]
+ steps:
+ - uses: actions/checkout@v4
+ - uses: actions/setup-python@v5
+ with:
+ python-version: "3.12"
+ - run: pip install build twine
+ - run: python -m build
+ - run: twine check dist/*
+ - uses: actions/upload-artifact@v4
+ with:
+ name: dist
+ path: dist/
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
new file mode 100644
index 0000000..08089a7
--- /dev/null
+++ b/.github/workflows/release.yml
@@ -0,0 +1,49 @@
+name: Release
+
+on:
+ push:
+ tags: ["v*"]
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ - uses: actions/setup-python@v5
+ with:
+ python-version: "3.12"
+ - run: pip install build twine
+ - run: python -m build
+ - run: twine check dist/*
+ - uses: actions/upload-artifact@v4
+ with:
+ name: dist
+ path: dist/
+
+ publish-pypi:
+ needs: build
+ runs-on: ubuntu-latest
+ environment: pypi
+ permissions:
+ id-token: write
+ steps:
+ - uses: actions/download-artifact@v4
+ with:
+ name: dist
+ path: dist/
+ - uses: pypa/gh-action-pypi-publish@release/v1
+
+ github-release:
+ needs: build
+ runs-on: ubuntu-latest
+ permissions:
+ contents: write
+ steps:
+ - uses: actions/download-artifact@v4
+ with:
+ name: dist
+ path: dist/
+ - uses: softprops/action-gh-release@v2
+ with:
+ files: dist/*
+ generate_release_notes: true
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..7220fa2
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,12 @@
+__pycache__/
+*.py[cod]
+*.egg-info/
+dist/
+build/
+.venv/
+venv/
+.pytest_cache/
+.ruff_cache/
+results/
+cache/
+config.json
diff --git a/CHANGELOG.md b/CHANGELOG.md
new file mode 100644
index 0000000..1d0d9aa
--- /dev/null
+++ b/CHANGELOG.md
@@ -0,0 +1,31 @@
+# Changelog
+
+## 2.0.0 (2026-06-11)
+
+### Added
+- **PyPI package**: `pip install aliens-eye` with `aliens_eye` console command
+- **Real ML detection**: logistic-regression model trained on labeled scans, blended with the heuristic engine; pure-python inference with zero ML runtime dependencies
+- `aliens_eye train collect` / `aliens_eye train fit` for building datasets and retraining the model
+- `aliens_eye selfcheck`: validates detection accuracy against accounts known to exist
+- **Rich terminal UI**: live progress bar, sorted result tables, summary panels; `--plain` for scripts
+- **Proxy support**: `--proxy` (HTTP/SOCKS4/SOCKS5) and `--tor`
+- **Site filtering**: `--site`, `--exclude-site`, `--no-nsfw`
+- Markdown report export (`--format md`)
+- `--profile quick|full|aggressive` for non-interactive preset selection
+- `--version`, `--sites` (custom site list), `--model` (custom model), `--no-ml`
+- Dockerfile
+- Test suite (pytest) and GitHub Actions CI (lint + tests on Linux/Windows, Python 3.10–3.13)
+- Automated PyPI release workflow via trusted publishing
+
+### Changed
+- Restructured to a `src/aliens_eye/` package; `sites.json` and the model ship as package data
+- Playwright is now an optional extra: `pip install aliens-eye[browser]`
+- Fingerprint cache and config moved to platform-standard directories (via `platformdirs`)
+- Confidence is now derived from a calibrated probability instead of fixed score bands
+
+### Removed
+- Hardcoded `/etc`, `/usr/local`, and Termux path probing
+- Dead `mumble://` site entry
+
+### Compatibility
+- `python aliens_eye.py` from a source checkout still works
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..8b45a82
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,12 @@
+FROM python:3.12-slim
+
+WORKDIR /app
+COPY pyproject.toml README.md LICENSE ./
+COPY src ./src
+RUN pip install --no-cache-dir .
+
+RUN useradd -m scanner
+USER scanner
+WORKDIR /home/scanner
+
+ENTRYPOINT ["aliens_eye"]
diff --git a/README.md b/README.md
index b8cd923..7638cba 100644
--- a/README.md
+++ b/README.md
@@ -1,123 +1,68 @@
<h1 align="center">ALIENS EYE</h1>
<div align="center">
- <img src="https://raw.githubusercontent.com/arxhr007/Aliens_eye/main/photos/logo.png"
- alt="Aliens Eye Logo"
- width="400"
+ <img src="https://raw.githubusercontent.com/arxhr007/Aliens_eye/main/photos/logo.png"
+ alt="Aliens Eye Logo"
+ width="400"
height="300">
</div>
-
<h1 align="center">AI-OSINT Username Scanner</h1>
-
<h3 align="center">Advanced AI-Powered Social Media Username Finder</h3>
-<h4 align="center">Scan 840+ platforms with intelligent detection</h4>
+<h4 align="center">Scan 840+ platforms with ML-blended detection</h4>
<p align="center">
-<a href="#"><img alt="Forks" src="https://img.shields.io/github/forks/BLINKING-IDIOT/Aliens_eye?style=for-the-badge"></a>
-<a href="#"><img alt="Last Commit" src="https://img.shields.io/github/last-commit/BLINKING-IDIOT/Aliens_eye/main?color=green&style=for-the-badge"></a>
-<a href="#"><img alt="Stars" src="https://img.shields.io/github/stars/BLINKING-IDIOT/Aliens_eye?style=for-the-badge&color=red"></a>
-<a href="#"><img alt="License" src="https://img.shields.io/github/license/BLINKING-IDIOT/Aliens_eye?color=orange&style=for-the-badge"></a>
-<a href="https://github.com/BLINKING-IDIOT/Aliens_eye/issues"><img alt="Issues" src="https://img.shields.io/github/issues/BLINKING-IDIOT/Aliens_eye?color=purple&style=for-the-badge"></a>
+<a href="https://pypi.org/project/aliens-eye/"><img alt="PyPI" src="https://img.shields.io/pypi/v/aliens-eye?style=for-the-badge&color=blue"></a>
+<a href="https://github.com/arxhr007/Aliens_eye/actions/workflows/ci.yml"><img alt="CI" src="https://img.shields.io/github/actions/workflow/status/arxhr007/Aliens_eye/ci.yml?style=for-the-badge"></a>
+<a href="#"><img alt="Python" src="https://img.shields.io/pypi/pyversions/aliens-eye?style=for-the-badge"></a>
+<a href="#"><img alt="Stars" src="https://img.shields.io/github/stars/arxhr007/Aliens_eye?style=for-the-badge&color=red"></a>
+<a href="#"><img alt="License" src="https://img.shields.io/github/license/arxhr007/Aliens_eye?color=orange&style=for-the-badge"></a>
</p>
-## Highlights
+<!-- TODO: record a demo GIF (e.g. with vhs or asciinema) and drop it at docs/demo.gif -->
+<!-- <p align="center"><img src="docs/demo.gif" width="700"></p> -->
-- Async scanning across a large platform catalog from sites.json
-- Feature extraction with selectolax instead of fragile regex
-- Heuristic detection with confidence scoring
-- JSON, CSV, and HTML reports
-- Playwright fallback for hard pages
-
-## Requirements
+## Highlights
-- Python 3.10+
-- Required packages: aiohttp, selectolax, playwright
-- Internet connection
+- **840+ platforms** scanned asynchronously in seconds
+- **ML + heuristic detection** — a trained model blended with 25 structural signals (HTTP status, DOM shape, keywords, fingerprints) instead of naive status-code checks
+- **Modern terminal UI** — live progress, sorted result tables, summary panels (powered by [rich](https://github.com/Textualize/rich))
+- **Proxy & Tor support** — `--proxy socks5://...` or just `--tor`
+- **Site filtering** — `--site github,reddit`, `--exclude-site`, `--no-nsfw`
+- **Self-check** — `aliens_eye selfcheck` validates detection accuracy against accounts known to exist
+- **Retrainable** — collect your own labeled dataset and retrain the model with `aliens_eye train`
+- **Reports** in JSON, CSV, HTML, and Markdown
+- **Playwright fallback** for JavaScript-heavy pages (optional extra)
## Install
-### Linux
-
```bash
-# Clone the repository
-git clone https://github.com/arxhr007/Aliens_eye.git
-cd Aliens_eye
-
-# Upgrade pip
-python3 -m pip install --upgrade pip
-
-# Install dependencies
-python3 -m pip install -r requirements.txt
-
-# Install Playwright browser binaries
-python3 -m playwright install --with-deps
+pip install aliens-eye
```
-### Windows (PowerShell)
-
-```powershell
-git clone https://github.com/arxhr007/Aliens_eye.git
-cd Aliens_eye
-
-# Upgrade pip
-py -m pip install --upgrade pip
+Optional extras:
-# Install dependencies
-py -m pip install -r requirements.txt
+```bash
+pip install "aliens-eye[browser]" # Playwright fallback for hard pages
+python -m playwright install chromium
-# Install Playwright browser binaries
-py -m playwright install
+pip install "aliens-eye[train]" # scikit-learn, for retraining the ML model
```
-### Run
-
-After installation, run the scanner from the project directory.
-Linux / iSH:
+Or with Docker:
```bash
-cd Aliens_eye
-python3 aliens_eye.py username
+docker build -t aliens-eye .
+docker run --rm -it aliens-eye username
```
-Windows (PowerShell):
+From source:
-```powershell
+```bash
+git clone https://github.com/arxhr007/Aliens_eye.git
cd Aliens_eye
-py .\aliens_eye.py username
-```
-
-## Configuration
-
-Aliens Eye reads a JSON config file and merges it with CLI flags. CLI flags always win.
-
-Search order when no --config is provided:
-- ./config.json
-- <script_dir>/config.json
-- /etc/aliens_eye/config.json
-- /usr/local/etc/aliens_eye/config.json
-- /data/data/com.termux/files/usr/etc/aliens_eye/config.json
-
-Example config.json:
-
-```json
-{
- "concurrent": 50,
- "timeout": 10.0,
- "max_content_bytes": 100000,
- "retries": 2,
- "backoff_base": 0.5,
- "backoff_cap": 8.0,
- "jitter": 0.2,
- "rate_limit_delay": 0.2,
- "fingerprints_path": "cache/fingerprints.json",
- "output_dir": "results",
- "output_formats": ["json", "csv", "html"],
- "use_playwright": false,
- "max_fingerprints_per_label": 50,
- "level": "basic"
-}
+pip install -e .
```
## Usage
@@ -132,45 +77,102 @@ aliens_eye username
# Multiple usernames
aliens_eye username1 username2
-# Advanced scan level
+# Advanced scan level (prefix/suffix variations)
aliens_eye username -l advanced
-# Limit concurrency
-aliens_eye username -c 30
+# Only scan specific sites
+aliens_eye username --site github,reddit,gitlab
+
+# Skip NSFW sites
+aliens_eye username --no-nsfw
-# Enable verbose logs
-aliens_eye username -v
+# Route through Tor (needs a local Tor daemon)
+aliens_eye username --tor
-# Use a custom config file
-aliens_eye --config config.json username
+# Any HTTP or SOCKS proxy
+aliens_eye username --proxy socks5://127.0.0.1:1080
-# Export CSV + HTML in addition to JSON
-aliens_eye username --format json,csv,html --output results
+# Export everything
+aliens_eye username --format all --output results
-# Enable Playwright fallback for Maybe results
-aliens_eye username --playwright
+# Heuristics only, no ML
+aliens_eye username --no-ml
+
+# Non-interactive preset: quick / full / aggressive
+aliens_eye username --profile quick
+
+# Plain output for scripts and CI (no colors/progress)
+aliens_eye username --plain
# View results from a previous scan
-aliens_eye -r results/username_advanced_20250514_120000.json
+aliens_eye -r results/username_advanced_20260611_120000.json
+
+# Validate detection accuracy against known accounts
+aliens_eye selfcheck
```
-If you run from source, call:
+## How detection works
+
+Every response is converted into a 25-dimensional feature vector: HTTP status buckets, username placement (path/title/meta), error and profile keywords, DOM structure (images, forms, profile/error CSS classes), response timing, redirect counts, and per-site fingerprint matches learned from previous scans.
+
+Two judges then vote:
+
+1. **Heuristic engine** — weighted scoring over the features
+2. **ML model** — logistic regression trained on labeled scans of real (and deliberately fake) accounts, shipped with the package and running in pure Python (no sklearn needed at runtime)
+
+The blended probability maps to **Found / Maybe / Not Found** with a confidence percentage. If a model file is missing or invalid, the scanner silently falls back to heuristics.
+
+### Retraining the model
```bash
-python aliens_eye.py username
+pip install "aliens-eye[train]"
+
+# 1. Scan ground-truth accounts + random non-existent usernames to build a dataset
+aliens_eye train collect --out dataset.csv --negatives 4
+
+# 2. Fit and export the model
+aliens_eye train fit --data dataset.csv --out model.json
+
+# 3. Use it
+aliens_eye username --model model.json
+```
+
+## Configuration
+
+Aliens Eye merges a JSON config file with CLI flags (CLI wins). Search order without `--config`: `./config.json`, then the platform config dir (e.g. `~/.config/aliens_eye/config.json` on Linux, `%LOCALAPPDATA%\aliens_eye` on Windows).
+
+```json
+{
+ "concurrent": 50,
+ "timeout": 10.0,
+ "retries": 2,
+ "rate_limit_delay": 0.2,
+ "output_dir": "results",
+ "output_formats": ["json", "csv", "html", "md"],
+ "use_playwright": false,
+ "proxy": null,
+ "use_ml": true,
+ "exclude_nsfw": false,
+ "level": "basic"
+}
```
## Outputs
-Results are saved to the output directory with timestamped filenames:
+Results are saved with timestamped filenames:
-- JSON: username_level_YYYYMMDD_HHMMSS.json
-- CSV: username_level_YYYYMMDD_HHMMSS.csv
-- HTML: username_level_YYYYMMDD_HHMMSS.html
+- `username_level_YYYYMMDD_HHMMSS.json` — full detail including per-site feature analysis
+- `.csv` — flat rows for spreadsheets
+- `.html` — styled standalone report
+- `.md` — Markdown summary of Found/Maybe hits
## Architecture
-Core modules live under core/ (scanner, detector, analyzer, http, exporter). Utilities are in utils/. For internals and flowcharts, see [WORKING.md](WORKING.md).
+The package lives under `src/aliens_eye/`: `core/` (scanner, detector, analyzer, http, exporter, fingerprints), `ml/` (inference, training, dataset collection), `utils/` (rich console layer), and `data/` (sites.json, trained model, ground-truth sets). For internals and flowcharts, see [WORKING.md](WORKING.md).
+
+## Contributing
+
+Issues and PRs welcome — adding sites to `src/aliens_eye/data/sites.json`, expanding the ground-truth set in `selfcheck.json`, or improving the model all directly improve detection. Run `pytest` and `ruff check src tests` before submitting.
## Disclaimer
diff --git a/WORKING.md b/WORKING.md
index b6ee36a..8411223 100644
--- a/WORKING.md
+++ b/WORKING.md
@@ -9,31 +9,39 @@ flowchart TD
A[Start] --> B[Load config and CLI args]
B --> C{Read results file?}
C -->|Yes| D[Load JSON report]
- C -->|No| E[Load sites.json]
- E --> F[Generate username variations]
+ C -->|No| E[Load packaged sites.json]
+ E --> E2[Apply site filters: --site / --exclude-site / --no-nsfw]
+ E2 --> F[Generate username variations]
F --> G[Queue workers]
- G --> H[Fetch URL with retries]
+ G --> H[Fetch URL with retries, optional proxy/Tor]
H --> I[Extract features with selectolax]
I --> J[Fingerprint scoring]
- J --> K[Detect via heuristics]
+ J --> K[Detect: ML model + heuristics blended]
K --> L{Maybe + Playwright enabled?}
L -->|Yes| M[Render page and re-extract]
L -->|No| N[Record result]
M --> N
N --> O[Update fingerprints]
- O --> P[Write JSON/CSV/HTML reports]
+ O --> P[Write JSON/CSV/HTML/Markdown reports]
P --> Q[Done]
```
## Module map
-- core/analyzer.py: HTML parsing and feature extraction (selectolax)
-- core/http.py: Fetch with retries, backoff, and response size caps
-- core/rate_limit.py: Per-domain delay control
-- core/detector.py: Heuristic scoring and status selection
-- core/fingerprints.py: Persisted match fingerprints by site
-- core/scanner.py: Async queue workers and orchestration
-- core/exporter.py: JSON/CSV/HTML report generation
+- `src/aliens_eye/cli.py`: argparse CLI, subcommands (`selfcheck`, `train`), interactive prompts
+- `src/aliens_eye/core/analyzer.py`: HTML parsing and feature extraction (selectolax)
+- `src/aliens_eye/core/http.py`: fetch with retries, backoff, response size caps, HTTP proxy
+- `src/aliens_eye/core/rate_limit.py`: per-domain delay control
+- `src/aliens_eye/core/detector.py`: ML + heuristic blended scoring and status selection
+- `src/aliens_eye/core/fingerprints.py`: persisted match fingerprints by site
+- `src/aliens_eye/core/scanner.py`: async queue workers, site filtering, SOCKS connector
+- `src/aliens_eye/core/exporter.py`: JSON/CSV/HTML/Markdown report generation
+- `src/aliens_eye/ml/inference.py`: pure-python model inference (no sklearn at runtime)
+- `src/aliens_eye/ml/collect.py`: labeled dataset builder from ground-truth accounts
+- `src/aliens_eye/ml/train.py`: sklearn training, exports coefficients to model.json
+- `src/aliens_eye/selfcheck.py`: accuracy validation against known accounts
+- `src/aliens_eye/utils/console.py`: rich-based progress, tables, panels
+- `src/aliens_eye/data/`: sites.json, model.json, selfcheck.json, nsfw_sites.json, seed_dataset.csv
## Feature extraction
@@ -46,21 +54,35 @@ Signals include:
- Response time and content length
- Redirect count
- Fingerprint match counts
+- Heuristic score (fed to the ML model as a feature)
-These are stored as a consistent feature schema and used for heuristic scoring.
+These are stored as a consistent feature schema (`core/features.py`) shared by the
+heuristic engine, training, and inference.
## Detection logic
-### Heuristic path
+Two judges vote on every response:
-If no model is loaded, a weighted score is computed from the features. Thresholds map to:
-- Found
-- Not Found
-- Maybe
+1. **Heuristic engine** — weighted score over the features, squashed to a
+ probability with a sigmoid.
+2. **ML model** — logistic regression trained offline with sklearn and exported
+ to `data/model.json` (scaler stats + coefficients). Inference is a pure-python
+ dot product, so the installed package has no ML dependencies.
-## Dataset logging
+The final probability is `0.4 * ml + 0.6 * heuristic`, mapped to
+Found (> 0.6) / Not Found (< 0.35) / Maybe, with confidence scaled by distance
+from the threshold. If the model file is missing or invalid, detection falls
+back to heuristics alone.
-Dataset logging was removed to keep the project focused on live heuristic detection.
+### Training pipeline
+
+- `aliens_eye train collect` scans ground-truth accounts from
+ `data/selfcheck.json` (label 1) and randomized non-existent usernames
+ (label 0), writing one feature row per scan.
+- `aliens_eye train fit` trains LogisticRegression + StandardScaler and exports
+ the model JSON. Blend weights and thresholds in `core/detector.py` were
+ calibrated by out-of-fold grid search on the seed dataset.
+- `aliens_eye selfcheck` measures live accuracy on the positives.
## Fingerprints
@@ -71,6 +93,7 @@ Fingerprints store compact signatures of known Found and Not Found pages per sit
- server header
During detection, similarity scores are added as features to reduce false positives.
+The cache lives in the platform cache dir (via `platformdirs`), not in the package.
## Retry and rate limiting
@@ -78,9 +101,16 @@ During detection, similarity scores are added as features to reduce false positi
- Backoff: exponential with jitter and optional Retry-After handling
- Per-domain delay: prevents hammering a single host
+## Proxies
+
+- `http://` / `https://` proxies are passed per-request to aiohttp
+- `socks4://` / `socks5://` proxies replace the connector with
+ `aiohttp_socks.ProxyConnector` (`--tor` is shorthand for `socks5://127.0.0.1:9050`)
+
## Playwright fallback (optional)
-If enabled, Playwright is used only when a result is Maybe. The rendered DOM is re-parsed and can upgrade confidence.
+If enabled, Playwright is used only when a result is Maybe. The rendered DOM is
+re-parsed and can upgrade confidence. Install with `pip install aliens-eye[browser]`.
## Output pipeline
@@ -88,12 +118,13 @@ Reports are timestamped and written to:
- JSON (full detail)
- CSV (flat table)
- HTML (shareable summary)
+- Markdown (Found/Maybe digest)
## Config precedence
```mermaid
flowchart TD
- A[Defaults] --> B[config.json]
+ A[Defaults] --> B[config.json or platform config dir]
B --> C[CLI flags]
C --> D[Final runtime config]
```
diff --git a/aliens_eye.py b/aliens_eye.py
index 8c2204c..9f9f60c 100644
--- a/aliens_eye.py
+++ b/aliens_eye.py
@@ -1,468 +1,18 @@
#!/usr/bin/python3
-import asyncio
-import json
-import sys
-from argparse import ArgumentParser
-from pathlib import Path
-from typing import Any
-
-SCRIPT_DIR = Path(__file__).resolve().parent
-LIB_DIR = SCRIPT_DIR / "aliens_eye_lib"
-if LIB_DIR.exists():
- sys.path.insert(0, str(LIB_DIR))
-else:
- sys.path.insert(0, str(SCRIPT_DIR))
-
-from core.analyzer import FeatureExtractor
-from core.browser import BrowserFallback
-from core.config import DEFAULT_USER_AGENT, ScannerConfig
-from core.detector import Detector
-from core.exporter import ResultsExporter
-from core.fingerprints import FingerprintStore
-from core.scanner import UsernameScanner, load_sites_data
-from utils.colors import COLORS
-from utils.logger import setup_logger
-
-
-def display_banner(site_count: int) -> None:
- banner = f"""
- {COLORS['green']} ___ __ _________ ___ ____
- {COLORS['green']} / _ | / / / _/ __/ |/ ( )/ __/
-{COLORS['green']} / __ |/ /___/ // _// /|/_\\ \\
-{COLORS['green']}/_/ |_/____/___/___/_/|_/ /___/
-{COLORS['blue']}
- ________ ________
- {COLORS['blue']}/ ____/\\ \\/ / ____/ {COLORS['red']} _ __{COLORS['white']}__ __
- {COLORS['blue']}/ __/ \\ / __/ {COLORS['red']} | | / /{COLORS['white']} // /
- {COLORS['blue']}/ /___ / / /___ {COLORS['red']}| | / / {COLORS['white']}// /
-{COLORS['blue']}/_____/ /_/_____/ {COLORS['red']} | |/ /{COLORS['white']}__ __/
- {COLORS['red']} |___/ {COLORS['white']} /_/
-
-{COLORS['green']}by {COLORS['yellow']}arxhr007 {COLORS["reset"]}
-{COLORS['yellow']}AI-OSINT USERNAME SCANNER{COLORS['reset']}
-{COLORS['blue']}Advanced username discovery with ML-ready signals{COLORS['reset']}
-{COLORS['purple']}Scanning {site_count} websites{COLORS['reset']}
-"""
- print(banner)
- print(f"{COLORS['red']}NOTE: For educational purposes only!{COLORS['reset']}\n")
-
-
-def build_parser() -> ArgumentParser:
- parser = ArgumentParser(
- description="AI-Enhanced Username Scanner - Find usernames across social media platforms"
- )
- parser.add_argument("username", nargs="*", help="Usernames to scan")
- parser.add_argument("-r", "--read", help="Path to JSON file to read and display")
- parser.add_argument("-c", "--concurrent", type=int, help="Max concurrent connections")
- parser.add_argument("-v", "--verbose", action="store_true", help="Enable verbose output")
- parser.add_argument(
- "-l",
- "--level",
- choices=["basic", "intermediate", "advanced"],
- help="Scan level",
- )
- parser.add_argument("--timeout", type=float, help="Request timeout in seconds")
- parser.add_argument("--retries", type=int, help="Retry count for failed requests")
- parser.add_argument("--backoff-base", type=float, help="Base backoff in seconds")
- parser.add_argument("--backoff-cap", type=float, help="Max backoff in seconds")
- parser.add_argument("--rate-limit", type=float, help="Min delay per domain")
- parser.add_argument("--max-bytes", type=int, help="Max response bytes to parse")
- parser.add_argument("--config", type=str, help="Path to config JSON file")
- parser.add_argument(
- "--format",
- type=str,
- default=None,
- help="Output formats: json,csv,html,all",
- )
- parser.add_argument(
- "--output", type=str, default=None, help="Output directory"
- )
- parser.add_argument(
- "--playwright",
- action="store_true",
- help="Enable Playwright fallback for Maybe results",
- )
- return parser
-
-
-def parse_formats(value: str) -> list[str]:
- formats = [item.strip().lower() for item in value.split(",") if item.strip()]
- if not formats:
- return ["json"]
- if "all" in formats:
- return ["all"]
- return formats
-
-
-def parse_formats_value(value: Any) -> list[str]:
- if value is None:
- return ["json"]
- if isinstance(value, list):
- return parse_formats(",".join(str(item) for item in value))
- return parse_formats(str(value))
-
-
-def prompt_yes_no(prompt: str, default: bool) -> bool:
- suffix = "Y/n" if default else "y/N"
- answer = input(f"{COLORS['green']}{prompt} ({suffix}): {COLORS['yellow']}").strip().lower()
- if not answer:
- return default
- return answer in {"y", "yes"}
-
-
-def prompt_int(prompt: str, default: int | None, min_value: int | None = None) -> int | None:
- default_text = "" if default is None else str(default)
- while True:
- value = input(
- f"{COLORS['green']}{prompt} [{default_text}]: {COLORS['yellow']}"
- ).strip()
- if not value:
- return default
- try:
- number = int(value)
- except ValueError:
- print(f"{COLORS['red']}Please enter a whole number.{COLORS['reset']}")
- continue
- if min_value is not None and number < min_value:
- print(f"{COLORS['red']}Minimum is {min_value}.{COLORS['reset']}")
- continue
- return number
-
-
-def prompt_float(prompt: str, default: float | None, min_value: float | None = None) -> float | None:
- default_text = "" if default is None else str(default)
- while True:
- value = input(
- f"{COLORS['green']}{prompt} [{default_text}]: {COLORS['yellow']}"
- ).strip()
- if not value:
- return default
- try:
- number = float(value)
- except ValueError:
- print(f"{COLORS['red']}Please enter a number.{COLORS['reset']}")
- continue
- if min_value is not None and number < min_value:
- print(f"{COLORS['red']}Minimum is {min_value}.{COLORS['reset']}")
- continue
- return number
-
-
-def prompt_formats(current: list[str]) -> list[str]:
- default_text = ",".join(current)
- value = input(
- f"{COLORS['green']}Output formats (json,csv,html,all) [{default_text}]: {COLORS['yellow']}"
- ).strip()
- if not value:
- return current
- return parse_formats(value)
-
-
-def prompt_path(prompt: str, default: Path | None) -> Path | None:
- default_text = "" if default is None else str(default)
- value = input(
- f"{COLORS['green']}{prompt} [{default_text}]: {COLORS['yellow']}"
- ).strip()
- if not value:
- return default
- return Path(value)
-
-
-def prompt_scan_profile() -> str:
- print(f"\n{COLORS['green']}Select scan profile:")
- print(
- f"{COLORS['white']}1. {COLORS['blue']}Quick{COLORS['white']} - fewer retries, shorter timeouts"
- )
- print(
- f"{COLORS['white']}2. {COLORS['yellow']}Full{COLORS['white']} - balanced defaults"
- )
- print(
- f"{COLORS['white']}3. {COLORS['red']}Aggressive{COLORS['white']} - higher concurrency, Playwright"
- )
- choice = input(
- f"\n{COLORS['green']}Enter choice (1-3) [2]: {COLORS['yellow']}"
- ).strip()
- profile_map = {"1": "quick", "2": "full", "3": "aggressive"}
- return profile_map.get(choice, "full")
-
-
-def apply_scan_profile(config: ScannerConfig, profile: str, args) -> None:
- presets = {
- "quick": {
- "concurrent": 25,
- "timeout": 6.0,
- "retries": 1,
- "backoff_base": 0.3,
- "backoff_cap": 4.0,
- "rate_limit_delay": 0.1,
- "max_content_bytes": 60_000,
- "use_playwright": False,
- },
- "aggressive": {
- "concurrent": 80,
- "timeout": 15.0,
- "retries": 3,
- "backoff_base": 0.4,
- "backoff_cap": 12.0,
- "rate_limit_delay": 0.05,
- "max_content_bytes": 150_000,
- "use_playwright": True,
- },
- }
- preset = presets.get(profile)
- if not preset:
- return
-
- if args.concurrent is None:
- config.concurrent = preset["concurrent"]
- if args.timeout is None:
- config.timeout = preset["timeout"]
- if args.retries is None:
- config.retries = preset["retries"]
- if args.backoff_base is None:
- config.backoff_base = preset["backoff_base"]
- if args.backoff_cap is None:
- config.backoff_cap = preset["backoff_cap"]
- if args.rate_limit is None:
- config.rate_limit_delay = preset["rate_limit_delay"]
- if args.max_bytes is None:
- config.max_content_bytes = preset["max_content_bytes"]
- if not args.playwright:
- config.use_playwright = preset["use_playwright"]
-
-
-def load_config(path_value: str | None, logger) -> dict:
- if path_value:
- candidates = [Path(path_value)]
- else:
- candidates = [
- Path("config.json"),
- SCRIPT_DIR / "config.json",
- Path("/etc/aliens_eye/config.json"),
- Path("/usr/local/etc/aliens_eye/config.json"),
- Path("/data/data/com.termux/files/usr/etc/aliens_eye/config.json"),
- ]
-
- for path in candidates:
- if path.exists():
- try:
- with path.open("r", encoding="utf-8") as handle:
- data = json.load(handle)
- if isinstance(data, dict):
- logger.info("Loaded config from %s", path)
- return data
- except Exception as exc:
- logger.warning("Failed to read config %s: %s", path, exc)
- return {}
- return {}
-
-
-def apply_config(config: ScannerConfig, data: dict) -> dict:
- if not isinstance(data, dict):
- return {"level": None, "output_formats": None}
-
- field_map = {
- "concurrent": "concurrent",
- "timeout": "timeout",
- "max_content_bytes": "max_content_bytes",
- "retries": "retries",
- "backoff_base": "backoff_base",
- "backoff_cap": "backoff_cap",
- "jitter": "jitter",
- "rate_limit_delay": "rate_limit_delay",
- "fingerprints_path": "fingerprints_path",
- "output_dir": "output_dir",
- "use_playwright": "use_playwright",
- "max_fingerprints_per_label": "max_fingerprints_per_label",
- }
- path_fields = {"fingerprints_path", "output_dir"}
-
- for key, attr in field_map.items():
- if key not in data:
- continue
- value = data.get(key)
- if value is None:
- continue
- if attr in path_fields:
- setattr(config, attr, Path(str(value)))
- else:
- setattr(config, attr, value)
-
- return {
- "level": data.get("level"),
- "output_formats": data.get("output_formats"),
- }
-
-
-async def run_scan(args) -> None:
- logger = setup_logger(args.verbose)
- config_data = load_config(args.config, logger)
- config = ScannerConfig()
- defaults = apply_config(config, config_data)
-
- if args.concurrent:
- config.concurrent = args.concurrent
- if args.timeout:
- config.timeout = args.timeout
- if args.retries is not None:
- config.retries = args.retries
- if args.backoff_base is not None:
- config.backoff_base = args.backoff_base
- if args.backoff_cap is not None:
- config.backoff_cap = args.backoff_cap
- if args.rate_limit is not None:
- config.rate_limit_delay = args.rate_limit
- if args.max_bytes is not None:
- config.max_content_bytes = args.max_bytes
- if args.output:
- config.output_dir = Path(args.output)
- if args.playwright:
- config.use_playwright = True
-
- exporter = ResultsExporter(config.output_dir)
- if args.read:
- exporter.display_results_from_file(args.read)
- return
-
- sites_data = load_sites_data()
- if not sites_data:
- logger.error("Could not find sites.json. Make sure it exists in the project.")
- return
-
- display_banner(len(sites_data))
-
- if args.username:
- usernames = args.username
- else:
- username = input(f"{COLORS['green']}Enter username to scan: {COLORS['yellow']}")
- usernames = [username]
-
- detector = Detector()
- detector.load_model(logger)
-
- extractor = FeatureExtractor()
- fingerprints = FingerprintStore(config.fingerprints_path, config.max_fingerprints_per_label)
- fingerprints.load(logger)
-
- scan_level = args.level or defaults.get("level")
- if scan_level not in {"basic", "intermediate", "advanced"}:
- scan_level = None
- if not scan_level:
- print(f"\n{COLORS['green']}Select scan level:")
- print(f"{COLORS['white']}1. {COLORS['blue']}Basic{COLORS['white']} - Just the username as entered")
- print(
- f"{COLORS['white']}2. {COLORS['yellow']}Intermediate{COLORS['white']} - Adds variations"
- )
- print(
- f"{COLORS['white']}3. {COLORS['red']}Advanced{COLORS['white']} - Adds common prefixes/suffixes"
- )
- level_choice = input(f"\n{COLORS['green']}Enter choice (1-3): {COLORS['yellow']}")
- level_map = {"1": "basic", "2": "intermediate", "3": "advanced"}
- scan_level = level_map.get(level_choice, "basic")
-
- formats_value = args.format if args.format is not None else defaults.get("output_formats")
- formats = parse_formats_value(formats_value)
-
- interactive = sys.stdin.isatty() and not args.read
- if interactive:
- scan_profile = prompt_scan_profile()
- apply_scan_profile(config, scan_profile, args)
-
- if interactive and prompt_yes_no("Customize scan settings", False):
- if args.concurrent is None:
- config.concurrent = prompt_int(
- "Max concurrent connections", config.concurrent, min_value=1
- )
- if args.timeout is None:
- config.timeout = prompt_float(
- "Request timeout (seconds)", config.timeout, min_value=1.0
- )
- if args.retries is None:
- config.retries = prompt_int("Retries on failure", config.retries, min_value=0)
- if args.backoff_base is None:
- config.backoff_base = prompt_float(
- "Backoff base (seconds)", config.backoff_base, min_value=0.0
- )
- if args.backoff_cap is None:
- config.backoff_cap = prompt_float(
- "Backoff cap (seconds)", config.backoff_cap, min_value=0.0
- )
- if args.rate_limit is None:
- config.rate_limit_delay = prompt_float(
- "Min delay per domain (seconds)", config.rate_limit_delay, min_value=0.0
- )
- if args.max_bytes is None:
- config.max_content_bytes = prompt_int(
- "Max response bytes to parse", config.max_content_bytes, min_value=1024
- )
- if args.output is None:
- config.output_dir = prompt_path("Output directory", config.output_dir)
- if args.format is None:
- formats = prompt_formats(formats)
- if not args.playwright:
- config.use_playwright = prompt_yes_no(
- "Enable Playwright fallback for Maybe results", config.use_playwright
- )
-
- browser_fallback = None
- if config.use_playwright:
- browser_fallback = BrowserFallback(config.timeout, DEFAULT_USER_AGENT)
-
- scanner = UsernameScanner(
- sites_data=sites_data,
- config=config,
- extractor=extractor,
- detector=detector,
- fingerprints=fingerprints,
- logger=logger,
- browser_fallback=browser_fallback,
- )
-
- try:
- for idx, username in enumerate(usernames):
- if not username or len(username) < 2:
- logger.error("Invalid username. Please provide a valid username.")
- continue
-
- if idx > 0:
- print(
- f"\n{COLORS['green']}Continue with next username: {COLORS['yellow']}{username}{COLORS['reset']}"
- )
-
- all_results = await scanner.scan_with_variations(username, scan_level)
- written = exporter.save_results(username, scan_level, all_results, formats)
-
- files_list = ", ".join(str(path) for path in written)
- print(
- f"\n{COLORS['green']}Results saved to: {COLORS['blue']}{files_list}{COLORS['reset']}"
- )
- total_found = sum(
- sum(1 for r in results if r["status"] == "Found")
- for results in all_results.values()
- )
- print(
- f"\n{COLORS['green']}Summary: Found {total_found} profiles across {len(all_results)} username variations"
- )
- finally:
- fingerprints.save()
- if browser_fallback:
- await browser_fallback.close()
-
- print(f"\n{COLORS['green']}Thank you for using AI-Enhanced OSINT Username Scanner!{COLORS['reset']}")
+"""Backward-compatible launcher. Prefer `pip install aliens-eye` and the
+`aliens_eye` command; this shim keeps `python aliens_eye.py` working from a
+source checkout."""
+if __name__ == "__main__":
+ import sys
+ from pathlib import Path
-def main() -> None:
- parser = build_parser()
- args = parser.parse_args()
- try:
- asyncio.run(run_scan(args))
- except KeyboardInterrupt:
- print(f"\n\n{COLORS['red']}Scan interrupted by user.{COLORS['reset']}")
- sys.exit(0)
- except Exception as exc:
- print(f"{COLORS['red']}Unexpected error: {exc}{COLORS['reset']}")
- sys.exit(1)
+ src_dir = Path(__file__).resolve().parent / "src"
+ if src_dir.exists():
+ sys.path.insert(0, str(src_dir))
+ # Drop this shim from sys.modules so the real package can be imported.
+ sys.modules.pop("aliens_eye", None)
+ from aliens_eye.cli import main
-if __name__ == "__main__":
main()
diff --git a/config.json b/config.example.json
similarity index 100%
rename from config.json
rename to config.example.json
diff --git a/core/detector.py b/core/detector.py
deleted file mode 100644
index 79e6796..0000000
--- a/core/detector.py
+++ /dev/null
@@ -1,93 +0,0 @@
-from dataclasses import dataclass
-from typing import Dict
-
-from .features import vectorize_features
-
-
-@dataclass
-class DetectionResult:
- status: str
- confidence: int
- score: float
- method: str
- probability: float | None
-
-
-class Detector:
- """Heuristic-only detection based on structured response features."""
-
- def load_model(self, logger) -> None:
- logger.debug("ML model loading is disabled; using heuristics only.")
-
- def predict(self, features: Dict[str, float]) -> DetectionResult:
- heuristic_score = self._heuristic_score(features)
- status, confidence = self._status_from_score(heuristic_score)
- return DetectionResult(
- status=status,
- confidence=confidence,
- score=heuristic_score,
- method="heuristic",
- probability=None,
- )
-
- def _heuristic_score(self, features: Dict[str, float]) -> float:
- score = 0.0
- score -= features.get("error_keyword_count", 0.0) * 2
- score += features.get("positive_keyword_count", 0.0) * 1.5
-
- if features.get("http_200", 0.0) > 0:
- score += 5
- if features.get("http_404", 0.0) > 0:
- score -= 10
- if features.get("http_5xx", 0.0) > 0:
- score -= 3
- if features.get("http_3xx", 0.0) > 0:
- if features.get("has_auth_pattern", 0.0) > 0:
- score -= 3
- if features.get("has_username_in_path", 0.0) > 0:
- score += 2
-
- if features.get("has_username_in_path", 0.0) > 0 and features.get("is_homepage", 0.0) == 0:
- score += 3
- if features.get("is_homepage", 0.0) > 0 and features.get("http_200", 0.0) > 0:
- score -= 5
-
- score -= features.get("error_section_count", 0.0) * 3
- score += features.get("profile_section_count", 0.0) * 4
-
- if features.get("img_count", 0.0) > 5:
- score += 2
- if features.get("form_count", 0.0) > 0 and features.get("input_count", 0.0) > 2:
- score -= 2
-
- if features.get("meta_has_username", 0.0) > 0:
- score += 5
- score -= features.get("meta_error_keyword_count", 0.0) * 3
- score += features.get("meta_positive_keyword_count", 0.0) * 2
-
- score += features.get("fingerprint_match_found", 0.0) * 2
- score -= features.get("fingerprint_match_not_found", 0.0) * 2
-
- return score
-
- def _status_from_score(self, score: float) -> tuple[str, int]:
- if score > 10:
- confidence = 95
- elif score > 6:
- confidence = 85
- elif score > 2:
- confidence = 70
- elif score < -10:
- confidence = 95
- elif score < -6:
- confidence = 85
- elif score < -2:
- confidence = 70
- else:
- confidence = 55
-
- if score > 8:
- return "Found", confidence
- if score < -8:
- return "Not Found", confidence
- return "Maybe", confidence
diff --git a/core/exporter.py b/core/exporter.py
deleted file mode 100644
index 8724eb7..0000000
--- a/core/exporter.py
+++ /dev/null
@@ -1,402 +0,0 @@
-import csv
-import json
-from datetime import datetime
-from pathlib import Path
-from typing import Any, Dict, List
-
-from utils.colors import COLORS
-
-
-class ResultsExporter:
- """Save scan results in JSON, CSV, or HTML formats."""
-
- def __init__(self, output_dir: Path) -> None:
- self.output_dir = output_dir
- self.output_dir.mkdir(parents=True, exist_ok=True)
-
- def save_results(
- self,
- base_username: str,
- level: str,
- all_results: Dict[str, List[Dict[str, Any]]],
- formats: List[str],
- ) -> List[Path]:
- timestamp = datetime.now().strftime("%Y%m%d_%H%M%S")
- results_data = self._build_results_data(
- base_username, level, all_results, timestamp
- )
- written: List[Path] = []
-
- if "json" in formats or "all" in formats:
- json_path = self.output_dir / f"{base_username}_{level}_{timestamp}.json"
- with json_path.open("w", encoding="utf-8") as handle:
- json.dump(results_data, handle, indent=4)
- written.append(json_path)
-
- if "csv" in formats or "all" in formats:
- csv_path = self.output_dir / f"{base_username}_{level}_{timestamp}.csv"
- self._write_csv(csv_path, base_username, level, all_results)
- written.append(csv_path)
-
- if "html" in formats or "all" in formats:
- html_path = self.output_dir / f"{base_username}_{level}_{timestamp}.html"
- self._write_html(html_path, results_data)
- written.append(html_path)
-
- return written
-
- def _build_results_data(
- self,
- base_username: str,
- level: str,
- all_results: Dict[str, List[Dict[str, Any]]],
- timestamp: str,
- ) -> Dict[str, Any]:
- variations_data: Dict[str, Any] = {}
- scan_summary = {
- "base_username": base_username,
- "scan_level": level,
- "timestamp": timestamp,
- "total_variations": len(all_results),
- "total_sites_scanned": sum(len(results) for results in all_results.values()),
- }
-
- found_counts: Dict[str, int] = {}
- high_confidence_matches: Dict[str, int] = {}
-
- for username, results in all_results.items():
- found_counts[username] = sum(1 for r in results if r["status"] == "Found")
- high_confidence_matches[username] = sum(
- 1
- for r in results
- if r.get("confidence", 0) >= 85 and r["status"] == "Found"
- )
- variations_data[username] = {
- "scan_info": {
- "username": username,
- "sites_scanned": len(results),
- "found": found_counts[username],
- "maybe": sum(1 for r in results if r["status"] == "Maybe"),
- "not_found": sum(
- 1 for r in results if r["status"] == "Not Found"
- ),
- "errors": sum(
- 1
- for r in results
- if r["status"] not in {"Found", "Not Found", "Maybe"}
- ),
- "high_confidence_matches": high_confidence_matches[username],
- },
- "sites": {
- r["site"]: {
- "status": r["status"],
- "code": r["code"],
- "url": r["url"],
- "final_url": r.get("final_url", ""),
- "response_time": r["response_time"],
- "confidence": r.get("confidence", 0),
- "ai_analysis": r.get("ai_analysis", {}),
- }
- for r in results
- },
- }
-
- scan_summary["total_found"] = sum(found_counts.values())
- scan_summary["total_high_confidence"] = sum(high_confidence_matches.values())
- scan_summary["best_variations"] = sorted(
- found_counts.items(), key=lambda x: x[1], reverse=True
- )[:5]
-
- return {"scan_summary": scan_summary, "variations": variations_data}
-
- def _write_csv(
- self,
- path: Path,
- base_username: str,
- level: str,
- all_results: Dict[str, List[Dict[str, Any]]],
- ) -> None:
- fieldnames = [
- "base_username",
- "variation",
- "site",
- "status",
- "confidence",
- "http_code",
- "url",
- "final_url",
- "response_time",
- ]
- with path.open("w", newline="", encoding="utf-8") as handle:
- writer = csv.DictWriter(handle, fieldnames=fieldnames)
- writer.writeheader()
- for variation, results in all_results.items():
- for item in results:
- writer.writerow(
- {
- "base_username": base_username,
- "variation": variation,
- "site": item["site"],
- "status": item["status"],
- "confidence": item.get("confidence", 0),
- "http_code": item.get("code", 0),
- "url": item.get("url", ""),
- "final_url": item.get("final_url", ""),
- "response_time": item.get("response_time", 0),
- }
- )
-
- def _write_html(self, path: Path, results_data: Dict[str, Any]) -> None:
- summary = results_data.get("scan_summary", {})
- variations = results_data.get("variations", {})
-
- rows = []
- for variation, data in variations.items():
- for site, info in data.get("sites", {}).items():
- rows.append(
- f"<tr><td>{variation}</td><td>{site}</td><td>{info.get('status','')}</td>"
- f"<td>{info.get('confidence',0)}</td><td>{info.get('code',0)}</td>"
- f"<td><a href='{info.get('url','')}'>{info.get('url','')}</a></td></tr>"
- )
-
- html = f"""
-<!DOCTYPE html>
-<html lang="en">
-<head>
-<meta charset="utf-8">
-<title>Aliens Eye Report</title>
-<style>
-body {{ font-family: Arial, sans-serif; padding: 20px; }}
-summary, table {{ margin-top: 20px; }}
-
-table {{ border-collapse: collapse; width: 100%; }}
-th, td {{ border: 1px solid #ddd; padding: 8px; font-size: 12px; }}
-th {{ background-color: #f2f2f2; text-align: left; }}
-</style>
-</head>
-<body>
-<h1>Aliens Eye Report</h1>
-<p><strong>Base Username:</strong> {summary.get('base_username','')}</p>
-<p><strong>Scan Level:</strong> {summary.get('scan_level','')}</p>
-<p><strong>Total Variations:</strong> {summary.get('total_variations',0)}</p>
-<p><strong>Total Sites Scanned:</strong> {summary.get('total_sites_scanned',0)}</p>
-<p><strong>Total Found:</strong> {summary.get('total_found',0)}</p>
-<p><strong>Total High Confidence:</strong> {summary.get('total_high_confidence',0)}</p>
-
-<table>
-<thead>
-<tr>
-<th>Variation</th>
-<th>Site</th>
-<th>Status</th>
-<th>Confidence</th>
-<th>HTTP Code</th>
-<th>URL</th>
-</tr>
-</thead>
-<tbody>
-{''.join(rows)}
-</tbody>
-</table>
-</body>
-</html>
-"""
- with path.open("w", encoding="utf-8") as handle:
- handle.write(html)
-
- def display_results_from_file(self, file_path: str) -> None:
- try:
- with open(file_path, "r", encoding="utf-8") as handle:
- data = json.load(handle)
-
- if "scan_summary" in data and "variations" in data:
- summary = data["scan_summary"]
- print(f"{COLORS['green']}{'=' * 90}")
- print(
- f"{COLORS['blue']}SCAN RESULTS SUMMARY: "
- f"{COLORS['yellow']}{summary.get('base_username', 'Unknown')}"
- )
- print(
- f"{COLORS['blue']}Scan level: {COLORS['white']}"
- f"{summary.get('scan_level', 'Unknown')}"
- )
- print(
- f"{COLORS['blue']}Total Variations: {COLORS['white']}"
- f"{summary.get('total_variations', 0)}"
- )
- print(
- f"{COLORS['blue']}Total Sites Scanned: {COLORS['white']}"
- f"{summary.get('total_sites_scanned', 0)}"
- )
- print(
- f"{COLORS['blue']}Total Found: {COLORS['green']}"
- f"{summary.get('total_found', 0)}"
- )
- print(
- f"{COLORS['blue']}Total High Confidence: {COLORS['green']}"
- f"{summary.get('total_high_confidence', 0)}"
- )
- print(f"{COLORS['green']}{'=' * 90}")
- print(f"{COLORS['blue']}Best Variations:")
- for username, count in summary.get("best_variations", []):
- print(
- f"{COLORS['yellow']}{username}: {COLORS['green']}{count} profiles found"
- )
- print(f"{COLORS['green']}{'=' * 90}")
- print(f"{COLORS['blue']}Available variations:")
- for i, username in enumerate(data["variations"].keys(), 1):
- print(f"{COLORS['white']}{i}. {COLORS['yellow']}{username}")
-
- choice = input(
- f"\n{COLORS['green']}Enter number to see details (or 'all' for all, or press Enter to exit): {COLORS['yellow']}"
- )
- if choice.lower() == "all":
- for username, variation_data in data["variations"].items():
- self._display_variation_results(username, variation_data)
- elif choice.isdigit():
- choice_idx = int(choice) - 1
- if 0 <= choice_idx < len(data["variations"]):
- username = list(data["variations"].keys())[choice_idx]
- self._display_variation_results(
- username, data["variations"][username]
- )
- return
-
- scan_info = data.get("scan_info", {})
- print(f"{COLORS['green']}{'=' * 90}")
- print(
- f"{COLORS['blue']}SCAN RESULTS: {COLORS['yellow']}"
- f"{scan_info.get('username', 'Unknown')}"
- )
- print(
- f"{COLORS['blue']}Date: {COLORS['white']}"
- f"{scan_info.get('timestamp', 'Unknown')}"
- )
- print(
- f"{COLORS['blue']}Sites Scanned: {COLORS['white']}"
- f"{scan_info.get('sites_scanned', 0)}"
- )
- print(
- f"{COLORS['blue']}Found: {COLORS['green']}"
- f"{scan_info.get('found', 0)} | "
- f"{COLORS['blue']}Maybe: {COLORS['yellow']}"
- f"{scan_info.get('maybe', 0)} | "
- f"{COLORS['blue']}Not Found: {COLORS['red']}"
- f"{scan_info.get('not_found', 0)} | "
- f"{COLORS['blue']}Errors: {COLORS['red']}"
- f"{scan_info.get('errors', 0)}"
- )
- high_conf = scan_info.get("high_confidence_matches", 0)
- if high_conf > 0:
- print(
- f"{COLORS['blue']}High Confidence Matches: {COLORS['green']}{high_conf}"
- )
- print(f"{COLORS['green']}{'=' * 90}")
- self._print_table_header()
-
- def sort_key(item):
- status_priority = {"Found": 0, "Maybe": 1, "Not Found": 2}.get(
- item[1].get("status", ""), 3
- )
- confidence = item[1].get("confidence", 0)
- return (-confidence, status_priority)
-
- sorted_sites = sorted(data.get("sites", {}).items(), key=sort_key)
- for site_name, info in sorted_sites:
- status = info.get("status", "Unknown")
- code = info.get("code", 0)
- url = info.get("url", "")
- response_time = info.get("response_time", 0)
- confidence = info.get("confidence", 0)
- if status == "Found":
- status_color = COLORS["green"]
- elif status == "Maybe":
- status_color = COLORS["yellow"]
- else:
- status_color = COLORS["red"]
- code_color = COLORS["green"] if code == 200 else COLORS["red"]
- url_color = status_color
- display_site = site_name[:20]
- confidence_str = f" ({confidence}%)" if confidence > 0 else ""
- print(
- f"{COLORS['green']}# {COLORS['yellow']}{display_site:20}{COLORS['white']}| "
- f"{status_color}{status:10}{confidence_str:8}{COLORS['white']}| "
- f"{code_color}{str(code):^10}{COLORS['white']}| "
- f"{url_color}{url}{COLORS['reset']} "
- f"({response_time:.2f}s)"
- )
- print(f"{COLORS['green']}{'=' * 90}{COLORS['reset']}")
- except FileNotFoundError:
- print(f"{COLORS['red']}File not found: {file_path}{COLORS['reset']}")
- except json.JSONDecodeError:
- print(f"{COLORS['red']}Invalid JSON file: {file_path}{COLORS['reset']}")
- except Exception as exc:
- print(f"{COLORS['red']}Error reading file: {exc}{COLORS['reset']}")
-
- def _display_variation_results(self, username: str, variation_data: Dict[str, Any]) -> None:
- scan_info = variation_data.get("scan_info", {})
- print(f"{COLORS['green']}{'=' * 90}")
- print(
- f"{COLORS['blue']}SCAN RESULTS FOR VARIATION: {COLORS['yellow']}{username}"
- )
- print(
- f"{COLORS['blue']}Found: {COLORS['green']}"
- f"{scan_info.get('found', 0)} | "
- f"{COLORS['blue']}Maybe: {COLORS['yellow']}"
- f"{scan_info.get('maybe', 0)} | "
- f"{COLORS['blue']}Not Found: {COLORS['red']}"
- f"{scan_info.get('not_found', 0)} | "
- f"{COLORS['blue']}Errors: {COLORS['red']}"
- f"{scan_info.get('errors', 0)}"
- )
- high_conf = scan_info.get("high_confidence_matches", 0)
- if high_conf > 0:
- print(
- f"{COLORS['blue']}High Confidence Matches: {COLORS['green']}{high_conf}"
- )
- print(f"{COLORS['green']}{'=' * 90}")
- self._print_table_header()
-
- def sort_key(item):
- site_info = item[1]
- status_priority = {"Found": 0, "Maybe": 1, "Not Found": 2}.get(
- site_info.get("status", ""), 3
- )
- confidence = site_info.get("confidence", 0)
- return (-confidence, status_priority)
-
- sites = variation_data.get("sites", {})
- sorted_sites = sorted(sites.items(), key=sort_key)
- for site_name, info in sorted_sites:
- status = info.get("status", "Unknown")
- code = info.get("code", 0)
- url = info.get("url", "")
- response_time = info.get("response_time", 0)
- confidence = info.get("confidence", 0)
- if status == "Found":
- status_color = COLORS["green"]
- elif status == "Maybe":
- status_color = COLORS["yellow"]
- else:
- status_color = COLORS["red"]
- code_color = COLORS["green"] if code == 200 else COLORS["red"]
- url_color = status_color
- display_site = site_name[:20]
- confidence_str = f" ({confidence}%)" if confidence > 0 else ""
- print(
- f"{COLORS['green']}# {COLORS['yellow']}{display_site:20}{COLORS['white']}| "
- f"{status_color}{status:10}{confidence_str:8}{COLORS['white']}| "
- f"{code_color}{str(code):^10}{COLORS['white']}| "
- f"{url_color}{url}{COLORS['reset']} "
- f"({response_time:.2f}s)"
- )
- print(f"{COLORS['green']}{'=' * 90}{COLORS['reset']}")
-
- def _print_table_header(self) -> None:
- print(
- f"{COLORS['blue']}# {COLORS['yellow']}{'SITE':20}{COLORS['blue']}| "
- f"{COLORS['yellow']}{'STATUS + CONFIDENCE':18}{COLORS['blue']}| "
- f"{COLORS['yellow']}{'HTTP CODE':10}{COLORS['blue']}| "
- f"{COLORS['yellow']}URL (RESPONSE TIME){COLORS['reset']}"
- )
- print(f"{COLORS['green']}{'#' * 90}{COLORS['reset']}")
diff --git a/pyproject.toml b/pyproject.toml
new file mode 100644
index 0000000..ec0ef1e
--- /dev/null
+++ b/pyproject.toml
@@ -0,0 +1,72 @@
+[build-system]
+requires = ["hatchling"]
+build-backend = "hatchling.build"
+
+[project]
+name = "aliens-eye"
+version = "2.0.0"
+description = "AI-powered OSINT username scanner across 800+ social media and web platforms"
+readme = "README.md"
+requires-python = ">=3.10"
+license = { text = "MIT" }
+authors = [{ name = "Aaron Thomas (arxhr007)" }]
+keywords = ["osint", "username", "recon", "social-media", "security", "scanner"]
+classifiers = [
+ "Development Status :: 5 - Production/Stable",
+ "Environment :: Console",
+ "Intended Audience :: Information Technology",
+ "License :: OSI Approved :: MIT License",
+ "Operating System :: OS Independent",
+ "Programming Language :: Python :: 3",
+ "Programming Language :: Python :: 3.10",
+ "Programming Language :: Python :: 3.11",
+ "Programming Language :: Python :: 3.12",
+ "Programming Language :: Python :: 3.13",
+ "Topic :: Security",
+]
+dependencies = [
+ "aiohttp>=3.8",
+ "selectolax>=0.3.21",
+ "rich>=13.7",
+ "aiohttp-socks>=0.8,<1.0",
+ "platformdirs>=4.0",
+]
+
+[project.optional-dependencies]
+browser = ["playwright>=1.42"]
+train = ["scikit-learn>=1.3", "numpy>=1.24"]
+dev = [
+ "pytest>=8",
+ "pytest-asyncio>=0.23",
+ "aioresponses>=0.7",
+ "ruff>=0.4",
+ "build",
+ "twine",
+]
+
+[project.scripts]
+aliens_eye = "aliens_eye.cli:main"
+
+[project.urls]
+Homepage = "https://github.com/arxhr007/Aliens_eye"
+Repository = "https://github.com/arxhr007/Aliens_eye"
+Issues = "https://github.com/arxhr007/Aliens_eye/issues"
+
+[tool.hatch.build.targets.wheel]
+packages = ["src/aliens_eye"]
+
+[tool.hatch.build.targets.sdist]
+include = ["src/aliens_eye", "README.md", "LICENSE", "pyproject.toml"]
+
+[tool.ruff]
+line-length = 110
+target-version = "py310"
+
+[tool.ruff.lint]
+select = ["E", "F", "W", "I", "UP", "B"]
+ignore = ["E501"]
+
+[tool.pytest.ini_options]
+asyncio_mode = "auto"
+testpaths = ["tests"]
+pythonpath = ["src"]
diff --git a/requirements.txt b/requirements.txt
index a7ca3d4..7a26b73 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,3 +1,5 @@
-aiohttp>=3.8.0
-selectolax>=0.3.21
-playwright>=1.42.0
+# Deprecated: install via pyproject instead.
+# pip install aliens-eye (from PyPI)
+# pip install -e . (from source)
+# pip install -e ".[browser]" (with Playwright fallback)
+-e .
diff --git a/sites.json b/sites.json
deleted file mode 100644
index b6804f5..0000000
--- a/sites.json
+++ /dev/null
@@ -1,842 +0,0 @@
-{"codechef": "https://www.codechef.com/users/{}",
-"lor": "https://www.linux.org.ru/people/{}/profile",
-"forum_guns": "https://forum.guns.ru/forummisc/blog/{}",
-"rockettube": "https://www.rockettube.com/{}",
-"apple discussions": "https://discussions.apple.com/profile/{}",
-"queer.af": "https://queer.af/@{}",
-"telegram": "https://t.me/{}",
-"myspace": "https://myspace.com/{}",
-"osu!": "https://osu.ppy.sh/users/{}",
-"codewars": "https://www.codewars.com/users/{}",
-"enjin": "https://www.enjin.com/profile/{}",
-"uid": "http://uid.me/{}",
-"instructables": "https://www.instructables.com/member/{}",
-"fandom": "https://www.fandom.com/u/{}",
-"producthunt": "https://www.producthunt.com/@{}",
-"sublimeforum": "https://forum.sublimetext.com/u/{}",
-"tnaflix": "https://www.tnaflix.com/profile/{}",
-"getmyuni": "https://www.getmyuni.com/user/{}",
-"shitpostbot5000": "https://www.shitpostbot.com/user/{}",
-"2dimensions": "https://2Dimensions.com/a/{}",
-"cults3d": "https://cults3d.com/en/users/{}/creations",
-"mstdn.io": "https://mstdn.io/@{}",
-"sourceforge": "https://sourceforge.net/u/{}",
-"vimeo": "https://vimeo.com/{}",
-"mastodon.cloud": "https://mastodon.cloud/@{}",
-"imgur": "https://imgur.com/user/{}",
-"unsplash": "https://unsplash.com/@{}",
-"xvideos": "https://www.xvideos.com/profiles/{}",
-"devianart": "https://{}.devianart.com/",
-"ebio.gg": "https://ebio.gg/{}",
-"nairaland.com": "https://www.nairaland.com/{}",
-"psnprofiles.com": "https://psnprofiles.com/{}",
-"giphy": "https://giphy.com/{}",
-"nnru": "https://{}.www.nn.ru/",
-"cryptomator forum": "https://community.cryptomator.org/u/{}",
-"coderwall": "https://coderwall.com/{}",
-"researchgate": "https://www.researchgate.net/profile/{}",
-"speedrun.com": "https://speedrun.com/user/{}",
-"makezine":"https://makezine.com/author/{}",
-"cnet": "https://www.cnet.com/profiles/{}/",
-"docker hub": "https://hub.docker.com/u/{}/",
-"buymeacoffee": "https://buymeacoff.ee/{}",
-"about": "https://about.me/{}",
-"eintrachtfrankfurt": "https://community.eintracht.de/fans/{}",
-"mastodon.technology": "https://mastodon.technology/@{}",
-"weblate": "https://hosted.weblate.org/user/{}/",
-"codepen": "https://codepen.io/{}",
-"alik.cz": "https://www.alik.cz/u/{}",
-"google play": "https://play.google.com/store/apps/developer?id={}",
-"blip.fm": "https://blip.fm/{}",
-"creativemarket": "https://creativemarket.com/{}",
-"bezuzyteczna": "https://bezuzyteczna.pl/uzytkownicy/{}",
-"dev community": "https://dev.to/{}",
-"dribbble": "https://dribbble.com/{}",
-"pepperit": "https://www.pepper.it/profile/{}/overview",
-"wicg forum": "https://discourse.wicg.io/u/{}/summary",
-"archive of our own": "https://archiveofourown.org/users/{}",
-"trello": "https://trello.com/{}",
-"drive2": "https://www.drive2.ru/users/{}",
-"gnome vcs": "https://gitlab.gnome.org/{}",
-"angel": "https://angel.co/{}",
-"lottiefiles": "https://lottiefiles.com/{}",
-"codementor": "https://www.codementor.io/{}",
-"polymart": "https://polymart.org/user/{}",
-"weebly": "https://{}.weebly.com/",
-"bazar.cz": "https://www.bazar.cz/{}/",
-"bitbucket": "https://bitbucket.org/{}",
-"opennet": "https://www.opennet.ru/~{}",
-"gumroad": "https://www.gumroad.com/{}",
-"listed": "https://listed.to/@{}",
-"anilist": "https://anilist.co/user/{}/",
-"admireme.vip": "https://admireme.vip/{}",
-"cgtrader": "https://www.cgtrader.com/{}",
-"spletnik": "https://spletnik.ru/user/{}",
-"airliners": "https://www.airliners.net/user/{}/profile/photos",
-"wykop.pl": "https://www.wykop.pl/ludzie/{}",
-"ogusers": "https://ogu.gg/{}",
-"bravecommunity": "https://community.brave.com/u/{}/",
-"lushstories": "https://www.lushstories.com/profile/{}",
-"nyaa.si": "https://nyaa.si/user/{}",
-"foursquare": "https://foursquare.com/user/{}",
-"sbazar.cz": "https://www.sbazar.cz/{}",
-"bitcoinforum": "https://bitcoinforum.com/profile/{}",
-"periscope": "https://www.pscp.tv/{}",
-"needrom": "https://www.needrom.com/author/{}/",
-"akniga": "https://akniga.org/profile/{}",
-"nationstates region": "https://nationstates.net/region={}",
-"social.tchncs.de": "https://social.tchncs.de/@{}",
-"bikemap": "https://www.bikemap.net/en/u/{}/routes/created/",
-"rate your music": "https://rateyourmusic.com/~{}",
-"7cups": "https://www.7cups.com/@{}",
-"tweakers": "https://tweakers.net/gallery/{}",
-"blip": "https://blip.fm/{}",
-"runescape": "https://www.runescape.com/playerProfile.ws?username={}",
-"chaturbate": "https://chaturbate.com/{}",
-"traktrain": "https://traktrain.com/{}",
-"crevado": "https://{}.crevado.com",
-"archive.org": "https://archive.org/details/@{}",
-"linktree": "https://linktr.ee/{}",
-"3dnews": "http://forum.3dnews.ru/member.php?username={}",
-"d3ru": "https://d3.ru/user/{}/posts",
-"coroflot": "https://www.coroflot.com/{}",
-"kaggle": "https://www.kaggle.com/{}",
-"moikrug": "https://moikrug.ru/{}",
-"webnode": "https://{}.webnode.cz/",
-"contently": "https://{}.contently.com/",
-"rumble": "https://rumble.com/user/{}",
-"pikabu": "https://pikabu.ru/@{}",
-"fameswap": "https://fameswap.com/user/{}",
-"monkeytype": "https://monkeytype.com/profile/{}",
-"vsco": "https://vsco.co/{}",
-"newgrounds": "https://{}.newgrounds.com",
-"wordnik": "https://www.wordnik.com/users/{}",
-"toster": "https://www.toster.ru/user/{}/answers",
-"sporcle": "https://www.sporcle.com/user/{}/people",
-"freecodecamp": "https://www.freecodecamp.org/{}",
-"intigriti": "https://app.intigriti.com/profile/{}",
-"signal": "https://community.signalusers.org/u/{}",
-"eyeem": "https://www.eyeem.com/u/{}",
-"goodreads": "https://www.goodreads.com/user/show/{}",
-"joplin forum": "https://discourse.joplinapp.org/u/{}",
-"envato forum": "https://forums.envato.com/u/{}",
-"imgsrc.ru": "https://imgsrc.ru/main/user.php?user={}",
-"pinkbike": "https://www.pinkbike.com/u/{}/",
-"choice community": "https://choice.community/u/{}/summary",
-"soundcloud": "https://soundcloud.com/{}",
-"tiktok": "https://www.tiktok.com/@{}",
-"hubski": "https://hubski.com/user/{}",
-"quizlet": "https://quizlet.com/{}",
-"irecommend": "https://irecommend.ru/users/{}",
-"fosstodon": "https://fosstodon.org/@{}",
-"ionic forum": "https://forum.ionicframework.com/u/{}",
-"chess": "https://www.chess.com/member/{}",
-"gunsandammo": "https://forums.gunsandammo.com/profile/{}",
-"last.fm": "https://www.last.fm/user/{}",
-"oracle community": "https://community.oracle.com/people/{}",
-"houzz": "https://www.houzz.com/user/{}",
-"fl": "https://www.fl.ru/users/{}",
-"jeuxvideo": "http://www.jeuxvideo.com/profil/{}?mode=infos",
-"ask fedora": "https://ask.fedoraproject.org/u/{}",
-"academia.edu": "https://independent.academia.edu/{}",
-"slant": "https://www.slant.co/users/{}",
-"caddy community": "https://caddy.community/u/{}/summary",
-"pastebin": "https://pastebin.com/u/{}",
-"royalcams": "https://royalcams.com/profile/{}",
-"grailed": "https://www.grailed.com/{}",
-"freesound": "https://freesound.org/people/{}/",
-"kofi": "https://ko-fi.com/{}",
-"tumblr": "https://{}.tumblr.com",
-"svidbook": "https://www.svidbook.ru/user/{}",
-"whonix forum": "https://forums.whonix.org/u/{}/summary",
-"gutefrage": "https://www.gutefrage.net/nutzer/{}",
-"nightbot": "https://nightbot.tv/t/{}/commands",
-"phpru": "https://php.ru/forum/members/?username={}",
-"artstation": "https://www.artstation.com/{}",
-"snapchat": "https://snapchat.com/add/{}",
-"mastodon.social": "https://mastodon.social/@{}",
-"heavy-r": "https://www.heavy-r.com/user/{}",
-"memrise": "https://www.memrise.com/user/{}/",
-"freelancer": "https://www.freelancer.com/u/{}",
-"tldr legal": "https://tldrlegal.com/users/{}/",
-"velomania": "https://forum.velomania.ru/member.php?username={}",
-"wikidot": "http://www.wikidot.com/user:info/{}",
-"naver": "https://blog.naver.com/{}",
-"polygon": "https://www.polygon.com/users/{}",
-"forum ophilia": "https://www.forumophilia.com/profile.php?mode=viewprofile&u={}",
-"tetr.io": "https://ch.tetr.io/u/{}",
-"trakt": "https://www.trakt.tv/users/{}",
-"icons8 community": "https://community.icons8.com/u/{}/summary",
-"yandexmusic": "https://music.yandex/users/{}/playlists",
-"ourdjtalk": "https://ourdjtalk.com/members?username={}",
-"star citizen": "https://robertsspaceindustries.com/citizens/{}",
-"wordpressorg": "https://profiles.wordpress.org/{}/",
-"codecademy": "https://www.codecademy.com/profiles/{}",
-"zone-h": "http://www.zone-h.org/archive/notifier={}",
-"disqus": "https://disqus.com/by/{}",
-"tenor": "https://tenor.com/users/{}",
-"avizo": "https://www.avizo.cz/{}/",
-"cash": "https://cash.me/{}",
-"biohacking": "https://forum.dangerousthings.com/u/{}",
-"9gag": "https://www.9gag.com/u/{}",
-"scratch": "https://scratch.mit.edu/users/{}",
-"shpock": "https://www.shpock.com/shop/{}/items",
-"sportlerfrage": "https://www.sportlerfrage.net/nutzer/{}",
-"warrior forum": "https://www.warriorforum.com/members/{}.html",
-"windy": "https://community.windy.com/user/{}",
-"igromania": "http://forum.igromania.ru/member.php?username={}",
-"matrix": "https://matrix.to/#/@{}",
-"okcupid": "https://www.okcupid.com/profile/{}",
-"motorradfrage": "https://www.motorradfrage.net/nutzer/{}",
-"packagist": "https://packagist.org/packages/{}/",
-"clubhouse": "https://www.clubhouse.com/@{}",
-"replit.com": "https://replit.com/@{}",
-"badoo": "https://badoo.com/en/{}",
-"autofrage": "https://www.autofrage.net/nutzer/{}",
-"redtube": "https://www.redtube.com/users/{}",
-"clapper": "https://clapperapp.com/{}",
-"mixcloud": "https://www.mixcloud.com/{}/",
-"gaiaonline": "https://www.gaiaonline.com/profiles/{}",
-"hackthebox": "https://forum.hackthebox.eu/profile/{}",
-"fiverr": "https://www.fiverr.com/{}",
-"flightradar24": "https://my.flightradar24.com/{}",
-"issuu": "https://issuu.com/{}",
-"about.me": "https://about.me/{}",
-"car talk community": "https://community.cartalk.com/u/{}/summary",
-"furaffinity": "https://www.furaffinity.net/user/{}",
-"steamcommunity": "https://steamcommunity.com/id/{}",
-"spotify": "https://open.spotify.com/user/{}",
-"football": "https://www.rusfootball.info/user/{}/",
-"couchsurfing": "https://www.couchsurfing.com/people/{}",
-"hackerrank": "https://www.hackerrank.com/{}",
-"rajce.net": "https://{}.rajce.idnes.cz/",
-"bitwarden forum": "https://community.bitwarden.com/u/{}/summary",
-"f3.cool": "https://f3.cool/{}/",
-"youtube channel": "https://www.youtube.com/c/{}",
-"ello": "https://ello.co/{}",
-"cloudflarecommunity": "https://community.cloudflare.com/u/{}",
-"slideshare": "https://slideshare.net/{}",
-"jimdo": "https://{}.jimdosite.com",
-"exposure": "https://{}.exposure.co/",
-"chatujme.cz": "https://profil.chatujme.cz/{}",
-"dealabs": "https://www.dealabs.com/profile/{}",
-"splice": "https://splice.com/{}",
-"image fap": "https://www.imagefap.com/profile/{}",
-"air pilot life": "https://airlinepilot.life/u/{}",
-"booth": "https://{}.booth.pm/",
-"itch.io": "https://{}.itch.io/",
-"virustotal": "https://www.virustotal.com/gui/user/{}",
-"youporn": "https://www.youporn.com/profile/{}",
-"babyblogru": "https://www.babyblog.ru/user/{}",
-"hackerearth": "https://hackerearth.com/@{}",
-"devrant": "https://devrant.com/users/{}",
-"youpic": "https://youpic.com/photographer/{}/",
-"slashdot": "https://slashdot.org/~{}",
-"youtube": "https://youtube.com/{}",
-"reddit": "https://www.reddit.com/user/{}",
-"geocaching": "https://www.geocaching.com/p/default.aspx?u={}",
-"eintracht": "https://community.eintracht.de/fans/{}",
-"blogger": "https://{}.blogspot.com",
-"rubygems": "https://rubygems.org/profiles/{}",
-"steamgroup": "https://steamcommunity.com/groups/{}",
-"kongregate": "https://www.kongregate.com/accounts/{}",
-"carbonmade": "https://{}.carbonmade.com",
-"github": "https://github.com/{}",
-"metacritic": "https://www.metacritic.com/user/{}",
-"allmylinks": "https://allmylinks.com/{}",
-"gravatar": "http://en.gravatar.com/{}",
-"slack": "https://{}.slack.com",
-"trip": "https://www.trip.skyscanner.com/user/{}",
-"openstreetmap": "https://www.openstreetmap.org/user/{}",
-"amino": "https://aminoapps.com/u/{}",
-"roblox": "https://www.roblox.com/user.aspx?username={}",
-"launchpad": "https://launchpad.net/~{}",
-"patreon": "https://www.patreon.com/{}",
-"hexrpg": "https://www.hexrpg.com/userinfo/{}",
-"cracked": "https://www.cracked.com/members/{}/",
-"typeracer": "https://data.typeracer.com/pit/profile?user={}",
-"egpu": "https://egpu.io/forums/profile/{}/",
-"coders rank": "https://profile.codersrank.io/user/{}/",
-"hunting": "https://www.hunting.ru/forum/members/?username={}",
-"trawelling": "https://traewelling.de/@{}",
-"bodybuilding": "https://bodyspace.bodybuilding.com/{}",
-"minecraft": "https://api.mojang.com/users/profiles/minecraft/{}",
-"polarsteps": "https://polarsteps.com/{}",
-"tuna": "https://tuna.voicemod.net/user/{}",
-"kik": "https://kik.me/{}",
-"freelance.habr": "https://freelance.habr.com/freelancers/{}",
-"medium": "https://medium.com/@{}",
-"giant bomb": "https://www.giantbomb.com/profile/{}/",
-"erome": "https://www.erome.com/{}",
-"imgup.cz": "https://imgup.cz/{}",
-"geeksforgeeks": "https://auth.geeksforgeeks.org/user/{}",
-"canva": "https://canva.com/{}",
-"gamespot": "https://www.gamespot.com/profile/{}/",
-"sessionize": "https://sessionize.com/{}",
-"gitlab": "https://gitlab.com/{}",
-"hashnode": "https://hashnode.com/@{}",
-"babyru": "https://www.baby.ru/u/{}/",
-"twitter": "https://twitter.com/{}",
-"asciinema": "https://asciinema.org/~{}",
-"gitee": "https://gitee.com/{}",
-"swapd": "https://swapd.co/u/{}",
-"dmoj": "https://dmoj.ca/user/{}",
-"gitbook": "https://{}.gitbook.io/",
-"keybase": "https://keybase.io/{}",
-"askfm": "https://ask.fm/{}",
-"codeforces": "https://codeforces.com/profile/{}",
-"reisefrage": "https://www.reisefrage.net/nutzer/{}",
-"pocketstars": "https://pocketstars.com/{}",
-"g2g": "https://www.g2g.com/{}",
-"splits.io": "https://splits.io/users/{}",
-"onlyfans": "https://onlyfans.com/{}",
-"hackaday": "https://hackaday.io/{}",
-"bandcamp": "https://www.bandcamp.com/{}",
-"euw": "https://euw.op.gg/summoner/userName={}",
-"xbox gamertag": "https://xboxgamertag.com/search/{}",
-"mastodon.xyz": "https://mastodon.xyz/@{}",
-"gradle": "https://plugins.gradle.org/u/{}",
-"datingru": "http://dating.ru/{}",
-"strava": "https://www.strava.com/athletes/{}",
-"authorstream": "http://www.authorstream.com/{}/",
-"ninja kiwi": "https://ninjakiwi.com/profile/{}",
-"scribd": "https://www.scribd.com/{}",
-"hackerone": "https://hackerone.com/{}",
-"flickr": "https://www.flickr.com/photos/{}",
-"wattpad": "https://www.wattpad.com/user/{}",
-"nicommunityforum": "https://community.native-instruments.com/profile/{}",
-"mydramalist": "https://www.mydramalist.com/profile/{}",
-"wiki.vg": "https://wiki.vg/User:{}",
-"code snippet wiki": "https://codesnippets.fandom.com/wiki/User:{}",
-"fortnitetracker": "https://fortnitetracker.com/profile/all/{}",
-"npm": "https://www.npmjs.com/~{}",
-"blogspot": "https://{}.blogspot.com/",
-"clozemaster": "https://www.clozemaster.com/players/{}",
-"biggerpockets": "https://www.biggerpockets.com/users/{}",
-"letterboxd": "https://letterboxd.com/{}",
-"hackster": "https://www.hackster.io/{}",
-"wordpress": "https://{}.wordpress.com/",
-"satsisru": "https://satsis.info/user/{}",
-"pypi": "https://pypi.org/user/{}",
-"bongacams": "https://pt.bongacams.com/profile/{}",
-"flipboard": "https://flipboard.com/@{}",
-"mercadolivre": "https://www.mercadolivre.com.br/perfil/{}",
-"nintendolife": "https://www.nintendolife.com/users/{}",
-"pcgamer": "https://forums.pcgamer.com/members/?username={}",
-"8tracks": "https://8tracks.com/{}",
-"slides": "https://slides.com/{}",
-"habr": "https://habr.com/ru/users/{}",
-"500px": "https://500px.com/{}",
-"soylentnews": "https://soylentnews.org/~{}",
-"lesswrong": "https://www.lesswrong.com/users/@{}",
-"themeforest": "https://themeforest.net/user/{}",
-"reverbnation": "https://www.reverbnation.com/{}",
-"irl": "https://www.irl.com/{}",
-"redbubble": "https://www.redbubble.com/people/{}",
-"smugmug": "https://{}.smugmug.com",
-"labpentestit": "https://lab.pentestit.ru/profile/{}",
-"twitch": "https://www.twitch.tv/{}",
-"wolframalphaforum": "https://community.wolfram.com/web/{}/home",
-"tellonym.me": "https://tellonym.me/{}",
-"trashboxru": "https://trashbox.ru/users/{}",
-"all things worn": "https://www.allthingsworn.com/profile/{}",
-"facebook": "https://facebook.com/{}",
-"smule": "https://www.smule.com/{}",
-"finanzfrage": "https://www.finanzfrage.net/nutzer/{}",
-"opensource": "https://opensource.com/users/{}",
-"vk": "https://vk.com/{}",
-"munzee": "https://www.munzee.com/m/{}",
-"plus": "https://plus.google.com/{}",
-"youtube user": "https://www.youtube.com/user/{}",
-"mmorpg forum": "https://forums.mmorpg.com/profile/{}",
-"nitrotype": "https://www.nitrotype.com/racer/{}",
-"prog.hu": "https://prog.hu/azonosito/info/{}",
-"leasehackr": "https://forum.leasehackr.com/u/{}/summary/",
-"deviantart": "https://www.deviantart.com/{}",
-"keakr": "https://www.keakr.com/en/profile/{}",
-"modelhub": "https://www.modelhub.com/{}/videos",
-"discuss.elastic.co": "https://discuss.elastic.co/u/{}",
-"lolchess": "https://lolchess.gg/profile/na/{}",
-"hackernews": "https://news.ycombinator.com/user?id={}",
-"promodj": "http://promodj.com/{}",
-"buzzfeed": "https://buzzfeed.com/{}",
-"hubpages": "https://hubpages.com/@{}",
-"apple developer": "https://developer.apple.com/forums/profile/{}",
-"kwork": "https://kwork.ru/user/{}",
-"harvard scholar": "https://scholar.harvard.edu/{}",
-"dailykos": "https://www.dailykos.com/user/{}",
-"colourlovers": "https://www.colourlovers.com/lover/{}",
-"notabug.org": "https://notabug.org/{}",
-"career.habr": "https://career.habr.com/{}",
-"ultimate-guitar": "https://ultimate-guitar.com/u/{}",
-"tradingview": "https://www.tradingview.com/u/{}/",
-"chaos.social": "https://chaos.social/@{}",
-"wikipedia": "https://en.wikipedia.org/wiki/Special:CentralAuth/{}?uselang=qqx",
-"sportsru": "https://www.sports.ru/profile/{}/",
-"designspiration": "https://www.designspiration.net/{}",
-"myanimelist": "https://myanimelist.net/profile/{}",
-"instagram": "https://instagram.com/{}",
-"discogs": "https://www.discogs.com/user/{}",
-"znanylekarz.pl": "https://www.znanylekarz.pl/{}",
-"coinvote": "https://coinvote.cc/profile/{}",
-"ifttt": "https://www.ifttt.com/p/{}",
-"crowdin": "https://crowdin.com/profile/{}",
-"duolingo": "https://www.duolingo.com/profile/{}",
-"championat": "https://www.championat.com/user/{}",
-"behance": "https://www.behance.net/{}",
-"last": "https://last.fm/user/{}",
-"pr0gramm": "https://pr0gramm.com/user/{}",
-"note": "https://note.com/{}",
-"mapify": "https://mapify.travel/{}",
-"virgool": "https://virgool.io/@{}",
-"icq": "https://icq.im/{}/en",
-"etsy": "https://www.etsy.com/people/{}",
-"lichess": "https://lichess.org/@/{}",
-"gfycat": "https://gfycat.com/@{}",
-"genius (users)": "https://genius.com/{}",
-"nextcloud forum": "https://help.nextcloud.com/u/{}/summary",
-"pokemon showdown": "https://pokemonshowdown.com/users/{}",
-"sketchfab": "https://sketchfab.com/{}",
-"jbzd.com.pl": "https://jbzd.com.pl/uzytkownik/{}",
-"jellyfin weblate": "https://translate.jellyfin.org/user/{}/",
-"fixya": "https://www.fixya.com/users/{}",
-"bookcrossing": "https://www.bookcrossing.com/mybookshelf/{}/",
-"motherless": "https://motherless.com/m/{}",
-"pinterest": "https://www.pinterest.com/{}",
-"wykop": "https://www.wykop.pl/ludzie/{}",
-"ctan": "https://ctan.org/author/{}",
-"younow": "https://www.younow.com/{}/",
-"itemfix": "https://www.itemfix.com/c/{}",
-"wix": "https://{}.wix.com",
-"minds": "https://www.minds.com/{}",
-"xhamster": "https://xhamster.com/users/{}",
-"zhihu": "https://www.zhihu.com/people/{}",
-"skyrock": "https://{}.skyrock.com/",
-"genius (artists)": "https://genius.com/artists/{}",
-"playstore": "https://play.google.com/store/apps/developer?id={}",
-"interpals": "https://www.interpals.net/{}",
-"vero": "https://www.vero.co/{}",
-"venmo": "https://account.venmo.com/u/{}",
-"dailymotion": "https://www.dailymotion.com/{}",
-"holopin": "https://holopin.io/@{}",
-"lobsters": "https://lobste.rs/u/{}",
-"nationstates nation": "https://nationstates.net/nation={}",
-"chaos": "https://chaos.social/@{}",
-"rclone forum": "https://forum.rclone.org/u/{}",
-"apclips": "https://apclips.com/{}",
-"tryhackme": "https://tryhackme.com/p/{}",
-"livejournal": "https://{}.livejournal.com/",
-"pornhub": "https://www.pornhub.com/users/{}",
-"gesundheitsfrage": "https://www.gesundheitsfrage.net/nutzer/{}",
-"livelib": "https://www.livelib.ru/reader/{}",
-"myminifactory": "https://www.myminifactory.com/users/{}",
-"leetcode": "https://leetcode.com/{}",
-"audiojungle": "https://audiojungle.net/user/{}",
-"airbit": "https://airbit.com/{}",
-"linkedin": "https://linkedin.com/in/{}",
-"quora": "https://www.quora.com/profile/{}",
-"mix": "https://mix.com/{}",
-"whatsapp": "https://wa.me/{}",
-"gab": "https://gab.com/{}",
-"mewe": "https://mewe.com/i/{}",
-"parler": "https://parler.com/profile/{}",
-"wechat": "https://web.wechat.com/{}",
-"douban": "https://www.douban.com/people/{}",
-"kakaotalk": "https://story.kakao.com/{}",
-"qzone": "https://user.qzone.qq.com/{}",
-"weibo": "https://weibo.com/{}",
-"renren": "http://www.renren.com/{}",
-"plurk": "https://www.plurk.com/{}",
-"path": "https://path.com/{}",
-"taringa": "https://www.taringa.net/{}",
-"vkontakte (vk)": "https://vk.com/{}",
-"odnoklassniki": "https://ok.ru/profile/{}",
-"stackoverflow": "https://stackoverflow.com/users/{}",
-"dev.to": "https://dev.to/{}",
-"replit": "https://replit.com/@{}",
-"jupyter": "https://jupyter.org/{}",
-"dzone": "https://dzone.com/users/{}",
-"coderbyte": "https://coderbyte.com/profile/{}",
-"topcoder": "https://www.topcoder.com/members/{}",
-"coursera": "https://www.coursera.org/user/{}",
-"loco":"https://loco.gg/streamers/{}",
-"udemy": "https://www.udemy.com/user/{}",
-"pluralsight": "https://app.pluralsight.com/profile/{}",
-"datacamp": "https://www.datacamp.com/profile/{}",
-"edx": "https://www.edx.org/user/{}",
-"khan academy": "https://www.khanacademy.org/profile/{}",
-"vkontakte": "https://vk.com/{}",
-"eevblog":"https://www.eevblog.com/forum/profile/{}",
-"imdb": "https://www.imdb.com/user/{}",
-"influenster": "https://www.influenster.com/{}",
-"care2": "https://www.care2.com/c2c/people/profile.html?pid={}",
-"cafemom": "https://www.cafemom.com/profile/{}",
-"nextdoor": "https://nextdoor.com/profile/{}",
-"patientlikeme": "https://www.patientslikeme.com/members/{}",
-"vizify": "https://vizify.com/{}",
-"viadeo": "https://www.viadeo.com/p/{}",
-"ryze": "https://www.ryze.com/go/{}",
-"xanga": "https://xanga.com/{}",
-"blackplanet": "https://blackplanet.com/{}",
-"classmates": "https://www.classmates.com/people/{}",
-"cellufun": "https://cellufun.com/users/{}",
-"gaia online": "https://www.gaiaonline.com/profiles/{}",
-"travellerspoint": "https://www.travellerspoint.com/member_profile.cfm?user={}",
-"gather": "https://gather.com/viewProfile.action?memberId={}",
-"habbo": "https://www.habbo.com/home/{}",
-"socialvibe": "https://socialvibe.com/{}",
-"travbuddy": "https://www.travbuddy.com/{}",
-"flixster": "https://www.flixster.com/user/{}",
-"untappd": "https://untappd.com/user/{}",
-"mobli": "https://www.mobli.com/{}",
-"mylife": "https://www.mylife.com/{}",
-"anobii": "https://www.anobii.com/{}",
-"meetme": "https://www.meetme.com/member/{}",
-"meetic": "https://www.meetic.com/profile/{}",
-"mocospace": "https://www.mocospace.com/html/profile/{}",
-"wayn": "https://www.wayn.com/profiles/{}",
-"livejasmin": "https://www.livejasmin.com/{}",
-"brazzers": "https://www.brazzers.com/profile/view/{}",
-"myfreecams": "https://profiles.myfreecams.com/{}",
-"manyvids": "https://www.manyvids.com/Profile/{}",
-"spankbang": "https://spankbang.com/p/{}",
-"camsoda": "https://www.camsoda.com/{}",
-"pornmd": "https://www.pornmd.com/{}",
-"hentaifoundry": "https://www.hentai-foundry.com/user/{}",
-"literotica": "https://www.literotica.com/stories/memberpage.php?uid={}",
-"fetlife": "https://fetlife.com/users/{}",
-"inkedin": "https://inkedin.com/{}",
-"wankzvr": "https://www.wankzvr.com/{}",
-"nutaku": "https://www.nutaku.net/users/{}",
-"realitykings": "https://www.realitykings.com/profiles/{}",
-"bangbros": "https://www.bangbrosnetwork.com/profile/{}",
-"evilangel": "https://www.evilangel.com/en/user/{}",
-"naughtyamerica": "https://members.naughtyamerica.com/members/profile/{}",
-"javlibrary": "https://www.javlibrary.com/en/vl_star.php?s={}",
-"eroshare": "https://eroshare.com/u/{}",
-"empornium": "https://empornium.is/userdetails.php?id={}",
-"pornbox": "https://pornbox.org/{}",
-"bang": "https://www.bang.com/profile/{}",
-"clips4sale": "https://www.clips4sale.com/studio/{}",
-"porn.com": "https://www.porn.com/{}",
-"xpeeps": "https://xpeeps.com/{}",
-"cam4": "https://www.cam4.com/{}",
-"cliphunter": "https://www.cliphunter.com/{}",
-"spankwire": "https://www.spankwire.com/{}",
-"efukt": "https://www.efukt.com/user/{}",
-"mofos": "https://www.mofos.com/user/{}/",
-"xnxx": "https://www.xnxx.com/profile/{}",
-"vporn": "https://www.vporn.com/users/{}",
-"tube8": "https://www.tube8.com/user/{}",
-"youjizz": "https://www.youjizz.com/profile/{}",
-"gotporn": "https://www.gotporn.com/{}",
-"javtube": "https://www.javtube.com/star/{}",
-"javmodel": "https://www.javmodel.com/profile/{}",
-"angellist": "https://angel.co/{}",
-"goodwalls": "https://www.goodwalls.io/{}",
-"dailybooth": "https://www.dailybooth.com/{}",
-"xfire": "https://www.xfire.com/profile/{}",
-"orkut": "https://www.orkut.com.br/Profile.aspx?uid={}",
-"stumbleupon": "https://www.stumbleupon.com/stumbler/{}",
-"tagged": "https://www.tagged.com/profile.html?uid={}",
-"delicious": "https://del.icio.us/{}",
-"netlog": "https://www.netlog.com/{}/",
-"friendster": "https://www.friendster.com/{}",
-"second life": "https://my.secondlife.com/{}",
-"ask.fm": "https://ask.fm/{}",
-"formspring": "https://www.formspring.me/{}",
-"liveleak": "https://www.liveleak.com/c/{}",
-"livemocha": "https://www.livemocha.com/user/{}",
-"fanpop": "https://www.fanpop.com/fans/{}",
-"threadless": "https://www.threadless.com/@{}",
-"librarything": "https://www.librarything.com/profile/{}",
-"digg": "https://digg.com/users/{}",
-"fotolog": "https://www.fotolog.com/{}",
-"bebo": "https://www.bebo.com/Profile.jsp?MemberId={}",
-"mixx": "https://www.mixx.com/{}",
-"technorati": "https://technorati.com/people/technorati/{}/",
-"vampirefreaks": "https://vampirefreaks.com/{}",
-"netvibes": "https://www.netvibes.com/{}",
-"fotki": "https://{}.fotki.com/",
-"carepages": "https://www.carepages.com/users/{}/profile",
-"tribe.net": "https://people.tribe.net/{}",
-"sonico": "https://www.sonico.com/u/{}/",
-"ecademy": "https://www.ecademy.com/account.php?op=show&uname={}",
-"asianavenue": "https://www.asianave.com/{}",
-"crackmes":"https://crackmes.one/user/{}",
-"hackernoon":"https://hackernoon.com/u/{}",
-"threads": "https://www.threads.net/@{}",
-"bluesky": "https://bsky.app/profile/{}",
-"discord": "https://discord.com/users/{}",
-"bereal": "https://bere.al/{}",
-"substack": "https://{}.substack.com/",
-"micro.blog": "https://micro.blog/{}",
-"pixelfed": "https://pixelfed.social/{}",
-"lemmy": "https://lemmy.ml/u/{}",
-"vrchat": "https://vrchat.com/home/user/{}",
-"gitea": "https://gitea.io/{}",
-"stackoverflow.careers": "https://careers.stackoverflow.com/{}",
-"ravelry": "https://www.ravelry.com/people/{}",
-"lemon8": "https://www.lemon8-app.com/@{}",
-"kuaishou": "https://www.kuaishou.com/profile/{}",
-"gamedev": "https://gamedev.net/profile/{}",
-"flickr.groups": "https://www.flickr.com/groups/{}",
-"mastodon.art": "https://mastodon.art/@{}",
-"xing": "https://www.xing.com/profile/{}",
-"github.gist": "https://gist.github.com/{}",
-"indieauth": "https://indieauth.com/{}",
-"spotify.artist": "https://open.spotify.com/artist/{}",
-"spotify.podcast": "https://open.spotify.com/show/{}",
-"bitchute": "https://www.bitchute.com/channel/{}",
-"rumble.channel": "https://rumble.com/c/{}",
-"ko-fi": "https://ko-fi.com/{}",
-"polywork": "https://www.polywork.com/{}",
-"tildetown": "https://tilde.town/~{}/",
-"lens.xyz": "https://www.lens.xyz/{}",
-"farcaster": "https://warpcast.com/{}",
-"peerlist": "https://peerlist.io/{}",
-"are.na": "https://www.are.na/{}",
-"mastodon.gamedev": "https://mastodon.gamedev.place/@{}",
-"mirror.xyz": "https://mirror.xyz/{}",
-"gitstalk": "https://gitstalk.netlify.app/{}",
-"stackshare": "https://stackshare.io/{}",
-"codestats": "https://codestats.net/users/{}",
-"wakatime": "https://wakatime.com/@{}",
-"glitch": "https://glitch.com/@{}",
-"carrd": "https://{}.carrd.co/",
-"webflow": "https://{}.webflow.io",
-"notion": "https://{}.notion.site",
-"mastodon.lol": "https://mastodon.lol/@{}",
-"masto.ai": "https://masto.ai/@{}",
-"pixiv": "https://www.pixiv.net/en/users/{}",
-"booth.pm": "https://{}.booth.pm/",
-"spacehey": "https://spacehey.com/{}",
-"pinterest.board": "https://www.pinterest.com/{}/{}",
-"kickstarter": "https://www.kickstarter.com/profile/{}",
-"indiegogo": "https://www.indiegogo.com/individuals/{}",
-"airtable": "https://airtable.com/{}",
-"huggingface": "https://huggingface.co/{}",
-"taptap": "https://www.taptap.io/user/{}",
-"f6s": "https://www.f6s.com/{}",
-"figma": "https://www.figma.com/@{}",
-"crunchbase": "https://www.crunchbase.com/person/{}",
-"producthunt.collections": "https://www.producthunt.com/@{}/collections",
-"github.sponsors": "https://github.com/sponsors/{}",
-"cafecito": "https://cafecito.app/{}",
-"liberapay": "https://liberapay.com/{}",
-"soundtrap": "https://www.soundtrap.com/{}",
-"clubhub": "https://clubhub.app/user/{}",
-"stackblitz": "https://stackblitz.com/@{}",
-"codeberg": "https://codeberg.org/{}",
-"sourcehut": "https://sr.ht/~{}/",
-"opencollective": "https://opencollective.com/{}",
-"pinboard": "https://pinboard.in/u:{}",
-"vscode.marketplace": "https://marketplace.visualstudio.com/publishers/{}",
-"vscodium.marketplace": "https://open-vsx.org/extension/{}",
-"muckrack": "https://muckrack.com/{}",
-"pexels": "https://www.pexels.com/@{}",
-"wikifunctions": "https://www.wikifunctions.org/wiki/User:{}",
-"wikimedia": "https://meta.wikimedia.org/wiki/User:{}",
-"replicate": "https://replicate.com/{}",
-"civitai": "https://civitai.com/user/{}",
-"heypi": "https://pi.ai/@{}",
-"chai": "https://chai.ml/{}",
-"perplexity": "https://www.perplexity.ai/@{}",
-"phind": "https://www.phind.com/@{}",
-"discord.bot": "https://discord.com/application-directory/{}/",
-"hive.blog": "https://hive.blog/@{}",
-"steemit": "https://steemit.com/@{}",
-"peakd": "https://peakd.com/@{}",
-"publish0x": "https://www.publish0x.com/@{}",
-"lens.protocol": "https://lenster.xyz/u/{}",
-"opensea": "https://opensea.io/{}",
-"foundation": "https://foundation.app/@{}",
-"rarible": "https://rarible.com/{}",
-"superrare": "https://superrare.com/{}",
-"nostr": "https://nostr.com/npub1{}",
-"cohost": "https://cohost.org/{}",
-"kinopio": "https://kinopio.club/{}",
-"vero-app": "https://vero.co/{}",
-"shopify": "https://{}.myshopify.com",
-"etsy.shop": "https://www.etsy.com/shop/{}",
-"tindie": "https://www.tindie.com/stores/{}",
-"stickermule": "https://www.stickermule.com/{}",
-"teespring": "https://teespring.com/stores/{}",
-"depop": "https://www.depop.com/{}",
-"vinted": "https://www.vinted.com/member/{}",
-"mercari": "https://www.mercari.com/u/{}",
-"poshmark": "https://poshmark.com/closet/{}",
-"caard": "https://{}.caard.co/",
-"framer": "https://{}.framer.website",
-"streamelements": "https://streamelements.com/{}",
-"streamlabs": "https://streamlabs.com/{}",
-"twitch.team": "https://www.twitch.tv/team/{}",
-"sketchfab.store": "https://sketchfab.com/stores/{}",
-"buymeacoffee.shop": "https://www.buymeacoffee.com/s/{}",
-"vsco.collection": "https://vsco.co/{}/gallery/collection/{}",
-"kickstarter.projects": "https://www.kickstarter.com/profile/{}/projects",
-"mymusicstaff": "https://{}.mymusicstaff.com",
-"musescore": "https://musescore.com/user/{}",
-"bandlab": "https://www.bandlab.com/{}",
-"audiomack": "https://audiomack.com/{}",
-"jamendo": "https://www.jamendo.com/artist/{}",
-"songkick": "https://www.songkick.com/artists/{}",
-"audius": "https://audius.co/{}",
-"galaxydigital": "https://{}.galaxydigital.com",
-"onnit": "https://www.onnit.com/pro-team/{}/",
-"bookwyrm": "https://bookwyrm.social/user/{}",
-"literal": "https://literal.club/{}",
-"storygraph": "https://app.thestorygraph.com/profile/{}",
-"readng": "https://readng.co/{}",
-"discordserver": "https://discord.gg/{}",
-"guilded": "https://www.guilded.gg/{}",
-"teamspeak": "https://teamspeak.com/{}",
-"mumble": "mumble://{}",
-"sessionize.speaker": "https://sessionize.com/s/{}",
-"disroot": "https://cloud.disroot.org/u/{}",
-"rentry": "https://rentry.co/{}",
-"forestapp": "https://www.forestapp.cc/friend/{}",
-"habitica": "https://habitica.com/profile/{}",
-"dreamwidth": "https://{}.dreamwidth.org/",
-"discourse": "https://meta.discourse.org/u/{}",
-"jekyllthemes": "http://jekyllthemes.org/authors/{}/",
-"godotassetlib": "https://godotengine.org/asset-library/asset?user={}",
-"mastodon.online": "https://mastodon.online/@{}",
- "mastodon.uno": "https://mastodon.uno/@{}",
- "post": "https://post.news/{}",
- "nostr.band": "https://nostr.band/p/{}",
- "snort.social": "https://snort.social/p/{}",
- "flote": "https://flote.app/user/{}",
- "opensea.collection": "https://opensea.io/collection/{}",
- "truth.social": "https://truthsocial.com/@{}",
- "stackexchange": "https://stackexchange.com/users/{}",
- "mathoverflow": "https://mathoverflow.net/users/{}",
- "serverfault": "https://serverfault.com/users/{}",
- "superuser": "https://superuser.com/users/{}",
- "askubuntu": "https://askubuntu.com/users/{}",
- "kaggle.datasets": "https://www.kaggle.com/{}/datasets",
- "kaggle.competitions": "https://www.kaggle.com/{}/competitions",
- "kaggle.notebooks": "https://www.kaggle.com/{}/notebooks",
- "dribbbble.shots": "https://dribbble.com/{}/shots",
- "dribbble.collections": "https://dribbble.com/{}/collections",
- "behance.projects": "https://www.behance.net/{}/projects",
- "solana.fm": "https://solana.fm/address/{}",
- "etherscan": "https://etherscan.io/address/{}",
- "btc.com": "https://btc.com/{}",
- "walletexplorer": "https://www.walletexplorer.com/wallet/{}",
- "blockchair": "https://blockchair.com/bitcoin/address/{}",
- "gitbook.space": "https://{}.gitbook.io/",
- "atlassian": "https://community.atlassian.com/t5/user/viewprofilepage/user-id/{}",
- "confluence": "https://{}.atlassian.net/wiki/",
- "jira": "https://{}.atlassian.net/jira/",
- "chromium": "https://bugs.chromium.org/u/{}",
- "firefox.bugzilla": "https://bugzilla.mozilla.org/user_profile?user_id={}",
- "firefox.addons": "https://addons.mozilla.org/en-US/firefox/user/{}",
- "chrome.webstore": "https://chrome.google.com/webstore/detail/{}",
- "observablehq": "https://observablehq.com/@{}",
- "codersrank": "https://profile.codersrank.io/user/{}",
- "exercism": "https://exercism.org/profiles/{}",
- "projecteuler": "https://projecteuler.net/profile/{}.png",
- "chess.com": "https://www.chess.com/member/{}",
- "worldcubeassociation": "https://www.worldcubeassociation.org/persons/{}",
- "speedsolving": "https://www.speedsolving.com/members/{}/",
- "crossref": "https://search.crossref.org/?q={}",
- "orcid": "https://orcid.org/{}",
- "semanticscholar": "https://www.semanticscholar.org/author/{}",
- "arxiv": "https://arxiv.org/search/?searchtype=author&query={}",
- "zbmath": "https://zbmath.org/authors/?q={}",
- "dblp": "https://dblp.org/pid/{}",
- "IEEE": "https://ieeexplore.ieee.org/author/{}",
- "ACM": "https://dl.acm.org/profile/{}",
- "pubmed": "https://pubmed.ncbi.nlm.nih.gov/?term={}",
- "overleaf": "https://www.overleaf.com/user/{}",
- "zotero": "https://www.zotero.org/{}",
- "mendeley": "https://www.mendeley.com/profiles/{}",
- "frontiersin": "https://www.frontiersin.org/people/{}",
- "loop.frontiers": "https://loop.frontiersin.org/people/{}",
- "plos": "https://plos.org/author/{}",
- "nature": "https://www.nature.com/search?author={}",
- "zenodo": "https://zenodo.org/communities/{}",
- "figshare": "https://figshare.com/authors/{}",
- "clio": "https://www.clio.com/user/{}",
- "openscienceframework": "https://osf.io/{}",
- "googlescholar": "https://scholar.google.com/citations?user={}",
- "springer": "https://www.springer.com/gp/search?query={}&submit=Submit",
- "sciencedirect": "https://www.sciencedirect.com/search?authors={}",
- "wiley": "https://onlinelibrary.wiley.com/action/doSearch?field1=Contrib&text1={}",
- "academia": "https://academia.edu/{}",
- "publons": "https://publons.com/researcher/{}",
- "biomedcentral": "https://www.biomedcentral.com/search?searchType=journalSearch&authors={}",
- "peerj": "https://peerj.com/{}",
- "codingame": "https://www.codingame.com/profile/{}",
- "atcoder": "https://atcoder.jp/users/{}",
- "spoj": "https://www.spoj.com/users/{}",
- "topcoder.member": "https://www.topcoder.com/members/{}",
- "topcoder.profile": "https://profiles.topcoder.com/{}",
- "uhunt": "https://uhunt.onlinejudge.org/id/{}",
- "lichess.tvs": "https://lichess.org/@/{}/tv",
- "leetcode.contest": "https://leetcode.com/contest/author/{}",
- "leetcode.rating": "https://leetcode.com/user/{}/",
- "notion.site": "https://{}.notion.site/",
- "calendly": "https://calendly.com/{}",
- "xda": "https://forum.xda-developers.com/m/{}",
- "raidforums": "https://raidforums.com/User-{}",
- "crackingforum": "https://crackingforum.com/User-{}",
- "nulled": "https://www.nulled.to/user/{}",
- "leakedbb": "https://leakedbb.com/User-{}",
- "0x00sec": "https://0x00sec.org/u/{}/summary",
- "exploit.in": "https://exploit.in/user/{}",
- "hackthissite": "https://www.hackthissite.org/user/view/{}",
- "pentesterlab": "https://pentesterlab.com/profile/{}",
- "vulnhub": "https://www.vulnhub.com/author/{}",
- "root-me": "https://www.root-me.org/{}",
- "ctftime": "https://ctftime.org/user/{}",
- "grammarlygo": "https://go.grammarly.com/@{}",
- "yougov": "https://yougov.co.uk/people/{}",
- "steamdb": "https://steamdb.info/calculator/{}",
- "steamgifts": "https://www.steamgifts.com/user/{}",
- "steamtrades": "https://www.steamtrades.com/user/{}",
- "steampowered": "https://steamcommunity.com/id/{}/",
- "steamid": "https://steamid.uk/profile/{}",
- "steamladder": "https://steamladder.com/profile/{}",
- "astrobin": "https://www.astrobin.com/users/{}/",
- "flickr.albums": "https://www.flickr.com/photos/{}/albums",
- "garmin": "https://connect.garmin.com/modern/profile/{}",
- "zwift": "https://www.zwift.com/athlete/{}",
- "komoot": "https://www.komoot.com/user/{}",
- "mapmyfitness": "https://www.mapmyfitness.com/profile/{}",
- "fitbit": "https://www.fitbit.com/user/{}",
- "underarmour": "https://profile.underarmour.com/{}",
- "nike": "https://www.nike.com/member/profile/{}",
- "runkeeper": "https://runkeeper.com/user/{}",
- "stryd": "https://www.stryd.com/powercenter/profile/{}",
- "polarflow": "https://flow.polar.com/training/profiles/{}",
- "trainingpeaks": "https://www.trainingpeaks.com/athlete/{}",
- "endomondo": "https://www.endomondo.com/profile/{}",
- "heatmap": "https://www.strava.com/heatmap/{}",
- "relive": "https://relive.cc/view/{}",
- "figma.community": "https://www.figma.com/@{}/community",
- "figma.files": "https://www.figma.com/@{}/files",
- "xcode": "https://developer.apple.com/account/{}",
- "androiddev": "https://developer.android.com/profile/{}",
- "googleplay.dev": "https://play.google.com/console/developer/{}",
- "appleappstore.dev": "https://appstoreconnect.apple.com/{}",
- "unity": "https://assetstore.unity.com/publishers/{}",
- "unreal": "https://www.unrealengine.com/marketplace/en-US/profile/{}",
- "godot": "https://godotengine.org/asset-library/asset?user={}",
- "aseprite": "https://aseprite.org/api/user/{}",
- "artstation.marketplace": "https://www.artstation.com/marketplace/sellers/{}",
- "3dsky": "https://3dsky.org/users/{}",
- "3dsmax": "https://area.autodesk.com/blogs/author/{}/",
- "blender": "https://www.blender.org/profile/{}",
- "blendermarket": "https://blendermarket.com/creators/{}",
- "blenderartists": "https://blenderartists.org/u/{}",
- "maxon": "https://www.maxon.net/en/user/{}",
- "substance3d": "https://substance3d.adobe.com/community/artist/{}",
- "polyhaven": "https://polyhaven.com/all?a={}",
- "sketchuptextureclub": "https://www.sketchuptextureclub.com/user/{}",
- "turbosquid": "https://www.turbosquid.com/Search/Artists/{}",
- "gumroad.creator": "https://{}.gumroad.com/",
- "lemon8.creator": "https://www.lemon8-app.com/{}",
- "librarything.collection": "https://www.librarything.com/catalog/{}"
-}
diff --git a/src/aliens_eye/__init__.py b/src/aliens_eye/__init__.py
new file mode 100644
index 0000000..ed8aaee
--- /dev/null
+++ b/src/aliens_eye/__init__.py
@@ -0,0 +1,3 @@
+"""Aliens Eye - AI-powered OSINT username scanner."""
+
+__version__ = "2.0.0"
diff --git a/src/aliens_eye/__main__.py b/src/aliens_eye/__main__.py
new file mode 100644
index 0000000..5e0e818
--- /dev/null
+++ b/src/aliens_eye/__main__.py
@@ -0,0 +1,4 @@
+from aliens_eye.cli import main
+
+if __name__ == "__main__":
+ main()
diff --git a/src/aliens_eye/cli.py b/src/aliens_eye/cli.py
new file mode 100644
index 0000000..cb0dd9a
--- /dev/null
+++ b/src/aliens_eye/cli.py
@@ -0,0 +1,563 @@
+"""Command-line interface for Aliens Eye."""
+
+from __future__ import annotations
+
+import asyncio
+import json
+import sys
+from argparse import ArgumentParser
+from pathlib import Path
+from typing import Any
+
+from platformdirs import user_config_dir
+from rich.prompt import Confirm, FloatPrompt, IntPrompt, Prompt
+
+from aliens_eye import __version__
+from aliens_eye.core.analyzer import FeatureExtractor
+from aliens_eye.core.browser import BrowserFallback
+from aliens_eye.core.config import DEFAULT_USER_AGENT, ScannerConfig
+from aliens_eye.core.detector import Detector
+from aliens_eye.core.exporter import ResultsExporter
+from aliens_eye.core.fingerprints import FingerprintStore
+from aliens_eye.core.scanner import (
+ UsernameScanner,
+ filter_sites,
+ load_nsfw_sites,
+ load_sites_data,
+)
+from aliens_eye.utils.console import get_console, set_plain
+from aliens_eye.utils.logger import setup_logger
+
+TOR_PROXY = "socks5://127.0.0.1:9050"
+
+BANNER = r"""[green] ___ __ _________ ___ ____
+ / _ | / / / _/ __/ |/ ( )/ __/
+ / __ |/ /___/ // _// /|/_\ \
+/_/ |_/____/___/___/_/|_/ /___/[/green]
+[blue] ________ ________
+ / ____/\ \/ / ____/[/blue][red] _ __[/red][white]__ __[/white]
+[blue] / __/ \ / __/[/blue][red] | | / /[/red][white] // /[/white]
+[blue] / /___ / / /___ [/blue][red] | | / /[/red][white] // /[/white]
+[blue]/_____/ /_/_____/ [/blue][red] | |/ /[/red][white]__ __/[/white]
+[red] |___/[/red][white] /_/[/white]
+"""
+
+
+def display_banner(site_count: int) -> None:
+ console = get_console()
+ console.print(BANNER)
+ console.print(f"[green]by[/green] [yellow]arxhr007[/yellow] [dim]v{__version__}[/dim]")
+ console.print("[yellow]AI-OSINT USERNAME SCANNER[/yellow]")
+ console.print(f"[magenta]Scanning {site_count} websites[/magenta]")
+ console.print("[red]NOTE: For educational purposes only!\n[/red]")
+
+
+def build_parser() -> ArgumentParser:
+ parser = ArgumentParser(
+ prog="aliens_eye",
+ description="AI-Enhanced Username Scanner - Find usernames across social media platforms",
+ )
+ parser.add_argument("username", nargs="*", help="Usernames to scan")
+ parser.add_argument("-V", "--version", action="version", version=f"aliens-eye {__version__}")
+ parser.add_argument("-r", "--read", help="Path to JSON file to read and display")
+ parser.add_argument("-c", "--concurrent", type=int, help="Max concurrent connections")
+ parser.add_argument("-v", "--verbose", action="store_true", help="Enable verbose output")
+ parser.add_argument(
+ "-l",
+ "--level",
+ choices=["basic", "intermediate", "advanced"],
+ help="Scan level",
+ )
+ parser.add_argument("--timeout", type=float, help="Request timeout in seconds")
+ parser.add_argument("--retries", type=int, help="Retry count for failed requests")
+ parser.add_argument("--backoff-base", type=float, help="Base backoff in seconds")
+ parser.add_argument("--backoff-cap", type=float, help="Max backoff in seconds")
+ parser.add_argument("--rate-limit", type=float, help="Min delay per domain")
+ parser.add_argument("--max-bytes", type=int, help="Max response bytes to parse")
+ parser.add_argument("--config", type=str, help="Path to config JSON file")
+ parser.add_argument(
+ "--format",
+ type=str,
+ default=None,
+ help="Output formats: json,csv,html,md,all",
+ )
+ parser.add_argument("--output", type=str, default=None, help="Output directory")
+ parser.add_argument(
+ "--playwright",
+ action="store_true",
+ help="Enable Playwright fallback for Maybe results (requires aliens-eye[browser])",
+ )
+ parser.add_argument("--proxy", type=str, help="Proxy URL (http://, socks4://, or socks5://)")
+ parser.add_argument(
+ "--tor", action="store_true", help=f"Route traffic through Tor ({TOR_PROXY})"
+ )
+ parser.add_argument(
+ "--site",
+ type=str,
+ help="Only scan sites whose name matches (comma-separated, substring match)",
+ )
+ parser.add_argument(
+ "--exclude-site",
+ type=str,
+ help="Skip sites whose name matches (comma-separated, substring match)",
+ )
+ parser.add_argument("--no-nsfw", action="store_true", help="Skip NSFW sites")
+ parser.add_argument("--no-ml", action="store_true", help="Disable ML detection, heuristics only")
+ parser.add_argument("--model", type=str, help="Path to a custom ML model JSON")
+ parser.add_argument("--sites", type=str, help="Path to a custom sites JSON")
+ parser.add_argument("--plain", action="store_true", help="Plain output (no colors/progress)")
+ parser.add_argument(
+ "--profile",
+ choices=["quick", "full", "aggressive"],
+ help="Scan profile preset (skips interactive prompt)",
+ )
+ return parser
+
+
+def build_selfcheck_parser() -> ArgumentParser:
+ parser = ArgumentParser(
+ prog="aliens_eye selfcheck",
+ description="Validate detection accuracy against accounts known to exist",
+ )
+ parser.add_argument("-v", "--verbose", action="store_true", help="Enable verbose output")
+ parser.add_argument("--no-ml", action="store_true", help="Disable ML detection")
+ parser.add_argument("--model", type=str, help="Path to a custom ML model JSON")
+ parser.add_argument("--sites", type=str, help="Path to a custom sites JSON")
+ parser.add_argument("--plain", action="store_true", help="Plain output")
+ return parser
+
+
+def build_train_parser() -> ArgumentParser:
+ parser = ArgumentParser(
+ prog="aliens_eye train",
+ description="Collect training data and fit the detection model",
+ )
+ sub = parser.add_subparsers(dest="train_command", required=True)
+
+ collect = sub.add_parser("collect", help="Scan ground-truth accounts to build a labeled dataset")
+ collect.add_argument("--out", type=str, default="seed_dataset.csv", help="Output CSV path")
+ collect.add_argument("--negatives", type=int, default=2, help="Negative samples per site")
+ collect.add_argument("--seed", type=int, default=None, help="Random seed")
+ collect.add_argument("--sites", type=str, help="Path to a custom sites JSON")
+ collect.add_argument("-v", "--verbose", action="store_true")
+
+ fit = sub.add_parser("fit", help="Train the model from a labeled dataset CSV")
+ fit.add_argument("--data", type=str, required=True, help="Labeled dataset CSV")
+ fit.add_argument("--out", type=str, default="model.json", help="Output model JSON path")
+ fit.add_argument("-v", "--verbose", action="store_true")
+ return parser
+
+
+def parse_formats(value: str) -> list[str]:
+ formats = [item.strip().lower() for item in value.split(",") if item.strip()]
+ if not formats:
+ return ["json"]
+ if "all" in formats:
+ return ["all"]
+ return formats
+
+
+def parse_formats_value(value: Any) -> list[str]:
+ if value is None:
+ return ["json"]
+ if isinstance(value, list):
+ return parse_formats(",".join(str(item) for item in value))
+ return parse_formats(str(value))
+
+
+def parse_site_list(value: str | None) -> list[str] | None:
+ if not value:
+ return None
+ items = [item.strip() for item in value.split(",") if item.strip()]
+ return items or None
+
+
+def prompt_scan_profile() -> str:
+ console = get_console()
+ console.print("\n[green]Select scan profile:[/green]")
+ console.print(" 1. [blue]Quick[/blue] - fewer retries, shorter timeouts")
+ console.print(" 2. [yellow]Full[/yellow] - balanced defaults")
+ console.print(" 3. [red]Aggressive[/red] - higher concurrency, Playwright")
+ choice = Prompt.ask("Enter choice", choices=["1", "2", "3"], default="2", console=console)
+ return {"1": "quick", "2": "full", "3": "aggressive"}[choice]
+
+
+def prompt_scan_level() -> str:
+ console = get_console()
+ console.print("\n[green]Select scan level:[/green]")
+ console.print(" 1. [blue]Basic[/blue] - Just the username as entered")
+ console.print(" 2. [yellow]Intermediate[/yellow] - Adds variations")
+ console.print(" 3. [red]Advanced[/red] - Adds common prefixes/suffixes")
+ choice = Prompt.ask("Enter choice", choices=["1", "2", "3"], default="1", console=console)
+ return {"1": "basic", "2": "intermediate", "3": "advanced"}[choice]
+
+
+def apply_scan_profile(config: ScannerConfig, profile: str, args) -> None:
+ presets = {
+ "quick": {
+ "concurrent": 25,
+ "timeout": 6.0,
+ "retries": 1,
+ "backoff_base": 0.3,
+ "backoff_cap": 4.0,
+ "rate_limit_delay": 0.1,
+ "max_content_bytes": 60_000,
+ "use_playwright": False,
+ },
+ "aggressive": {
+ "concurrent": 80,
+ "timeout": 15.0,
+ "retries": 3,
+ "backoff_base": 0.4,
+ "backoff_cap": 12.0,
+ "rate_limit_delay": 0.05,
+ "max_content_bytes": 150_000,
+ "use_playwright": True,
+ },
+ }
+ preset = presets.get(profile)
+ if not preset:
+ return
+
+ if args.concurrent is None:
+ config.concurrent = preset["concurrent"]
+ if args.timeout is None:
+ config.timeout = preset["timeout"]
+ if args.retries is None:
+ config.retries = preset["retries"]
+ if args.backoff_base is None:
+ config.backoff_base = preset["backoff_base"]
+ if args.backoff_cap is None:
+ config.backoff_cap = preset["backoff_cap"]
+ if args.rate_limit is None:
+ config.rate_limit_delay = preset["rate_limit_delay"]
+ if args.max_bytes is None:
+ config.max_content_bytes = preset["max_content_bytes"]
+ if not args.playwright:
+ config.use_playwright = preset["use_playwright"]
+
+
+def load_config(path_value: str | None, logger) -> dict:
+ if path_value:
+ candidates = [Path(path_value)]
+ else:
+ candidates = [
+ Path("config.json"),
+ Path(user_config_dir("aliens_eye")) / "config.json",
+ ]
+
+ for path in candidates:
+ if path.exists():
+ try:
+ with path.open("r", encoding="utf-8") as handle:
+ data = json.load(handle)
+ if isinstance(data, dict):
+ logger.info("Loaded config from %s", path)
+ return data
+ except Exception as exc:
+ logger.warning("Failed to read config %s: %s", path, exc)
+ return {}
+ return {}
+
+
+def apply_config(config: ScannerConfig, data: dict) -> dict:
+ if not isinstance(data, dict):
+ return {"level": None, "output_formats": None}
+
+ field_map = {
+ "concurrent": "concurrent",
+ "timeout": "timeout",
+ "max_content_bytes": "max_content_bytes",
+ "retries": "retries",
+ "backoff_base": "backoff_base",
+ "backoff_cap": "backoff_cap",
+ "jitter": "jitter",
+ "rate_limit_delay": "rate_limit_delay",
+ "fingerprints_path": "fingerprints_path",
+ "output_dir": "output_dir",
+ "use_playwright": "use_playwright",
+ "max_fingerprints_per_label": "max_fingerprints_per_label",
+ "proxy": "proxy",
+ "use_ml": "use_ml",
+ "exclude_nsfw": "exclude_nsfw",
+ }
+ path_fields = {"fingerprints_path", "output_dir"}
+
+ for key, attr in field_map.items():
+ if key not in data:
+ continue
+ value = data.get(key)
+ if value is None:
+ continue
+ if attr in path_fields:
+ setattr(config, attr, Path(str(value)))
+ else:
+ setattr(config, attr, value)
+
+ return {
+ "level": data.get("level"),
+ "output_formats": data.get("output_formats"),
+ }
+
+
+def apply_cli_overrides(config: ScannerConfig, args) -> None:
+ if args.concurrent:
+ config.concurrent = args.concurrent
+ if args.timeout:
+ config.timeout = args.timeout
+ if args.retries is not None:
+ config.retries = args.retries
+ if args.backoff_base is not None:
+ config.backoff_base = args.backoff_base
+ if args.backoff_cap is not None:
+ config.backoff_cap = args.backoff_cap
+ if args.rate_limit is not None:
+ config.rate_limit_delay = args.rate_limit
+ if args.max_bytes is not None:
+ config.max_content_bytes = args.max_bytes
+ if args.output:
+ config.output_dir = Path(args.output)
+ if args.playwright:
+ config.use_playwright = True
+ if args.tor:
+ config.proxy = TOR_PROXY
+ elif args.proxy:
+ config.proxy = args.proxy
+ if args.no_ml:
+ config.use_ml = False
+ if args.model:
+ config.model_path = Path(args.model)
+ if args.sites:
+ config.sites_path = Path(args.sites)
+ if args.no_nsfw:
+ config.exclude_nsfw = True
+ config.include_sites = parse_site_list(args.site)
+ config.exclude_sites = parse_site_list(args.exclude_site)
+ if args.plain:
+ config.plain_output = True
+
+
+def prepare_sites(config: ScannerConfig, logger) -> dict:
+ sites_data = load_sites_data(config.sites_path)
+ if not sites_data:
+ logger.error("Could not load sites.json.")
+ return {}
+
+ exclude = list(config.exclude_sites or [])
+ if config.exclude_nsfw:
+ exclude.extend(load_nsfw_sites())
+ sites_data = filter_sites(sites_data, config.include_sites, exclude or None)
+ if not sites_data:
+ logger.error("Site filters matched no sites.")
+ return sites_data
+
+
+def customize_config_interactive(config: ScannerConfig, formats: list[str], args) -> list[str]:
+ console = get_console()
+ if args.concurrent is None:
+ config.concurrent = IntPrompt.ask(
+ "Max concurrent connections", default=config.concurrent, console=console
+ )
+ if args.timeout is None:
+ config.timeout = FloatPrompt.ask(
+ "Request timeout (seconds)", default=config.timeout, console=console
+ )
+ if args.retries is None:
+ config.retries = IntPrompt.ask("Retries on failure", default=config.retries, console=console)
+ if args.backoff_base is None:
+ config.backoff_base = FloatPrompt.ask(
+ "Backoff base (seconds)", default=config.backoff_base, console=console
+ )
+ if args.backoff_cap is None:
+ config.backoff_cap = FloatPrompt.ask(
+ "Backoff cap (seconds)", default=config.backoff_cap, console=console
+ )
+ if args.rate_limit is None:
+ config.rate_limit_delay = FloatPrompt.ask(
+ "Min delay per domain (seconds)", default=config.rate_limit_delay, console=console
+ )
+ if args.max_bytes is None:
+ config.max_content_bytes = IntPrompt.ask(
+ "Max response bytes to parse", default=config.max_content_bytes, console=console
+ )
+ if args.output is None:
+ value = Prompt.ask("Output directory", default=str(config.output_dir), console=console)
+ config.output_dir = Path(value)
+ if args.format is None:
+ value = Prompt.ask(
+ "Output formats (json,csv,html,md,all)",
+ default=",".join(formats),
+ console=console,
+ )
+ formats = parse_formats(value)
+ if not args.playwright:
+ config.use_playwright = Confirm.ask(
+ "Enable Playwright fallback for Maybe results",
+ default=config.use_playwright,
+ console=console,
+ )
+ return formats
+
+
+async def run_scan(args) -> None:
+ logger = setup_logger(args.verbose)
+ config_data = load_config(args.config, logger)
+ config = ScannerConfig()
+ defaults = apply_config(config, config_data)
+ apply_cli_overrides(config, args)
+ if config.plain_output:
+ set_plain(True)
+ console = get_console()
+
+ exporter_dir = config.output_dir
+ if args.read:
+ ResultsExporter(exporter_dir).display_results_from_file(args.read)
+ return
+
+ sites_data = prepare_sites(config, logger)
+ if not sites_data:
+ return
+
+ display_banner(len(sites_data))
+
+ if args.username:
+ usernames = args.username
+ else:
+ username = Prompt.ask("[green]Enter username to scan[/green]", console=console)
+ usernames = [username]
+
+ detector = Detector()
+ if config.use_ml:
+ detector.load_model(logger, config.model_path)
+ if detector.model is None:
+ console.print("[dim]ML model unavailable; falling back to heuristics.[/dim]")
+ extractor = FeatureExtractor()
+ fingerprints = FingerprintStore(config.fingerprints_path, config.max_fingerprints_per_label)
+ fingerprints.load(logger)
+
+ interactive = sys.stdin.isatty() and not args.read
+
+ scan_level = args.level or defaults.get("level")
+ if scan_level not in {"basic", "intermediate", "advanced"}:
+ scan_level = None
+ if not scan_level:
+ scan_level = prompt_scan_level() if interactive else "basic"
+
+ formats_value = args.format if args.format is not None else defaults.get("output_formats")
+ formats = parse_formats_value(formats_value)
+
+ profile = args.profile
+ if interactive and not profile:
+ profile = prompt_scan_profile()
+ if profile:
+ apply_scan_profile(config, profile, args)
+
+ if interactive and not args.profile and Confirm.ask(
+ "Customize scan settings", default=False, console=console
+ ):
+ formats = customize_config_interactive(config, formats, args)
+
+ browser_fallback = None
+ if config.use_playwright:
+ browser_fallback = BrowserFallback(config.timeout, DEFAULT_USER_AGENT)
+
+ exporter = ResultsExporter(config.output_dir)
+ scanner = UsernameScanner(
+ sites_data=sites_data,
+ config=config,
+ extractor=extractor,
+ detector=detector,
+ fingerprints=fingerprints,
+ logger=logger,
+ browser_fallback=browser_fallback,
+ )
+
+ try:
+ for username in usernames:
+ if not username or len(username) < 2:
+ logger.error("Invalid username. Please provide a valid username.")
+ continue
+
+ all_results = await scanner.scan_with_variations(username, scan_level)
+ written = exporter.save_results(username, scan_level, all_results, formats)
+
+ files_list = ", ".join(str(path) for path in written)
+ console.print(f"\n[green]Results saved to:[/green] [blue]{files_list}[/blue]")
+ total_found = sum(
+ sum(1 for r in results if r["status"] == "Found")
+ for results in all_results.values()
+ )
+ console.print(
+ f"[green]Summary: Found {total_found} profiles across "
+ f"{len(all_results)} username variations[/green]"
+ )
+ finally:
+ fingerprints.save()
+ if browser_fallback:
+ await browser_fallback.close()
+
+
+async def run_selfcheck_command(args) -> None:
+ from aliens_eye.selfcheck import run_selfcheck
+
+ if args.plain:
+ set_plain(True)
+ logger = setup_logger(args.verbose)
+ config = ScannerConfig(retries=1)
+ sites_data = load_sites_data(Path(args.sites) if args.sites else None)
+ detector = Detector()
+ if not args.no_ml:
+ detector.load_model(logger, Path(args.model) if args.model else None)
+ await run_selfcheck(sites_data, detector, config, logger)
+
+
+async def run_train_command(args) -> None:
+ logger = setup_logger(args.verbose)
+ console = get_console()
+ if args.train_command == "collect":
+ from aliens_eye.ml.collect import collect_dataset
+
+ sites_data = load_sites_data(Path(args.sites) if args.sites else None)
+ count = await collect_dataset(
+ sites_data,
+ Path(args.out),
+ logger,
+ negatives_per_site=args.negatives,
+ seed=args.seed,
+ )
+ console.print(f"[green]Collected {count} labeled samples -> {args.out}[/green]")
+ elif args.train_command == "fit":
+ from aliens_eye.ml.train import train_model
+
+ model = train_model(Path(args.data), Path(args.out), logger)
+ cv = model["training"].get("cv_accuracy")
+ console.print(
+ f"[green]Model trained on {model['training']['samples']} samples"
+ + (f" (cv accuracy {cv:.1%})" if cv is not None else "")
+ + f" -> {args.out}[/green]"
+ )
+
+
+def main() -> None:
+ argv = sys.argv[1:]
+ console = get_console()
+ try:
+ if argv and argv[0] == "selfcheck":
+ args = build_selfcheck_parser().parse_args(argv[1:])
+ asyncio.run(run_selfcheck_command(args))
+ elif argv and argv[0] == "train":
+ args = build_train_parser().parse_args(argv[1:])
+ asyncio.run(run_train_command(args))
+ else:
+ args = build_parser().parse_args(argv)
+ asyncio.run(run_scan(args))
+ except KeyboardInterrupt:
+ console.print("\n[red]Interrupted by user.[/red]")
+ sys.exit(0)
+ except Exception as exc:
+ console.print(f"[red]Unexpected error: {exc}[/red]")
+ sys.exit(1)
+
+
+if __name__ == "__main__":
+ main()
diff --git a/core/__init__.py b/src/aliens_eye/core/__init__.py
similarity index 100%
rename from core/__init__.py
rename to src/aliens_eye/core/__init__.py
diff --git a/core/analyzer.py b/src/aliens_eye/core/analyzer.py
similarity index 93%
rename from core/analyzer.py
rename to src/aliens_eye/core/analyzer.py
index 7b364be..02a8299 100644
--- a/core/analyzer.py
+++ b/src/aliens_eye/core/analyzer.py
@@ -1,5 +1,5 @@
from dataclasses import dataclass
-from typing import Any, Dict, List
+from typing import Any
from urllib.parse import urlparse
from selectolax.parser import HTMLParser
@@ -16,9 +16,9 @@ from .config import (
@dataclass
class FeatureBundle:
- features: Dict[str, float]
- signals: Dict[str, Any]
- fingerprint: Dict[str, Any]
+ features: dict[str, float]
+ signals: dict[str, Any]
+ fingerprint: dict[str, Any]
class FeatureExtractor:
@@ -26,10 +26,10 @@ class FeatureExtractor:
def __init__(
self,
- error_keywords: List[str] | None = None,
- positive_keywords: List[str] | None = None,
- meta_keywords: List[str] | None = None,
- auth_patterns: List[str] | None = None,
+ error_keywords: list[str] | None = None,
+ positive_keywords: list[str] | None = None,
+ meta_keywords: list[str] | None = None,
+ auth_patterns: list[str] | None = None,
) -> None:
self.error_keywords = error_keywords or ERROR_KEYWORDS
self.positive_keywords = positive_keywords or POSITIVE_KEYWORDS
@@ -44,7 +44,7 @@ class FeatureExtractor:
site_name: str,
http_code: int,
response_time: float,
- headers: Dict[str, str] | None,
+ headers: dict[str, str] | None,
redirect_count: int,
) -> FeatureBundle:
content = content or ""
@@ -67,7 +67,7 @@ class FeatureExtractor:
title_node = tree.css_first("title")
title_text = title_node.text().strip() if title_node else ""
- meta_contents: List[str] = []
+ meta_contents: list[str] = []
for node in tree.css("meta"):
content_value = node.attributes.get("content")
if content_value:
diff --git a/core/browser.py b/src/aliens_eye/core/browser.py
similarity index 93%
rename from core/browser.py
rename to src/aliens_eye/core/browser.py
index 67c6c4f..aa87445 100644
--- a/core/browser.py
+++ b/src/aliens_eye/core/browser.py
@@ -1,5 +1,4 @@
import asyncio
-from typing import Optional, Tuple
class BrowserFallback:
@@ -31,7 +30,7 @@ class BrowserFallback:
if self._playwright:
await self._playwright.stop()
- async def fetch(self, url: str) -> Tuple[str, str]:
+ async def fetch(self, url: str) -> tuple[str, str]:
if not self._context:
await self.start()
diff --git a/core/config.py b/src/aliens_eye/core/config.py
similarity index 82%
rename from core/config.py
rename to src/aliens_eye/core/config.py
index 659298e..d397029 100644
--- a/core/config.py
+++ b/src/aliens_eye/core/config.py
@@ -1,6 +1,8 @@
-from dataclasses import dataclass
+from dataclasses import dataclass, field
from pathlib import Path
+from platformdirs import user_cache_dir
+
DEFAULT_USER_AGENT = (
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) "
"AppleWebKit/537.36 Chrome/115.0.0.0 Safari/537.36"
@@ -111,6 +113,10 @@ PROFILE_CLASS_HINTS = ["profile", "user", "account"]
ERROR_CLASS_HINTS = ["error", "not-found", "missing", "unavailable"]
+def default_fingerprints_path() -> Path:
+ return Path(user_cache_dir("aliens_eye")) / "fingerprints.json"
+
+
@dataclass
class ScannerConfig:
concurrent: int = 50
@@ -121,7 +127,15 @@ class ScannerConfig:
backoff_cap: float = 8.0
jitter: float = 0.2
rate_limit_delay: float = 0.2
- fingerprints_path: Path = Path("cache/fingerprints.json")
+ fingerprints_path: Path = field(default_factory=default_fingerprints_path)
output_dir: Path = Path("results")
use_playwright: bool = False
max_fingerprints_per_label: int = 50
+ proxy: str | None = None
+ include_sites: list[str] | None = None
+ exclude_sites: list[str] | None = None
+ exclude_nsfw: bool = False
+ sites_path: Path | None = None
+ model_path: Path | None = None
+ use_ml: bool = True
+ plain_output: bool = False
diff --git a/src/aliens_eye/core/detector.py b/src/aliens_eye/core/detector.py
new file mode 100644
index 0000000..f51da66
--- /dev/null
+++ b/src/aliens_eye/core/detector.py
@@ -0,0 +1,126 @@
+import math
+from dataclasses import dataclass
+from pathlib import Path
+
+
+@dataclass
+class DetectionResult:
+ status: str
+ confidence: int
+ score: float
+ method: str
+ probability: float | None
+
+
+# Blend weights and probability thresholds, calibrated by out-of-fold grid
+# search on the seed dataset and validated against the selfcheck set.
+ML_WEIGHT = 0.4
+HEURISTIC_WEIGHT = 0.6
+HEURISTIC_SIGMOID_SCALE = 6.0
+FOUND_THRESHOLD = 0.6
+NOT_FOUND_THRESHOLD = 0.35
+
+
+def _sigmoid(z: float) -> float:
+ z = max(-50.0, min(50.0, z))
+ return 1.0 / (1.0 + math.exp(-z))
+
+
+class Detector:
+ """Detection combining a trained ML model with heuristic scoring.
+
+ Falls back to heuristics alone when no model is available.
+ """
+
+ def __init__(self) -> None:
+ self.model = None
+
+ def load_model(self, logger, model_path: Path | None = None) -> None:
+ from aliens_eye.ml.inference import MLModel, ModelError
+
+ try:
+ self.model = MLModel.load(model_path)
+ logger.debug("Loaded ML model (version %s)", self.model.version)
+ except (FileNotFoundError, ModelError, OSError) as exc:
+ self.model = None
+ logger.debug("ML model unavailable, using heuristics only: %s", exc)
+
+ def predict(self, features: dict[str, float]) -> DetectionResult:
+ heuristic_score = self._heuristic_score(features)
+ heuristic_prob = _sigmoid(heuristic_score / HEURISTIC_SIGMOID_SCALE)
+ features["heuristic_score"] = heuristic_score
+
+ if self.model is not None:
+ ml_prob = self.model.predict_proba(features)
+ probability = ML_WEIGHT * ml_prob + HEURISTIC_WEIGHT * heuristic_prob
+ method = "ml+heuristic"
+ else:
+ probability = heuristic_prob
+ method = "heuristic"
+
+ status, confidence = self._status_from_probability(probability)
+ return DetectionResult(
+ status=status,
+ confidence=confidence,
+ score=heuristic_score,
+ method=method,
+ probability=round(probability, 4),
+ )
+
+ def _heuristic_score(self, features: dict[str, float]) -> float:
+ score = 0.0
+ score -= features.get("error_keyword_count", 0.0) * 2
+ score += features.get("positive_keyword_count", 0.0) * 1.5
+
+ if features.get("http_200", 0.0) > 0:
+ score += 5
+ if features.get("http_404", 0.0) > 0:
+ score -= 10
+ if features.get("http_5xx", 0.0) > 0:
+ score -= 3
+ if features.get("http_3xx", 0.0) > 0:
+ if features.get("has_auth_pattern", 0.0) > 0:
+ score -= 3
+ if features.get("has_username_in_path", 0.0) > 0:
+ score += 2
+
+ if features.get("has_username_in_path", 0.0) > 0 and features.get("is_homepage", 0.0) == 0:
+ score += 3
+ if features.get("is_homepage", 0.0) > 0 and features.get("http_200", 0.0) > 0:
+ score -= 5
+
+ score -= features.get("error_section_count", 0.0) * 3
+ score += features.get("profile_section_count", 0.0) * 4
+
+ if features.get("img_count", 0.0) > 5:
+ score += 2
+ if features.get("form_count", 0.0) > 0 and features.get("input_count", 0.0) > 2:
+ score -= 2
+
+ if features.get("meta_has_username", 0.0) > 0:
+ score += 5
+ score -= features.get("meta_error_keyword_count", 0.0) * 3
+ score += features.get("meta_positive_keyword_count", 0.0) * 2
+
+ score += features.get("fingerprint_match_found", 0.0) * 2
+ score -= features.get("fingerprint_match_not_found", 0.0) * 2
+
+ return score
+
+ @staticmethod
+ def _status_from_probability(probability: float) -> tuple[str, int]:
+ if probability > FOUND_THRESHOLD:
+ status = "Found"
+ distance = (probability - FOUND_THRESHOLD) / (1.0 - FOUND_THRESHOLD)
+ elif probability < NOT_FOUND_THRESHOLD:
+ status = "Not Found"
+ distance = (NOT_FOUND_THRESHOLD - probability) / NOT_FOUND_THRESHOLD
+ else:
+ status = "Maybe"
+ center = (FOUND_THRESHOLD + NOT_FOUND_THRESHOLD) / 2
+ half_band = (FOUND_THRESHOLD - NOT_FOUND_THRESHOLD) / 2
+ distance = 1.0 - abs(probability - center) / half_band
+ return status, int(50 + 20 * max(0.0, min(1.0, distance)))
+
+ confidence = int(60 + 39 * max(0.0, min(1.0, distance)))
+ return status, confidence
diff --git a/src/aliens_eye/core/exporter.py b/src/aliens_eye/core/exporter.py
new file mode 100644
index 0000000..2bb98b1
--- /dev/null
+++ b/src/aliens_eye/core/exporter.py
@@ -0,0 +1,345 @@
+import csv
+import json
+from datetime import datetime
+from pathlib import Path
+from typing import Any
+
+from rich.panel import Panel
+from rich.prompt import Prompt
+
+from aliens_eye.utils.console import build_results_table, get_console
+
+KNOWN_FORMATS = {"json", "csv", "html", "md", "markdown", "all"}
+
+
+class ResultsExporter:
+ """Save scan results in JSON, CSV, HTML, or Markdown formats."""
+
+ def __init__(self, output_dir: Path) -> None:
+ self.output_dir = output_dir
+ self.output_dir.mkdir(parents=True, exist_ok=True)
+ self.console = get_console()
+
+ def save_results(
+ self,
+ base_username: str,
+ level: str,
+ all_results: dict[str, list[dict[str, Any]]],
+ formats: list[str],
+ ) -> list[Path]:
+ timestamp = datetime.now().strftime("%Y%m%d_%H%M%S")
+ results_data = self._build_results_data(
+ base_username, level, all_results, timestamp
+ )
+ written: list[Path] = []
+ stem = f"{base_username}_{level}_{timestamp}"
+
+ if "json" in formats or "all" in formats:
+ json_path = self.output_dir / f"{stem}.json"
+ with json_path.open("w", encoding="utf-8") as handle:
+ json.dump(results_data, handle, indent=4)
+ written.append(json_path)
+
+ if "csv" in formats or "all" in formats:
+ csv_path = self.output_dir / f"{stem}.csv"
+ self._write_csv(csv_path, base_username, level, all_results)
+ written.append(csv_path)
+
+ if "html" in formats or "all" in formats:
+ html_path = self.output_dir / f"{stem}.html"
+ self._write_html(html_path, results_data)
+ written.append(html_path)
+
+ if "md" in formats or "markdown" in formats or "all" in formats:
+ md_path = self.output_dir / f"{stem}.md"
+ self._write_markdown(md_path, results_data)
+ written.append(md_path)
+
+ return written
+
+ def _build_results_data(
+ self,
+ base_username: str,
+ level: str,
+ all_results: dict[str, list[dict[str, Any]]],
+ timestamp: str,
+ ) -> dict[str, Any]:
+ variations_data: dict[str, Any] = {}
+ scan_summary = {
+ "base_username": base_username,
+ "scan_level": level,
+ "timestamp": timestamp,
+ "total_variations": len(all_results),
+ "total_sites_scanned": sum(len(results) for results in all_results.values()),
+ }
+
+ found_counts: dict[str, int] = {}
+ high_confidence_matches: dict[str, int] = {}
+
+ for username, results in all_results.items():
+ found_counts[username] = sum(1 for r in results if r["status"] == "Found")
+ high_confidence_matches[username] = sum(
+ 1
+ for r in results
+ if r.get("confidence", 0) >= 85 and r["status"] == "Found"
+ )
+ variations_data[username] = {
+ "scan_info": {
+ "username": username,
+ "sites_scanned": len(results),
+ "found": found_counts[username],
+ "maybe": sum(1 for r in results if r["status"] == "Maybe"),
+ "not_found": sum(
+ 1 for r in results if r["status"] == "Not Found"
+ ),
+ "errors": sum(
+ 1
+ for r in results
+ if r["status"] not in {"Found", "Not Found", "Maybe"}
+ ),
+ "high_confidence_matches": high_confidence_matches[username],
+ },
+ "sites": {
+ r["site"]: {
+ "status": r["status"],
+ "code": r["code"],
+ "url": r["url"],
+ "final_url": r.get("final_url", ""),
+ "response_time": r["response_time"],
+ "confidence": r.get("confidence", 0),
+ "ai_analysis": r.get("ai_analysis", {}),
+ }
+ for r in results
+ },
+ }
+
+ scan_summary["total_found"] = sum(found_counts.values())
+ scan_summary["total_high_confidence"] = sum(high_confidence_matches.values())
+ scan_summary["best_variations"] = sorted(
+ found_counts.items(), key=lambda x: x[1], reverse=True
+ )[:5]
+
+ return {"scan_summary": scan_summary, "variations": variations_data}
+
+ def _write_csv(
+ self,
+ path: Path,
+ base_username: str,
+ level: str,
+ all_results: dict[str, list[dict[str, Any]]],
+ ) -> None:
+ fieldnames = [
+ "base_username",
+ "variation",
+ "site",
+ "status",
+ "confidence",
+ "http_code",
+ "url",
+ "final_url",
+ "response_time",
+ ]
+ with path.open("w", newline="", encoding="utf-8") as handle:
+ writer = csv.DictWriter(handle, fieldnames=fieldnames)
+ writer.writeheader()
+ for variation, results in all_results.items():
+ for item in results:
+ writer.writerow(
+ {
+ "base_username": base_username,
+ "variation": variation,
+ "site": item["site"],
+ "status": item["status"],
+ "confidence": item.get("confidence", 0),
+ "http_code": item.get("code", 0),
+ "url": item.get("url", ""),
+ "final_url": item.get("final_url", ""),
+ "response_time": item.get("response_time", 0),
+ }
+ )
+
+ def _write_html(self, path: Path, results_data: dict[str, Any]) -> None:
+ summary = results_data.get("scan_summary", {})
+ variations = results_data.get("variations", {})
+
+ rows = []
+ for variation, data in variations.items():
+ for site, info in data.get("sites", {}).items():
+ rows.append(
+ f"<tr><td>{variation}</td><td>{site}</td><td>{info.get('status','')}</td>"
+ f"<td>{info.get('confidence',0)}</td><td>{info.get('code',0)}</td>"
+ f"<td><a href='{info.get('url','')}'>{info.get('url','')}</a></td></tr>"
+ )
+
+ html = f"""
+<!DOCTYPE html>
+<html lang="en">
+<head>
+<meta charset="utf-8">
+<title>Aliens Eye Report</title>
+<style>
+body {{ font-family: Arial, sans-serif; padding: 20px; }}
+summary, table {{ margin-top: 20px; }}
+
+table {{ border-collapse: collapse; width: 100%; }}
+th, td {{ border: 1px solid #ddd; padding: 8px; font-size: 12px; }}
+th {{ background-color: #f2f2f2; text-align: left; }}
+</style>
+</head>
+<body>
+<h1>Aliens Eye Report</h1>
+<p><strong>Base Username:</strong> {summary.get('base_username','')}</p>
+<p><strong>Scan Level:</strong> {summary.get('scan_level','')}</p>
+<p><strong>Total Variations:</strong> {summary.get('total_variations',0)}</p>
+<p><strong>Total Sites Scanned:</strong> {summary.get('total_sites_scanned',0)}</p>
+<p><strong>Total Found:</strong> {summary.get('total_found',0)}</p>
+<p><strong>Total High Confidence:</strong> {summary.get('total_high_confidence',0)}</p>
+
+<table>
+<thead>
+<tr>
+<th>Variation</th>
+<th>Site</th>
+<th>Status</th>
+<th>Confidence</th>
+<th>HTTP Code</th>
+<th>URL</th>
+</tr>
+</thead>
+<tbody>
+{''.join(rows)}
+</tbody>
+</table>
+</body>
+</html>
+"""
+ with path.open("w", encoding="utf-8") as handle:
+ handle.write(html)
+
+ def _write_markdown(self, path: Path, results_data: dict[str, Any]) -> None:
+ summary = results_data.get("scan_summary", {})
+ variations = results_data.get("variations", {})
+
+ lines = [
+ "# Aliens Eye Report",
+ "",
+ f"- **Base username:** `{summary.get('base_username', '')}`",
+ f"- **Scan level:** {summary.get('scan_level', '')}",
+ f"- **Timestamp:** {summary.get('timestamp', '')}",
+ f"- **Variations scanned:** {summary.get('total_variations', 0)}",
+ f"- **Sites scanned:** {summary.get('total_sites_scanned', 0)}",
+ f"- **Total found:** {summary.get('total_found', 0)}",
+ f"- **High confidence:** {summary.get('total_high_confidence', 0)}",
+ "",
+ ]
+
+ for variation, data in variations.items():
+ info = data.get("scan_info", {})
+ lines.extend(
+ [
+ f"## `{variation}`",
+ "",
+ f"Found: {info.get('found', 0)} | Maybe: {info.get('maybe', 0)} | "
+ f"Not Found: {info.get('not_found', 0)} | Errors: {info.get('errors', 0)}",
+ "",
+ "| Site | Status | Confidence | HTTP | URL |",
+ "| --- | --- | --- | --- | --- |",
+ ]
+ )
+ sites = sorted(
+ data.get("sites", {}).items(),
+ key=lambda item: (
+ {"Found": 0, "Maybe": 1}.get(item[1].get("status", ""), 2),
+ -item[1].get("confidence", 0),
+ ),
+ )
+ for site, site_info in sites:
+ status = site_info.get("status", "")
+ if status not in {"Found", "Maybe"}:
+ continue
+ lines.append(
+ f"| {site} | {status} | {site_info.get('confidence', 0)}% | "
+ f"{site_info.get('code', 0)} | {site_info.get('url', '')} |"
+ )
+ lines.append("")
+
+ path.write_text("\n".join(lines), encoding="utf-8")
+
+ def display_results_from_file(self, file_path: str) -> None:
+ try:
+ with open(file_path, encoding="utf-8") as handle:
+ data = json.load(handle)
+ except FileNotFoundError:
+ self.console.print(f"[red]File not found: {file_path}[/red]")
+ return
+ except json.JSONDecodeError:
+ self.console.print(f"[red]Invalid JSON file: {file_path}[/red]")
+ return
+
+ if "scan_summary" not in data or "variations" not in data:
+ self.console.print(f"[red]Unrecognized results file: {file_path}[/red]")
+ return
+
+ summary = data["scan_summary"]
+ body = (
+ f"[blue]Base username:[/blue] [bold yellow]{summary.get('base_username', 'Unknown')}[/bold yellow]\n"
+ f"[blue]Scan level:[/blue] {summary.get('scan_level', 'Unknown')}\n"
+ f"[blue]Variations:[/blue] {summary.get('total_variations', 0)} "
+ f"[blue]Sites scanned:[/blue] {summary.get('total_sites_scanned', 0)}\n"
+ f"[bold green]Found: {summary.get('total_found', 0)}[/bold green] "
+ f"[green]High confidence: {summary.get('total_high_confidence', 0)}[/green]"
+ )
+ self.console.print(Panel(body, title="Scan Results", border_style="green"))
+
+ best = summary.get("best_variations", [])
+ if best:
+ self.console.print("[blue]Best variations:[/blue]")
+ for username, count in best:
+ self.console.print(f" [yellow]{username}[/yellow]: [green]{count} profiles found[/green]")
+
+ names = list(data["variations"].keys())
+ self.console.print("\n[blue]Available variations:[/blue]")
+ for i, username in enumerate(names, 1):
+ self.console.print(f" {i}. [yellow]{username}[/yellow]")
+
+ choice = Prompt.ask(
+ "\nEnter number for details ('all' for all, Enter to exit)",
+ default="",
+ console=self.console,
+ ).strip()
+ if choice.lower() == "all":
+ for username, variation_data in data["variations"].items():
+ self._display_variation_results(username, variation_data)
+ elif choice.isdigit():
+ idx = int(choice) - 1
+ if 0 <= idx < len(names):
+ self._display_variation_results(names[idx], data["variations"][names[idx]])
+
+ def _display_variation_results(self, username: str, variation_data: dict[str, Any]) -> None:
+ scan_info = variation_data.get("scan_info", {})
+ body = (
+ f"[bold green]Found: {scan_info.get('found', 0)}[/bold green] "
+ f"[yellow]Maybe: {scan_info.get('maybe', 0)}[/yellow] "
+ f"[red]Not Found: {scan_info.get('not_found', 0)}[/red] "
+ f"[dim]Errors: {scan_info.get('errors', 0)}[/dim]"
+ )
+ self.console.print(Panel(body, title=f"Variation: {username}", border_style="blue"))
+
+ rows = [
+ {
+ "site": site,
+ "status": info.get("status", "Unknown"),
+ "confidence": info.get("confidence", 0),
+ "code": info.get("code", 0),
+ "url": info.get("url", ""),
+ "response_time": info.get("response_time", 0),
+ }
+ for site, info in variation_data.get("sites", {}).items()
+ ]
+ rows.sort(
+ key=lambda r: (
+ {"Found": 0, "Maybe": 1, "Not Found": 2}.get(r["status"], 3),
+ -r["confidence"],
+ )
+ )
+ self.console.print(build_results_table(rows))
diff --git a/core/features.py b/src/aliens_eye/core/features.py
similarity index 88%
rename from core/features.py
rename to src/aliens_eye/core/features.py
index c5d9081..e3d6789 100644
--- a/core/features.py
+++ b/src/aliens_eye/core/features.py
@@ -1,4 +1,3 @@
-from typing import Dict, List
FEATURE_SCHEMA = [
"http_200",
@@ -25,9 +24,10 @@ FEATURE_SCHEMA = [
"redirect_count",
"fingerprint_match_found",
"fingerprint_match_not_found",
+ "heuristic_score",
]
-def vectorize_features(features: Dict[str, float]) -> List[float]:
+def vectorize_features(features: dict[str, float]) -> list[float]:
"""Return features as an ordered list aligned with FEATURE_SCHEMA."""
return [float(features.get(name, 0.0)) for name in FEATURE_SCHEMA]
diff --git a/core/fingerprints.py b/src/aliens_eye/core/fingerprints.py
similarity index 88%
rename from core/fingerprints.py
rename to src/aliens_eye/core/fingerprints.py
index 65f76cf..83f452f 100644
--- a/core/fingerprints.py
+++ b/src/aliens_eye/core/fingerprints.py
@@ -2,7 +2,7 @@ import hashlib
import json
from json import JSONDecodeError
from pathlib import Path
-from typing import Any, Dict, List
+from typing import Any
def _normalize(text: str) -> str:
@@ -16,7 +16,7 @@ def _hash_text(text: str) -> str:
return hashlib.sha256(normalized.encode("utf-8")).hexdigest()
-def build_fingerprint(raw: Dict[str, Any]) -> Dict[str, str]:
+def build_fingerprint(raw: dict[str, Any]) -> dict[str, str]:
"""Convert raw fingerprint inputs into hashed signatures."""
title_hash = _hash_text(str(raw.get("title", "")))
meta_hash = _hash_text(str(raw.get("meta_text", "")))
@@ -36,7 +36,7 @@ class FingerprintStore:
def __init__(self, path: Path, max_entries_per_label: int = 50) -> None:
self.path = path
self.max_entries_per_label = max_entries_per_label
- self.data: Dict[str, Any] = {"sites": {}}
+ self.data: dict[str, Any] = {"sites": {}}
def load(self, logger=None) -> None:
if not self.path.exists():
@@ -56,11 +56,11 @@ class FingerprintStore:
with self.path.open("w", encoding="utf-8") as handle:
json.dump(self.data, handle, indent=2, ensure_ascii=True)
- def _ensure_site(self, site: str) -> Dict[str, List[Dict[str, str]]]:
+ def _ensure_site(self, site: str) -> dict[str, list[dict[str, str]]]:
sites = self.data.setdefault("sites", {})
return sites.setdefault(site, {"found": [], "not_found": []})
- def add(self, site: str, label: str, fingerprint: Dict[str, str]) -> None:
+ def add(self, site: str, label: str, fingerprint: dict[str, str]) -> None:
if label not in {"found", "not_found"}:
return
site_entry = self._ensure_site(site)
@@ -72,7 +72,7 @@ class FingerprintStore:
if len(entries) > self.max_entries_per_label:
site_entry[label] = entries[-self.max_entries_per_label :]
- def score(self, site: str, fingerprint: Dict[str, str]) -> Dict[str, int]:
+ def score(self, site: str, fingerprint: dict[str, str]) -> dict[str, int]:
site_entry = self.data.get("sites", {}).get(site, {})
found_entries = site_entry.get("found", [])
missing_entries = site_entry.get("not_found", [])
@@ -87,7 +87,7 @@ class FingerprintStore:
}
def _count_matches(
- self, entries: List[Dict[str, str]], fingerprint: Dict[str, str]
+ self, entries: list[dict[str, str]], fingerprint: dict[str, str]
) -> int:
score = 0
for entry in entries:
@@ -102,7 +102,7 @@ class FingerprintStore:
return score
@staticmethod
- def _fingerprint_key(fingerprint: Dict[str, str]) -> str:
+ def _fingerprint_key(fingerprint: dict[str, str]) -> str:
return "|".join(
[
fingerprint.get("title_hash", ""),
diff --git a/core/http.py b/src/aliens_eye/core/http.py
similarity index 84%
rename from core/http.py
rename to src/aliens_eye/core/http.py
index 6b54c80..25132e7 100644
--- a/core/http.py
+++ b/src/aliens_eye/core/http.py
@@ -2,13 +2,12 @@ import asyncio
import random
import time
from dataclasses import dataclass
-from typing import Dict, Optional
from urllib.parse import urlparse
import aiohttp
-from .rate_limit import DomainRateLimiter
from .config import ScannerConfig
+from .rate_limit import DomainRateLimiter
@dataclass
@@ -18,8 +17,8 @@ class FetchResult:
status: int
content: str
response_time: float
- headers: Dict[str, str]
- error: Optional[str]
+ headers: dict[str, str]
+ error: str | None
redirect_count: int
@@ -27,7 +26,7 @@ def _should_retry(status: int) -> bool:
return status in {408, 429, 500, 502, 503, 504}
-def _parse_retry_after(headers: Dict[str, str]) -> Optional[float]:
+def _parse_retry_after(headers: dict[str, str]) -> float | None:
value = headers.get("Retry-After")
if not value:
return None
@@ -46,7 +45,7 @@ async def fetch_url(
) -> FetchResult:
error_message = None
last_status = 0
- last_headers: Dict[str, str] = {}
+ last_headers: dict[str, str] = {}
final_url = url
redirect_count = 0
@@ -58,8 +57,16 @@ async def fetch_url(
parsed.netloc, config.rate_limit_delay, retry_after
)
+ # SOCKS proxies are handled by the session connector; only plain
+ # HTTP(S) proxies go through aiohttp's per-request proxy support.
+ http_proxy = None
+ if config.proxy and config.proxy.lower().startswith(("http://", "https://")):
+ http_proxy = config.proxy
+
start_time = time.monotonic()
- async with session.get(url, timeout=config.timeout, allow_redirects=True) as response:
+ async with session.get(
+ url, timeout=config.timeout, allow_redirects=True, proxy=http_proxy
+ ) as response:
raw = await response.content.read(config.max_content_bytes)
encoding = response.charset or "utf-8"
content = raw.decode(encoding, errors="ignore")
diff --git a/core/rate_limit.py b/src/aliens_eye/core/rate_limit.py
similarity index 88%
rename from core/rate_limit.py
rename to src/aliens_eye/core/rate_limit.py
index 572349d..4cbdd3c 100644
--- a/core/rate_limit.py
+++ b/src/aliens_eye/core/rate_limit.py
@@ -1,14 +1,13 @@
import asyncio
import time
-from typing import Dict
class DomainRateLimiter:
"""Simple per-domain rate limiting with retry-after support."""
def __init__(self) -> None:
- self._locks: Dict[str, asyncio.Lock] = {}
- self._next_allowed: Dict[str, float] = {}
+ self._locks: dict[str, asyncio.Lock] = {}
+ self._next_allowed: dict[str, float] = {}
self._global_lock = asyncio.Lock()
async def wait_for_slot(self, domain: str, min_delay: float, retry_after: float | None) -> None:
diff --git a/core/scanner.py b/src/aliens_eye/core/scanner.py
similarity index 56%
rename from core/scanner.py
rename to src/aliens_eye/core/scanner.py
index b5fdc36..8cb32d4 100644
--- a/core/scanner.py
+++ b/src/aliens_eye/core/scanner.py
@@ -2,11 +2,14 @@ import asyncio
import json
import time
from dataclasses import dataclass
+from importlib import resources
from pathlib import Path
-from typing import Any, Dict, List, Tuple
+from typing import Any
import aiohttp
+from aliens_eye.utils.console import ScanView, get_console
+
from .analyzer import FeatureExtractor
from .browser import BrowserFallback
from .config import DEFAULT_HEADERS, ScannerConfig
@@ -15,7 +18,6 @@ from .fingerprints import FingerprintStore, build_fingerprint
from .http import fetch_url
from .rate_limit import DomainRateLimiter
from .variations import generate_username_variations
-from utils.colors import COLORS
@dataclass
@@ -27,27 +29,58 @@ class ScanResult:
code: int
response_time: float
confidence: int
- ai_analysis: Dict[str, Any]
-
-
-def load_sites_data() -> Dict[str, str]:
- """Load sites data from common locations."""
- base_dir = Path(__file__).resolve().parents[1]
- bin_dir = Path(__file__).resolve().parents[2]
- possible_paths = [
- Path("/usr/local/bin/sites.json"),
- Path("/usr/local/etc/aliens_eye/sites.json"),
- Path("/etc/aliens_eye/sites.json"),
- Path("/data/data/com.termux/files/usr/bin/sites.json"),
- bin_dir / "sites.json",
- base_dir / "sites.json",
- Path("sites.json"),
- ]
- for path in possible_paths:
- if path.exists():
- with path.open("r", encoding="utf-8") as handle:
- return json.load(handle)
- return {}
+ ai_analysis: dict[str, Any]
+
+
+def load_sites_data(path: Path | None = None) -> dict[str, str]:
+ """Load site definitions from a custom path or the packaged sites.json."""
+ if path is not None:
+ with Path(path).open("r", encoding="utf-8") as handle:
+ return json.load(handle)
+ text = (resources.files("aliens_eye.data") / "sites.json").read_text("utf-8")
+ return json.loads(text)
+
+
+def load_nsfw_sites() -> list[str]:
+ """Names of sites flagged as NSFW, shipped as package data."""
+ try:
+ text = (resources.files("aliens_eye.data") / "nsfw_sites.json").read_text("utf-8")
+ return json.loads(text)
+ except (FileNotFoundError, json.JSONDecodeError):
+ return []
+
+
+def filter_sites(
+ sites: dict[str, str],
+ include: list[str] | None = None,
+ exclude: list[str] | None = None,
+) -> dict[str, str]:
+ """Filter sites by case-insensitive substring match on the site name."""
+ result = sites
+ if include:
+ terms = [t.lower() for t in include if t]
+ result = {
+ name: tmpl
+ for name, tmpl in result.items()
+ if any(term in name.lower() for term in terms)
+ }
+ if exclude:
+ terms = [t.lower() for t in exclude if t]
+ result = {
+ name: tmpl
+ for name, tmpl in result.items()
+ if not any(term in name.lower() for term in terms)
+ }
+ return result
+
+
+def build_connector(config: ScannerConfig, limit: int) -> aiohttp.BaseConnector:
+ """TCP connector, or a SOCKS proxy connector when a socks:// proxy is set."""
+ if config.proxy and config.proxy.lower().startswith(("socks4://", "socks5://")):
+ from aiohttp_socks import ProxyConnector
+
+ return ProxyConnector.from_url(config.proxy, limit=limit)
+ return aiohttp.TCPConnector(limit=limit)
class UsernameScanner:
@@ -55,7 +88,7 @@ class UsernameScanner:
def __init__(
self,
- sites_data: Dict[str, str],
+ sites_data: dict[str, str],
config: ScannerConfig,
extractor: FeatureExtractor,
detector: Detector,
@@ -70,81 +103,78 @@ class UsernameScanner:
self.fingerprints = fingerprints
self.logger = logger
self.browser_fallback = browser_fallback
+ self.console = get_console()
self.results_dir = config.output_dir
self.results_dir.mkdir(parents=True, exist_ok=True)
async def scan_with_variations(
self, base_username: str, level: str
- ) -> Dict[str, List[Dict[str, Any]]]:
+ ) -> dict[str, list[dict[str, Any]]]:
variations = generate_username_variations(base_username, level)
- all_results: Dict[str, List[Dict[str, Any]]] = {}
+ all_results: dict[str, list[dict[str, Any]]] = {}
- print(
- f"\n{COLORS['blue']}Scan level: {COLORS['yellow']}{level.upper()}"
- )
- print(
- f"{COLORS['blue']}Generated {len(variations)} username variations to scan"
+ self.console.print(
+ f"\n[blue]Scan level:[/blue] [bold yellow]{level.upper()}[/bold yellow]"
+ f" [blue]|[/blue] [blue]{len(variations)} username variation(s)[/blue]"
)
if len(variations) > 1:
preview = ", ".join(variations[:5])
more = f" and {len(variations) - 5} more..." if len(variations) > 5 else ""
- print(f"{COLORS['yellow']}Variations: {preview}{more}")
+ self.console.print(f"[dim]Variations: {preview}{more}[/dim]")
for username in variations:
- print(
- f"\n{COLORS['purple']}Scanning variation: {COLORS['yellow']}{username}{COLORS['reset']}"
- )
results = await self.scan_all_sites(username)
all_results[username] = results
return all_results
- async def scan_all_sites(self, username: str) -> List[Dict[str, Any]]:
- results: List[Dict[str, Any]] = []
+ async def scan_all_sites(self, username: str) -> list[dict[str, Any]]:
+ results: list[dict[str, Any]] = []
if not self.sites_data:
return results
conn_limit = max(1, min(self.config.concurrent, len(self.sites_data)))
rate_limiter = DomainRateLimiter()
- queue: asyncio.Queue[Tuple[str, str]] = asyncio.Queue()
+ queue: asyncio.Queue[tuple[str, str]] = asyncio.Queue()
for site, tmpl in self.sites_data.items():
queue.put_nowait((site, tmpl))
- print(
- f"\n{COLORS['purple']}Scanning '{COLORS['yellow']}{username}{COLORS['purple']}' across "
- f"{len(self.sites_data)} sites (max {conn_limit} concurrent connections)...{COLORS['reset']}\n"
- )
- self._print_table_header()
+ view = ScanView(self.console)
+ view.start(username, len(self.sites_data))
- connector = aiohttp.TCPConnector(limit=conn_limit)
+ connector = build_connector(self.config, conn_limit)
start_time = time.monotonic()
- async with aiohttp.ClientSession(
- headers=DEFAULT_HEADERS, connector=connector
- ) as session:
- workers = [
- asyncio.create_task(
- self._worker(queue, username, session, rate_limiter, results)
- )
- for _ in range(conn_limit)
- ]
- await queue.join()
- for worker in workers:
- worker.cancel()
- await asyncio.gather(*workers, return_exceptions=True)
+ try:
+ async with aiohttp.ClientSession(
+ headers=DEFAULT_HEADERS, connector=connector
+ ) as session:
+ workers = [
+ asyncio.create_task(
+ self._worker(queue, username, session, rate_limiter, results, view)
+ )
+ for _ in range(conn_limit)
+ ]
+ await queue.join()
+ for worker in workers:
+ worker.cancel()
+ await asyncio.gather(*workers, return_exceptions=True)
+ finally:
+ view.stop()
total_time = time.monotonic() - start_time
- print(f"\n{COLORS['green']}Scan completed in {total_time:.2f} seconds")
- self._print_summary(results)
+ view.render_results(results)
+ view.render_summary(results, total_time)
return results
async def _worker(
self,
- queue: asyncio.Queue[Tuple[str, str]],
+ queue: asyncio.Queue[tuple[str, str]],
username: str,
session: aiohttp.ClientSession,
rate_limiter: DomainRateLimiter,
- results: List[Dict[str, Any]],
+ results: list[dict[str, Any]],
+ view: ScanView,
) -> None:
while True:
try:
@@ -159,7 +189,6 @@ class UsernameScanner:
except Exception as exc:
url = self._format_url(site, tmpl, username)
self.logger.debug("Worker failed for %s: %s", site, exc)
- self._print_result_line(site, "Error", 0, 0, url, 0.0)
results.append(
{
"site": site,
@@ -173,6 +202,8 @@ class UsernameScanner:
}
)
finally:
+ found = sum(1 for r in results if r["status"] == "Found")
+ view.advance(found)
queue.task_done()
async def _scan_site(
@@ -182,7 +213,7 @@ class UsernameScanner:
username: str,
session: aiohttp.ClientSession,
rate_limiter: DomainRateLimiter,
- ) -> Dict[str, Any]:
+ ) -> dict[str, Any]:
url = self._format_url(site_name, url_template, username)
fetch = await fetch_url(session, url, self.config, rate_limiter, self.logger)
@@ -193,7 +224,7 @@ class UsernameScanner:
else:
status_text = "Unknown"
- ai_analysis: Dict[str, Any] = {}
+ ai_analysis: dict[str, Any] = {}
confidence = 0
if not fetch.error:
try:
@@ -209,27 +240,15 @@ class UsernameScanner:
)
except Exception as exc:
self.logger.debug("Feature extraction failed for %s: %s", site_name, exc)
- status_text = "Error"
- fetch.status = 0
- fetch.final_url = fetch.final_url or url
- ai_analysis = {"error": str(exc)}
- self._print_result_line(
- site_name,
- status_text,
- confidence,
- fetch.status,
- fetch.final_url or url,
- fetch.response_time,
- )
return {
"site": site_name,
"url": url,
- "final_url": fetch.final_url,
- "status": status_text,
- "code": fetch.status,
+ "final_url": fetch.final_url or url,
+ "status": "Error",
+ "code": 0,
"response_time": round(fetch.response_time, 2),
- "confidence": confidence,
- "ai_analysis": ai_analysis,
+ "confidence": 0,
+ "ai_analysis": {"error": str(exc)},
}
fingerprint = build_fingerprint(bundle.fingerprint)
@@ -272,15 +291,6 @@ class UsernameScanner:
label = "found" if status_text == "Found" else "not_found"
self.fingerprints.add(site_name, label, fingerprint)
- self._print_result_line(
- site_name,
- status_text,
- confidence,
- fetch.status,
- fetch.final_url or url,
- fetch.response_time,
- )
-
return {
"site": site_name,
"url": url,
@@ -298,10 +308,10 @@ class UsernameScanner:
username: str,
url: str,
fetch,
- ai_analysis: Dict[str, Any],
+ ai_analysis: dict[str, Any],
status_text: str,
confidence: int,
- ) -> Tuple[str, int, Dict[str, Any]]:
+ ) -> tuple[str, int, dict[str, Any]]:
try:
content, final_url = await self.browser_fallback.fetch(url)
except Exception as exc:
@@ -350,78 +360,3 @@ class UsernameScanner:
except Exception:
url = f"https://{site_name}.com/{username}"
return url
-
- def _print_table_header(self) -> None:
- print(
- f"{COLORS['blue']}# {COLORS['yellow']}{'SITE':20}{COLORS['blue']}| "
- f"{COLORS['yellow']}{'STATUS + CONFIDENCE':18}{COLORS['blue']}| "
- f"{COLORS['yellow']}{'HTTP CODE':10}{COLORS['blue']}| "
- f"{COLORS['yellow']}URL (RESPONSE TIME){COLORS['reset']}"
- )
- print(f"{COLORS['green']}{'#' * 90}{COLORS['reset']}")
-
- def _print_result_line(
- self,
- site_name: str,
- status_text: str,
- confidence: int,
- code: int,
- url: str,
- response_time: float,
- ) -> None:
- if status_text == "Found":
- status_color = COLORS["green"]
- elif status_text == "Maybe":
- status_color = COLORS["yellow"]
- else:
- status_color = COLORS["red"]
-
- code_color = COLORS["green"] if code == 200 else COLORS["red"]
- url_color = status_color
- display_site = site_name[:20]
- confidence_str = f" ({confidence}%)" if confidence > 0 else ""
-
- print(
- f"{COLORS['green']}# {COLORS['yellow']}{display_site:20}{COLORS['white']}| "
- f"{status_color}{status_text:10}{confidence_str:8}{COLORS['white']}| "
- f"{code_color}{str(code):^10}{COLORS['white']}| "
- f"{url_color}{url}{COLORS['reset']} "
- f"({response_time:.2f}s)"
- )
-
- def _print_summary(self, results: List[Dict[str, Any]]) -> None:
- found_count = sum(1 for r in results if r["status"] == "Found")
- maybe_count = sum(1 for r in results if r["status"] == "Maybe")
- not_found_count = sum(1 for r in results if r["status"] == "Not Found")
- error_count = sum(
- 1
- for r in results
- if r["status"] not in {"Found", "Not Found", "Maybe"}
- )
- high_confidence = [
- r
- for r in results
- if r.get("confidence", 0) >= 85 and r["status"] == "Found"
- ]
-
- print(
- f"\n{COLORS['green']}Found: {found_count} | "
- f"{COLORS['yellow']}Maybe: {maybe_count} | "
- f"{COLORS['red']}Not Found: {not_found_count} | Errors: {error_count}"
- f"{COLORS['reset']}"
- )
- if high_confidence:
- print(
- f"\n{COLORS['green']}High confidence matches ({len(high_confidence)}):"
- f"{COLORS['reset']}"
- )
- for result in high_confidence[:5]:
- print(
- f"{COLORS['yellow']}{result['site']}: {COLORS['green']}{result['url']}"
- f"{COLORS['reset']} ({result['confidence']}% confidence)"
- )
- if len(high_confidence) > 5:
- print(
- f"{COLORS['yellow']}... and {len(high_confidence) - 5} more"
- f"{COLORS['reset']}"
- )
diff --git a/core/variations.py b/src/aliens_eye/core/variations.py
similarity index 95%
rename from core/variations.py
rename to src/aliens_eye/core/variations.py
index c8a6073..71b18f1 100644
--- a/core/variations.py
+++ b/src/aliens_eye/core/variations.py
@@ -1,7 +1,6 @@
-from typing import List
-def generate_username_variations(username: str, level: str) -> List[str]:
+def generate_username_variations(username: str, level: str) -> list[str]:
"""Generate username variations based on scan level."""
variations = [username]
if level == "basic":
diff --git a/src/aliens_eye/data/model.json b/src/aliens_eye/data/model.json
new file mode 100644
index 0000000..f0b38dc
--- /dev/null
+++ b/src/aliens_eye/data/model.json
@@ -0,0 +1,118 @@
+{
+ "version": "2.0.0",
+ "feature_schema": [
+ "http_200",
+ "http_3xx",
+ "http_404",
+ "http_4xx",
+ "http_5xx",
+ "has_username_in_path",
+ "is_homepage",
+ "has_auth_pattern",
+ "error_keyword_count",
+ "positive_keyword_count",
+ "meta_error_keyword_count",
+ "meta_positive_keyword_count",
+ "profile_section_count",
+ "error_section_count",
+ "img_count",
+ "input_count",
+ "form_count",
+ "title_has_username",
+ "meta_has_username",
+ "response_time",
+ "content_length",
+ "redirect_count",
+ "fingerprint_match_found",
+ "fingerprint_match_not_found",
+ "heuristic_score"
+ ],
+ "mean": [
+ 0.5524475524475524,
+ 0.0,
+ 0.2517482517482518,
+ 0.4405594405594406,
+ 0.006993006993006993,
+ 0.8951048951048951,
+ 0.027972027972027972,
+ 0.03496503496503497,
+ 1.4545454545454546,
+ 3.0839160839160837,
+ 0.11188811188811189,
+ 0.8741258741258742,
+ 1.2937062937062938,
+ 0.35664335664335667,
+ 2.1888111888111887,
+ 0.7342657342657343,
+ 0.2937062937062937,
+ 0.15384615384615385,
+ 0.24475524475524477,
+ 0.4288251748249212,
+ 19295.34265734266,
+ 0.14685314685314685,
+ 0.0,
+ 0.0,
+ 11.255244755244755
+ ],
+ "scale": [
+ 0.4972416457239488,
+ 1.0,
+ 0.4340173608163045,
+ 0.49645424753283485,
+ 0.08333129571897178,
+ 0.30641821398890434,
+ 0.16489267304267954,
+ 0.1836912662456461,
+ 1.3726971700492265,
+ 3.150083811731064,
+ 0.31522874600236794,
+ 1.3372926039693882,
+ 3.8391289947346325,
+ 1.6404229132586463,
+ 8.394929412774665,
+ 2.4090477733205193,
+ 1.023036532047827,
+ 0.3608012122941097,
+ 0.42994199018012336,
+ 0.32026283599785027,
+ 24658.622348528334,
+ 0.37319340039514176,
+ 1.0,
+ 1.0,
+ 20.704959300259674
+ ],
+ "coef": [
+ 0.08374867963937971,
+ 0.0,
+ -1.3237356976355,
+ -0.1525494462368097,
+ 0.4090958739789729,
+ -0.1969760424335191,
+ -0.9386143726241858,
+ -0.8485777292302974,
+ -0.5787013329895961,
+ -0.3868407230822935,
+ -0.2510129735622475,
+ 0.17223587909407465,
+ -0.19867286489397942,
+ 0.18939527031466696,
+ 0.5899925839490524,
+ -0.3662706540604841,
+ 0.48872263823743345,
+ 0.10153852959324074,
+ 0.4839958327896082,
+ -0.20362194989595916,
+ 0.7676220976814069,
+ -0.12864517493621283,
+ 0.0,
+ 0.0,
+ 0.22859502568479975
+ ],
+ "intercept": -0.8801843889308318,
+ "training": {
+ "samples": 143,
+ "positives": 39,
+ "negatives": 104,
+ "cv_accuracy": 0.6985221674876847
+ }
+}
\ No newline at end of file
diff --git a/src/aliens_eye/data/nsfw_sites.json b/src/aliens_eye/data/nsfw_sites.json
new file mode 100644
index 0000000..8ecf932
--- /dev/null
+++ b/src/aliens_eye/data/nsfw_sites.json
@@ -0,0 +1,22 @@
+[
+ "xvideos",
+ "chaturbate",
+ "royalcams",
+ "redtube",
+ "youporn",
+ "onlyfans",
+ "bongacams",
+ "xhamster",
+ "pornhub",
+ "myfreecams",
+ "camsoda",
+ "pornmd",
+ "hentaifoundry",
+ "literotica",
+ "empornium",
+ "pornbox",
+ "porn.com",
+ "cam4",
+ "vporn",
+ "gotporn"
+]
diff --git a/src/aliens_eye/data/seed_dataset.csv b/src/aliens_eye/data/seed_dataset.csv
new file mode 100644
index 0000000..6e5518b
--- /dev/null
+++ b/src/aliens_eye/data/seed_dataset.csv
@@ -0,0 +1,144 @@
+http_200,http_3xx,http_404,http_4xx,http_5xx,has_username_in_path,is_homepage,has_auth_pattern,error_keyword_count,positive_keyword_count,meta_error_keyword_count,meta_positive_keyword_count,profile_section_count,error_section_count,img_count,input_count,form_count,title_has_username,meta_has_username,response_time,content_length,redirect_count,fingerprint_match_found,fingerprint_match_not_found,heuristic_score,label
+0.0,0.0,0.0,1.0,0.0,1.0,0.0,0.0,1.0,1.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.07800000000133878,5762.0,0.0,0.0,0.0,4.5,0.0
+0.0,0.0,1.0,1.0,0.0,1.0,0.0,0.0,4.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.23500000000058208,755.0,0.0,0.0,0.0,-15.0,0.0
+0.0,0.0,0.0,1.0,0.0,1.0,0.0,0.0,1.0,1.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.030999999995401595,5726.0,0.0,0.0,0.0,4.5,0.0
+0.0,0.0,1.0,1.0,0.0,1.0,0.0,0.0,2.0,0.0,0.0,0.0,0.0,1.0,1.0,0.0,0.0,0.0,0.0,0.2969999999986612,1481.0,0.0,0.0,0.0,-14.0,0.0
+0.0,0.0,0.0,1.0,0.0,1.0,0.0,0.0,1.0,1.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.31300000000192085,5636.0,0.0,0.0,0.0,4.5,1.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,1.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.3280000000013388,3752.0,0.0,0.0,0.0,7.5,1.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,2.0,10.0,0.0,0.0,5.0,0.0,0.0,0.0,0.0,0.0,0.0,0.07899999999790452,30861.0,0.0,0.0,0.0,39.0,0.0
+0.0,0.0,1.0,1.0,0.0,1.0,0.0,0.0,4.0,8.0,0.0,0.0,1.0,0.0,1.0,0.0,0.0,0.0,0.0,0.46899999999732245,49441.0,0.0,0.0,0.0,1.0,0.0
+0.0,0.0,1.0,1.0,0.0,1.0,0.0,0.0,4.0,5.0,1.0,2.0,0.0,0.0,0.0,2.0,1.0,0.0,1.0,0.46899999999732245,99996.0,0.0,0.0,0.0,-1.5,0.0
+0.0,0.0,1.0,1.0,0.0,1.0,0.0,0.0,2.0,0.0,0.0,0.0,0.0,1.0,1.0,0.0,0.0,0.0,0.0,0.2819999999992433,1481.0,0.0,0.0,0.0,-14.0,0.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,2.0,2.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.4069999999992433,12533.0,0.0,0.0,0.0,7.0,0.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,1.0,2.0,0.0,1.0,2.0,0.0,0.0,0.0,0.0,1.0,1.0,0.5159999999959837,9687.0,0.0,0.0,0.0,24.0,0.0
+0.0,0.0,0.0,1.0,0.0,1.0,0.0,0.0,1.0,1.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.031000000002677552,5726.0,0.0,0.0,0.0,4.5,0.0
+0.0,0.0,1.0,1.0,0.0,1.0,0.0,0.0,1.0,2.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.375,3390.0,0.0,0.0,0.0,-4.0,0.0
+0.0,0.0,0.0,1.0,0.0,1.0,0.0,0.0,1.0,1.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.030999999995401595,5796.0,0.0,0.0,0.0,4.5,0.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,2.0,9.0,0.0,5.0,0.0,5.0,1.0,0.0,0.0,1.0,1.0,0.6409999999959837,42663.0,0.0,0.0,0.0,17.5,1.0
+0.0,0.0,1.0,1.0,0.0,1.0,0.0,0.0,4.0,7.0,0.0,0.0,1.0,0.0,1.0,0.0,0.0,0.0,0.0,0.4690000000045984,49368.0,0.0,0.0,0.0,-0.5,0.0
+0.0,0.0,1.0,1.0,0.0,1.0,0.0,0.0,1.0,2.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.3430000000007567,3390.0,0.0,0.0,0.0,-4.0,0.0
+0.0,0.0,1.0,1.0,0.0,1.0,0.0,0.0,5.0,2.0,0.0,0.0,0.0,0.0,1.0,2.0,1.0,0.0,0.0,0.8600000000005821,21143.0,0.0,0.0,0.0,-14.0,0.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,2.0,6.0,1.0,4.0,2.0,0.0,0.0,1.0,0.0,1.0,1.0,0.6569999999992433,95031.0,0.0,0.0,0.0,31.0,1.0
+0.0,0.0,1.0,1.0,0.0,1.0,0.0,0.0,4.0,5.0,1.0,2.0,0.0,0.0,0.0,2.0,1.0,0.0,1.0,0.48399999999674037,99996.0,0.0,0.0,0.0,-1.5,0.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,2.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.9069999999992433,23667.0,1.0,0.0,0.0,11.0,0.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,1.0,2.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,1.0,1.0,0.5149999999994179,11139.0,0.0,0.0,0.0,14.0,1.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.20300000000133878,6890.0,1.0,0.0,0.0,9.5,1.0
+0.0,0.0,0.0,1.0,0.0,1.0,0.0,0.0,1.0,1.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.031000000002677552,5808.0,0.0,0.0,0.0,4.5,0.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,2.0,2.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.39099999999598367,9184.0,0.0,0.0,0.0,7.0,0.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,1.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.6409999999959837,4113.0,0.0,0.0,0.0,11.5,0.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,1.0,9.0,0.0,2.0,5.0,0.0,0.0,0.0,0.0,0.0,1.0,0.07800000000133878,27072.0,0.0,0.0,0.0,48.5,1.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,1.0,1.0,3.0,0.0,1.0,14.0,1.0,6.0,10.0,3.0,1.0,1.0,0.5,42571.0,0.0,0.0,0.0,70.5,0.0
+0.0,0.0,0.0,1.0,0.0,1.0,0.0,0.0,1.0,1.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.046999999998661224,5723.0,0.0,0.0,0.0,4.5,0.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,8.0,0.0,2.0,0.0,0.0,1.0,1.0,1.0,1.0,1.0,0.07800000000133878,18318.0,0.0,0.0,0.0,29.0,1.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.17199999999866122,6890.0,1.0,0.0,0.0,9.5,0.0
+0.0,0.0,1.0,1.0,0.0,1.0,0.0,0.0,0.0,7.0,0.0,3.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.25,4166.0,0.0,0.0,0.0,9.5,0.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,2.0,2.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.4220000000059372,9178.0,0.0,0.0,0.0,7.0,1.0
+0.0,0.0,1.0,1.0,0.0,1.0,0.0,0.0,5.0,2.0,0.0,0.0,0.0,0.0,1.0,2.0,1.0,0.0,0.0,0.3430000000007567,21143.0,0.0,0.0,0.0,-14.0,0.0
+0.0,0.0,1.0,1.0,0.0,1.0,0.0,0.0,1.0,2.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.39099999999598367,3390.0,0.0,0.0,0.0,-4.0,0.0
+1.0,0.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,8.0,0.0,1.0,6.0,0.0,35.0,0.0,0.0,0.0,0.0,1.2969999999986612,31642.0,1.0,0.0,0.0,40.0,0.0
+0.0,0.0,0.0,1.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.20300000000133878,127.0,0.0,0.0,0.0,3.0,1.0
+0.0,0.0,1.0,1.0,0.0,1.0,0.0,0.0,0.0,8.0,0.0,3.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.2969999999986612,6759.0,0.0,0.0,0.0,11.0,0.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,4.0,1.0,0.0,0.0,0.25,8434.0,1.0,0.0,0.0,7.5,1.0
+0.0,0.0,1.0,1.0,0.0,1.0,0.0,0.0,2.0,0.0,0.0,0.0,0.0,1.0,1.0,0.0,0.0,0.0,0.0,0.28100000000267755,1481.0,0.0,0.0,0.0,-14.0,0.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,1.0,2.0,0.0,1.0,2.0,0.0,0.0,0.0,0.0,1.0,1.0,0.17199999999866122,9702.0,0.0,0.0,0.0,24.0,0.0
+0.0,0.0,0.0,1.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.18699999999807915,127.0,0.0,0.0,0.0,3.0,1.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,1.0,1.0,3.0,0.0,1.0,14.0,1.0,6.0,10.0,3.0,1.0,1.0,0.3899999999994179,42475.0,0.0,0.0,0.0,70.5,0.0
+0.0,0.0,1.0,1.0,0.0,1.0,0.0,0.0,4.0,5.0,1.0,2.0,0.0,0.0,0.0,0.0,0.0,0.0,1.0,0.46899999999732245,55969.0,0.0,0.0,0.0,-1.5,0.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,1.0,2.0,1.0,2.0,0.0,0.0,0.0,0.0,0.0,0.0,1.0,0.125,2752.0,0.0,0.0,0.0,15.0,1.0
+0.0,0.0,1.0,1.0,0.0,1.0,0.0,0.0,4.0,10.0,1.0,0.0,0.0,0.0,0.0,1.0,1.0,0.0,0.0,1.0310000000026776,64044.0,0.0,0.0,0.0,-3.0,0.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,2.0,2.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.4850000000005821,5456.0,0.0,0.0,0.0,7.0,0.0
+0.0,0.0,0.0,1.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.17199999999866122,127.0,0.0,0.0,0.0,3.0,0.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,2.0,9.0,0.0,5.0,0.0,5.0,1.0,0.0,0.0,1.0,1.0,0.3279999999940628,59743.0,0.0,0.0,0.0,17.5,1.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,2.0,5.0,1.0,0.0,0.0,1.0,4.0,0.0,0.0,0.0,0.0,0.35899999999674037,26808.0,0.0,0.0,0.0,5.5,0.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,4.0,0.0,2.0,0.0,0.0,0.0,0.0,0.0,1.0,1.0,0.14100000000325963,9445.0,0.0,0.0,0.0,23.0,1.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,1.0,8.0,0.0,5.0,1.0,0.0,0.0,0.0,0.0,1.0,1.0,0.6090000000040163,34440.0,0.0,0.0,0.0,37.0,1.0
+0.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,1.0,2.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.5469999999986612,5717.0,1.0,0.0,0.0,3.0,0.0
+0.0,0.0,1.0,1.0,0.0,1.0,0.0,0.0,4.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.125,5069.0,0.0,0.0,0.0,-13.5,0.0
+0.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.2649999999994179,6.0,0.0,0.0,0.0,-2.0,0.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,1.0,6.0,0.0,3.0,0.0,0.0,0.0,0.0,0.0,1.0,1.0,0.9530000000013388,27204.0,0.0,0.0,0.0,26.0,1.0
+0.0,0.0,1.0,1.0,0.0,1.0,0.0,0.0,4.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.13999999999941792,755.0,0.0,0.0,0.0,-15.0,0.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,2.0,2.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.3899999999994179,9183.0,0.0,0.0,0.0,7.0,1.0
+0.0,0.0,1.0,1.0,0.0,1.0,0.0,0.0,4.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.031000000002677552,5069.0,0.0,0.0,0.0,-13.5,0.0
+0.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.26599999999598367,6.0,0.0,0.0,0.0,-2.0,0.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,4.0,1.0,0.0,0.0,0.25,8450.0,1.0,0.0,0.0,7.5,0.0
+1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,1.0,9.0,0.0,0.0,0.0,0.0,0.0,1.0,1.0,0.0,0.0,1.2819999999992433,56569.0,2.0,0.0,0.0,16.5,1.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,2.0,6.0,1.0,4.0,2.0,0.0,0.0,0.0,0.0,1.0,1.0,0.5470000000059372,88624.0,0.0,0.0,0.0,31.0,1.0
+0.0,0.0,1.0,1.0,0.0,1.0,0.0,0.0,4.0,8.0,0.0,3.0,0.0,9.0,0.0,0.0,0.0,0.0,0.0,0.6559999999954016,13999.0,0.0,0.0,0.0,-24.0,0.0
+0.0,0.0,1.0,1.0,0.0,1.0,0.0,0.0,4.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.09399999999732245,755.0,0.0,0.0,0.0,-15.0,0.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,1.0,1.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.7030000000013388,6675.0,0.0,0.0,0.0,9.5,1.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,1.0,1.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.7659999999959837,6484.0,0.0,0.0,0.0,4.5,0.0
+0.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.25,6.0,0.0,0.0,0.0,-2.0,1.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,1.0,1.0,0.0,0.0,0.0,0.0,0.3600000000005821,3036.0,0.0,0.0,0.0,3.0,1.0
+0.0,0.0,0.0,0.0,1.0,1.0,0.0,0.0,2.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.4539999999979045,445.0,0.0,0.0,0.0,-4.0,1.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,1.5789999999979045,13950.0,1.0,0.0,0.0,9.5,0.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,4.0,1.0,0.0,0.0,0.25,8444.0,1.0,0.0,0.0,7.5,0.0
+0.0,0.0,1.0,1.0,0.0,1.0,0.0,0.0,5.0,2.0,0.0,0.0,0.0,0.0,1.0,2.0,1.0,0.0,0.0,0.875,21143.0,0.0,0.0,0.0,-14.0,0.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,1.0,5.0,0.0,3.0,0.0,0.0,0.0,0.0,0.0,0.0,1.0,0.31300000000192085,11846.0,0.0,0.0,0.0,24.5,0.0
+0.0,0.0,1.0,1.0,0.0,1.0,0.0,0.0,4.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0319999999992433,5069.0,0.0,0.0,0.0,-13.5,0.0
+0.0,0.0,1.0,1.0,0.0,1.0,0.0,0.0,3.0,6.0,1.0,0.0,0.0,0.0,0.0,1.0,1.0,0.0,0.0,0.4379999999946449,39234.0,0.0,0.0,0.0,-7.0,0.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,1.0,1.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.6720000000059372,6675.0,0.0,0.0,0.0,9.5,0.0
+0.0,0.0,1.0,1.0,0.0,1.0,0.0,0.0,1.0,2.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.375,3390.0,0.0,0.0,0.0,-4.0,0.0
+0.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.25,6.0,0.0,0.0,0.0,-2.0,0.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,1.0,1.0,0.0,0.0,0.0,0.0,0.28100000000267755,3036.0,0.0,0.0,0.0,3.0,0.0
+0.0,0.0,1.0,1.0,0.0,1.0,0.0,0.0,4.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0940000000045984,755.0,0.0,0.0,0.0,-15.0,0.0
+0.0,0.0,1.0,1.0,0.0,1.0,0.0,0.0,4.0,7.0,0.0,0.0,1.0,0.0,1.0,0.0,0.0,0.0,0.0,0.3899999999994179,49429.0,0.0,0.0,0.0,-0.5,0.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,2.0,0.0,0.0,5.0,0.0,0.0,0.0,0.0,0.0,0.0,0.17199999999866122,9366.0,0.0,0.0,0.0,31.0,0.0
+0.0,0.0,1.0,1.0,0.0,1.0,0.0,0.0,4.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.046999999998661224,5069.0,0.0,0.0,0.0,-13.5,0.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,1.0,5.0,0.0,3.0,0.0,0.0,0.0,0.0,0.0,0.0,1.0,0.7809999999954016,11846.0,0.0,0.0,0.0,24.5,0.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,2.0,5.0,1.0,0.0,0.0,1.0,4.0,0.0,0.0,0.0,0.0,0.2809999999954016,26814.0,0.0,0.0,0.0,5.5,0.0
+0.0,0.0,0.0,1.0,0.0,1.0,0.0,0.0,1.0,1.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,1.0,0.09399999999732245,5665.0,0.0,0.0,0.0,9.5,1.0
+0.0,0.0,0.0,1.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.15600000000267755,127.0,0.0,0.0,0.0,3.0,0.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,2.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.5310000000026776,5958.0,0.0,0.0,0.0,11.0,0.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,1.0,1.0,3.0,0.0,1.0,14.0,1.0,6.0,10.0,3.0,1.0,1.0,0.6090000000040163,42571.0,0.0,0.0,0.0,70.5,0.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,1.0,2.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,1.0,1.0,0.1870000000053551,10945.0,0.0,0.0,0.0,14.0,1.0
+0.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.26599999999598367,6.0,0.0,0.0,0.0,-2.0,0.0
+0.0,0.0,0.0,1.0,0.0,1.0,0.0,0.0,1.0,1.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.09399999999732245,5766.0,0.0,0.0,0.0,4.5,1.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,1.0,1.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.18800000000192085,6675.0,0.0,0.0,0.0,9.5,0.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,2.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.5160000000032596,5958.0,0.0,0.0,0.0,11.0,0.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,1.0,2.0,0.0,1.0,2.0,0.0,0.0,0.0,0.0,1.0,1.0,0.17199999999866122,9713.0,0.0,0.0,0.0,24.0,0.0
+0.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,1.0,2.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.5159999999959837,5717.0,1.0,0.0,0.0,3.0,0.0
+0.0,0.0,1.0,1.0,0.0,1.0,0.0,0.0,3.0,6.0,1.0,0.0,0.0,0.0,0.0,1.0,1.0,0.0,0.0,0.43699999999807915,39236.0,0.0,0.0,0.0,-7.0,0.0
+0.0,0.0,0.0,1.0,0.0,1.0,0.0,0.0,1.0,1.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.07800000000133878,5802.0,0.0,0.0,0.0,4.5,0.0
+0.0,0.0,0.0,1.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.20300000000133878,127.0,0.0,0.0,0.0,3.0,0.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,2.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.5149999999994179,5961.0,0.0,0.0,0.0,11.0,0.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,1.0,1.0,0.0,0.0,0.0,0.0,0.2969999999986612,3036.0,0.0,0.0,0.0,3.0,0.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,1.0,5.0,0.0,3.0,0.0,0.0,0.0,0.0,0.0,0.0,1.0,0.6880000000019209,11945.0,0.0,0.0,0.0,24.5,0.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,1.0,5.0,0.0,4.0,0.0,0.0,0.0,0.0,0.0,0.0,1.0,0.875,11405.0,0.0,0.0,0.0,26.5,1.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,1.0,2.0,0.0,1.0,2.0,0.0,0.0,0.0,0.0,1.0,1.0,0.1870000000053551,9716.0,0.0,0.0,0.0,24.0,0.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,2.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.9530000000013388,23737.0,1.0,0.0,0.0,11.0,0.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,2.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.4529999999940628,5958.0,0.0,0.0,0.0,11.0,0.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,2.0,5.0,1.0,0.0,0.0,1.0,4.0,0.0,0.0,0.0,0.0,0.75,26804.0,0.0,0.0,0.0,5.5,0.0
+0.0,0.0,0.0,1.0,0.0,1.0,0.0,0.0,1.0,1.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.09399999999732245,5805.0,0.0,0.0,0.0,4.5,0.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,3.0,11.0,0.0,0.0,5.0,0.0,0.0,0.0,0.0,0.0,0.0,0.13999999999941792,43725.0,0.0,0.0,0.0,38.5,0.0
+0.0,0.0,1.0,1.0,0.0,1.0,0.0,0.0,4.0,7.0,0.0,0.0,1.0,0.0,1.0,0.0,0.0,0.0,0.0,0.40600000000267755,49422.0,0.0,0.0,0.0,-0.5,0.0
+0.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,1.0,2.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.6719999999986612,5717.0,1.0,0.0,0.0,3.0,0.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,10.0,0.0,7.0,0.0,0.0,0.0,0.0,0.0,1.0,1.0,0.25,13548.0,0.0,0.0,0.0,42.0,1.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.6410000000032596,1544.0,0.0,0.0,0.0,13.5,1.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,3.0,15.0,0.0,1.0,27.0,16.0,10.0,18.0,10.0,0.0,0.0,1.264999999999418,99990.0,0.0,0.0,0.0,86.5,1.0
+0.0,0.0,1.0,1.0,0.0,1.0,0.0,0.0,5.0,2.0,0.0,0.0,0.0,0.0,1.0,2.0,1.0,0.0,0.0,0.35900000000401633,21143.0,0.0,0.0,0.0,-14.0,0.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,2.0,6.0,1.0,4.0,2.0,0.0,0.0,2.0,1.0,1.0,1.0,0.5939999999973224,99997.0,0.0,0.0,0.0,31.0,1.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,4.0,1.0,0.0,0.0,0.23500000000058208,8449.0,1.0,0.0,0.0,7.5,0.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,5.0,0.0,1.0,19.0,0.0,6.0,0.0,0.0,0.0,0.0,0.2819999999992433,30430.0,0.0,0.0,0.0,95.5,1.0
+0.0,0.0,1.0,1.0,0.0,1.0,0.0,0.0,2.0,2.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.4379999999946449,28213.0,0.0,0.0,0.0,-11.0,0.0
+1.0,0.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,8.0,0.0,1.0,6.0,0.0,35.0,0.0,0.0,0.0,0.0,0.5469999999986612,31642.0,1.0,0.0,0.0,40.0,0.0
+0.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.26599999999598367,6.0,0.0,0.0,0.0,-2.0,1.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,2.0,11.0,0.0,0.0,5.0,0.0,0.0,0.0,0.0,0.0,0.0,0.125,38965.0,0.0,0.0,0.0,40.5,0.0
+0.0,0.0,1.0,1.0,0.0,1.0,0.0,0.0,4.0,5.0,1.0,2.0,0.0,0.0,0.0,2.0,1.0,0.0,1.0,0.48399999999674037,99996.0,0.0,0.0,0.0,-1.5,0.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,1.0,1.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.17200000000593718,6675.0,0.0,0.0,0.0,9.5,0.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,1.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.11000000000058208,9698.0,0.0,0.0,0.0,7.5,1.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,2.0,2.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.43800000000192085,9183.0,0.0,0.0,0.0,7.0,0.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,1.0,1.0,3.0,0.0,1.0,13.0,0.0,67.0,9.0,3.0,0.0,0.0,1.1569999999992433,100000.0,0.0,0.0,0.0,64.5,1.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,1.0,1.0,3.0,0.0,1.0,14.0,1.0,6.0,10.0,3.0,1.0,1.0,0.9840000000040163,42619.0,0.0,0.0,0.0,70.5,0.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,1.0,5.0,0.0,3.0,0.0,0.0,0.0,0.0,0.0,0.0,1.0,0.6880000000019209,11846.0,0.0,0.0,0.0,24.5,0.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,1.0,1.0,0.0,0.0,0.0,0.0,0.3280000000013388,3036.0,0.0,0.0,0.0,3.0,0.0
+0.0,0.0,1.0,1.0,0.0,1.0,0.0,0.0,2.0,0.0,0.0,0.0,0.0,1.0,1.0,0.0,0.0,0.0,0.0,0.25,1481.0,0.0,0.0,0.0,-14.0,0.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,1.0,1.0,0.0,0.0,0.0,0.0,0.7189999999973224,3036.0,0.0,0.0,0.0,3.0,0.0
+0.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,1.0,2.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.4529999999940628,5717.0,1.0,0.0,0.0,3.0,0.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,2.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,1.0,1.0,0.40600000000267755,5950.0,0.0,0.0,0.0,16.0,1.0
+0.0,0.0,1.0,1.0,0.0,1.0,0.0,0.0,1.0,8.0,0.0,3.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.4530000000013388,10847.0,0.0,0.0,0.0,9.0,0.0
+1.0,0.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,8.0,0.0,1.0,6.0,0.0,35.0,0.0,0.0,0.0,0.0,0.5470000000059372,31642.0,1.0,0.0,0.0,40.0,0.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,1.0,1.0469999999986612,15998.0,1.0,0.0,0.0,14.5,1.0
+1.0,0.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,8.0,0.0,1.0,6.0,0.0,35.0,0.0,0.0,0.0,0.0,1.1719999999986612,31642.0,1.0,0.0,0.0,40.0,0.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,1.0,9.0,0.0,5.0,1.0,0.0,32.0,0.0,0.0,1.0,1.0,0.9219999999986612,65798.0,0.0,0.0,0.0,40.5,1.0
+0.0,0.0,0.0,1.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.17199999999866122,127.0,0.0,0.0,0.0,3.0,0.0
+1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,1.6719999999986612,15998.0,1.0,0.0,0.0,9.5,0.0
diff --git a/src/aliens_eye/data/selfcheck.json b/src/aliens_eye/data/selfcheck.json
new file mode 100644
index 0000000..be89a61
--- /dev/null
+++ b/src/aliens_eye/data/selfcheck.json
@@ -0,0 +1,28 @@
+{
+ "github": ["torvalds", "gvanrossum", "mojombo"],
+ "reddit": ["spez", "kn0thing"],
+ "gitlab": ["sytses"],
+ "twitch": ["shroud", "ninja"],
+ "medium": ["ev"],
+ "dev.to": ["ben", "jess"],
+ "npm": ["sindresorhus", "isaacs"],
+ "pypi": ["dstufft"],
+ "soundcloud": ["skrillex", "diplo"],
+ "vimeo": ["staff"],
+ "imgur": ["sarah"],
+ "patreon": ["jacksepticeye"],
+ "telegram": ["durov", "telegram"],
+ "chess.com": ["hikaru", "magnuscarlsen"],
+ "lichess": ["thibault", "drnykterstein"],
+ "hackernews": ["pg", "dang"],
+ "duolingo": ["luis"],
+ "dribbble": ["dan"],
+ "mastodon.social": ["Gargron"],
+ "steamcommunity": ["gabelogannewell"],
+ "pinterest": ["pinterest"],
+ "devrant": ["dfox", "trogus"],
+ "spotify": ["spotify"],
+ "kaggle": ["kaggle", "abhishek"],
+ "wikipedia": ["Jimbo_Wales"],
+ "youtube user": ["pewdiepie"]
+}
diff --git a/src/aliens_eye/data/sites.json b/src/aliens_eye/data/sites.json
new file mode 100644
index 0000000..2b96be7
--- /dev/null
+++ b/src/aliens_eye/data/sites.json
@@ -0,0 +1,842 @@
+{
+ "codechef": "https://www.codechef.com/users/{}",
+ "lor": "https://www.linux.org.ru/people/{}/profile",
+ "forum_guns": "https://forum.guns.ru/forummisc/blog/{}",
+ "rockettube": "https://www.rockettube.com/{}",
+ "apple discussions": "https://discussions.apple.com/profile/{}",
+ "queer.af": "https://queer.af/@{}",
+ "telegram": "https://t.me/{}",
+ "myspace": "https://myspace.com/{}",
+ "osu!": "https://osu.ppy.sh/users/{}",
+ "codewars": "https://www.codewars.com/users/{}",
+ "enjin": "https://www.enjin.com/profile/{}",
+ "uid": "http://uid.me/{}",
+ "instructables": "https://www.instructables.com/member/{}",
+ "fandom": "https://www.fandom.com/u/{}",
+ "producthunt": "https://www.producthunt.com/@{}",
+ "sublimeforum": "https://forum.sublimetext.com/u/{}",
+ "tnaflix": "https://www.tnaflix.com/profile/{}",
+ "getmyuni": "https://www.getmyuni.com/user/{}",
+ "shitpostbot5000": "https://www.shitpostbot.com/user/{}",
+ "2dimensions": "https://2Dimensions.com/a/{}",
+ "cults3d": "https://cults3d.com/en/users/{}/creations",
+ "mstdn.io": "https://mstdn.io/@{}",
+ "sourceforge": "https://sourceforge.net/u/{}",
+ "vimeo": "https://vimeo.com/{}",
+ "mastodon.cloud": "https://mastodon.cloud/@{}",
+ "imgur": "https://imgur.com/user/{}",
+ "unsplash": "https://unsplash.com/@{}",
+ "xvideos": "https://www.xvideos.com/profiles/{}",
+ "devianart": "https://{}.devianart.com/",
+ "ebio.gg": "https://ebio.gg/{}",
+ "nairaland.com": "https://www.nairaland.com/{}",
+ "psnprofiles.com": "https://psnprofiles.com/{}",
+ "giphy": "https://giphy.com/{}",
+ "nnru": "https://{}.www.nn.ru/",
+ "cryptomator forum": "https://community.cryptomator.org/u/{}",
+ "coderwall": "https://coderwall.com/{}",
+ "researchgate": "https://www.researchgate.net/profile/{}",
+ "speedrun.com": "https://speedrun.com/user/{}",
+ "makezine": "https://makezine.com/author/{}",
+ "cnet": "https://www.cnet.com/profiles/{}/",
+ "docker hub": "https://hub.docker.com/u/{}/",
+ "buymeacoffee": "https://buymeacoff.ee/{}",
+ "about": "https://about.me/{}",
+ "eintrachtfrankfurt": "https://community.eintracht.de/fans/{}",
+ "mastodon.technology": "https://mastodon.technology/@{}",
+ "weblate": "https://hosted.weblate.org/user/{}/",
+ "codepen": "https://codepen.io/{}",
+ "alik.cz": "https://www.alik.cz/u/{}",
+ "google play": "https://play.google.com/store/apps/developer?id={}",
+ "blip.fm": "https://blip.fm/{}",
+ "creativemarket": "https://creativemarket.com/{}",
+ "bezuzyteczna": "https://bezuzyteczna.pl/uzytkownicy/{}",
+ "dev community": "https://dev.to/{}",
+ "dribbble": "https://dribbble.com/{}",
+ "pepperit": "https://www.pepper.it/profile/{}/overview",
+ "wicg forum": "https://discourse.wicg.io/u/{}/summary",
+ "archive of our own": "https://archiveofourown.org/users/{}",
+ "trello": "https://trello.com/{}",
+ "drive2": "https://www.drive2.ru/users/{}",
+ "gnome vcs": "https://gitlab.gnome.org/{}",
+ "angel": "https://angel.co/{}",
+ "lottiefiles": "https://lottiefiles.com/{}",
+ "codementor": "https://www.codementor.io/{}",
+ "polymart": "https://polymart.org/user/{}",
+ "weebly": "https://{}.weebly.com/",
+ "bazar.cz": "https://www.bazar.cz/{}/",
+ "bitbucket": "https://bitbucket.org/{}",
+ "opennet": "https://www.opennet.ru/~{}",
+ "gumroad": "https://www.gumroad.com/{}",
+ "listed": "https://listed.to/@{}",
+ "anilist": "https://anilist.co/user/{}/",
+ "admireme.vip": "https://admireme.vip/{}",
+ "cgtrader": "https://www.cgtrader.com/{}",
+ "spletnik": "https://spletnik.ru/user/{}",
+ "airliners": "https://www.airliners.net/user/{}/profile/photos",
+ "wykop.pl": "https://www.wykop.pl/ludzie/{}",
+ "ogusers": "https://ogu.gg/{}",
+ "bravecommunity": "https://community.brave.com/u/{}/",
+ "lushstories": "https://www.lushstories.com/profile/{}",
+ "nyaa.si": "https://nyaa.si/user/{}",
+ "foursquare": "https://foursquare.com/user/{}",
+ "sbazar.cz": "https://www.sbazar.cz/{}",
+ "bitcoinforum": "https://bitcoinforum.com/profile/{}",
+ "periscope": "https://www.pscp.tv/{}",
+ "needrom": "https://www.needrom.com/author/{}/",
+ "akniga": "https://akniga.org/profile/{}",
+ "nationstates region": "https://nationstates.net/region={}",
+ "social.tchncs.de": "https://social.tchncs.de/@{}",
+ "bikemap": "https://www.bikemap.net/en/u/{}/routes/created/",
+ "rate your music": "https://rateyourmusic.com/~{}",
+ "7cups": "https://www.7cups.com/@{}",
+ "tweakers": "https://tweakers.net/gallery/{}",
+ "blip": "https://blip.fm/{}",
+ "runescape": "https://www.runescape.com/playerProfile.ws?username={}",
+ "chaturbate": "https://chaturbate.com/{}",
+ "traktrain": "https://traktrain.com/{}",
+ "crevado": "https://{}.crevado.com",
+ "archive.org": "https://archive.org/details/@{}",
+ "linktree": "https://linktr.ee/{}",
+ "3dnews": "http://forum.3dnews.ru/member.php?username={}",
+ "d3ru": "https://d3.ru/user/{}/posts",
+ "coroflot": "https://www.coroflot.com/{}",
+ "kaggle": "https://www.kaggle.com/{}",
+ "moikrug": "https://moikrug.ru/{}",
+ "webnode": "https://{}.webnode.cz/",
+ "contently": "https://{}.contently.com/",
+ "rumble": "https://rumble.com/user/{}",
+ "pikabu": "https://pikabu.ru/@{}",
+ "fameswap": "https://fameswap.com/user/{}",
+ "monkeytype": "https://monkeytype.com/profile/{}",
+ "vsco": "https://vsco.co/{}",
+ "newgrounds": "https://{}.newgrounds.com",
+ "wordnik": "https://www.wordnik.com/users/{}",
+ "toster": "https://www.toster.ru/user/{}/answers",
+ "sporcle": "https://www.sporcle.com/user/{}/people",
+ "freecodecamp": "https://www.freecodecamp.org/{}",
+ "intigriti": "https://app.intigriti.com/profile/{}",
+ "signal": "https://community.signalusers.org/u/{}",
+ "eyeem": "https://www.eyeem.com/u/{}",
+ "goodreads": "https://www.goodreads.com/user/show/{}",
+ "joplin forum": "https://discourse.joplinapp.org/u/{}",
+ "envato forum": "https://forums.envato.com/u/{}",
+ "imgsrc.ru": "https://imgsrc.ru/main/user.php?user={}",
+ "pinkbike": "https://www.pinkbike.com/u/{}/",
+ "choice community": "https://choice.community/u/{}/summary",
+ "soundcloud": "https://soundcloud.com/{}",
+ "tiktok": "https://www.tiktok.com/@{}",
+ "hubski": "https://hubski.com/user/{}",
+ "quizlet": "https://quizlet.com/{}",
+ "irecommend": "https://irecommend.ru/users/{}",
+ "fosstodon": "https://fosstodon.org/@{}",
+ "ionic forum": "https://forum.ionicframework.com/u/{}",
+ "chess": "https://www.chess.com/member/{}",
+ "gunsandammo": "https://forums.gunsandammo.com/profile/{}",
+ "last.fm": "https://www.last.fm/user/{}",
+ "oracle community": "https://community.oracle.com/people/{}",
+ "houzz": "https://www.houzz.com/user/{}",
+ "fl": "https://www.fl.ru/users/{}",
+ "jeuxvideo": "http://www.jeuxvideo.com/profil/{}?mode=infos",
+ "ask fedora": "https://ask.fedoraproject.org/u/{}",
+ "academia.edu": "https://independent.academia.edu/{}",
+ "slant": "https://www.slant.co/users/{}",
+ "caddy community": "https://caddy.community/u/{}/summary",
+ "pastebin": "https://pastebin.com/u/{}",
+ "royalcams": "https://royalcams.com/profile/{}",
+ "grailed": "https://www.grailed.com/{}",
+ "freesound": "https://freesound.org/people/{}/",
+ "kofi": "https://ko-fi.com/{}",
+ "tumblr": "https://{}.tumblr.com",
+ "svidbook": "https://www.svidbook.ru/user/{}",
+ "whonix forum": "https://forums.whonix.org/u/{}/summary",
+ "gutefrage": "https://www.gutefrage.net/nutzer/{}",
+ "nightbot": "https://nightbot.tv/t/{}/commands",
+ "phpru": "https://php.ru/forum/members/?username={}",
+ "artstation": "https://www.artstation.com/{}",
+ "snapchat": "https://snapchat.com/add/{}",
+ "mastodon.social": "https://mastodon.social/@{}",
+ "heavy-r": "https://www.heavy-r.com/user/{}",
+ "memrise": "https://www.memrise.com/user/{}/",
+ "freelancer": "https://www.freelancer.com/u/{}",
+ "tldr legal": "https://tldrlegal.com/users/{}/",
+ "velomania": "https://forum.velomania.ru/member.php?username={}",
+ "wikidot": "http://www.wikidot.com/user:info/{}",
+ "naver": "https://blog.naver.com/{}",
+ "polygon": "https://www.polygon.com/users/{}",
+ "forum ophilia": "https://www.forumophilia.com/profile.php?mode=viewprofile&u={}",
+ "tetr.io": "https://ch.tetr.io/u/{}",
+ "trakt": "https://www.trakt.tv/users/{}",
+ "icons8 community": "https://community.icons8.com/u/{}/summary",
+ "yandexmusic": "https://music.yandex/users/{}/playlists",
+ "ourdjtalk": "https://ourdjtalk.com/members?username={}",
+ "star citizen": "https://robertsspaceindustries.com/citizens/{}",
+ "wordpressorg": "https://profiles.wordpress.org/{}/",
+ "codecademy": "https://www.codecademy.com/profiles/{}",
+ "zone-h": "http://www.zone-h.org/archive/notifier={}",
+ "disqus": "https://disqus.com/by/{}",
+ "tenor": "https://tenor.com/users/{}",
+ "avizo": "https://www.avizo.cz/{}/",
+ "cash": "https://cash.me/{}",
+ "biohacking": "https://forum.dangerousthings.com/u/{}",
+ "9gag": "https://www.9gag.com/u/{}",
+ "scratch": "https://scratch.mit.edu/users/{}",
+ "shpock": "https://www.shpock.com/shop/{}/items",
+ "sportlerfrage": "https://www.sportlerfrage.net/nutzer/{}",
+ "warrior forum": "https://www.warriorforum.com/members/{}.html",
+ "windy": "https://community.windy.com/user/{}",
+ "igromania": "http://forum.igromania.ru/member.php?username={}",
+ "matrix": "https://matrix.to/#/@{}",
+ "okcupid": "https://www.okcupid.com/profile/{}",
+ "motorradfrage": "https://www.motorradfrage.net/nutzer/{}",
+ "packagist": "https://packagist.org/packages/{}/",
+ "clubhouse": "https://www.clubhouse.com/@{}",
+ "replit.com": "https://replit.com/@{}",
+ "badoo": "https://badoo.com/en/{}",
+ "autofrage": "https://www.autofrage.net/nutzer/{}",
+ "redtube": "https://www.redtube.com/users/{}",
+ "clapper": "https://clapperapp.com/{}",
+ "mixcloud": "https://www.mixcloud.com/{}/",
+ "gaiaonline": "https://www.gaiaonline.com/profiles/{}",
+ "hackthebox": "https://forum.hackthebox.eu/profile/{}",
+ "fiverr": "https://www.fiverr.com/{}",
+ "flightradar24": "https://my.flightradar24.com/{}",
+ "issuu": "https://issuu.com/{}",
+ "about.me": "https://about.me/{}",
+ "car talk community": "https://community.cartalk.com/u/{}/summary",
+ "furaffinity": "https://www.furaffinity.net/user/{}",
+ "steamcommunity": "https://steamcommunity.com/id/{}",
+ "spotify": "https://open.spotify.com/user/{}",
+ "football": "https://www.rusfootball.info/user/{}/",
+ "couchsurfing": "https://www.couchsurfing.com/people/{}",
+ "hackerrank": "https://www.hackerrank.com/{}",
+ "rajce.net": "https://{}.rajce.idnes.cz/",
+ "bitwarden forum": "https://community.bitwarden.com/u/{}/summary",
+ "f3.cool": "https://f3.cool/{}/",
+ "youtube channel": "https://www.youtube.com/c/{}",
+ "ello": "https://ello.co/{}",
+ "cloudflarecommunity": "https://community.cloudflare.com/u/{}",
+ "slideshare": "https://slideshare.net/{}",
+ "jimdo": "https://{}.jimdosite.com",
+ "exposure": "https://{}.exposure.co/",
+ "chatujme.cz": "https://profil.chatujme.cz/{}",
+ "dealabs": "https://www.dealabs.com/profile/{}",
+ "splice": "https://splice.com/{}",
+ "image fap": "https://www.imagefap.com/profile/{}",
+ "air pilot life": "https://airlinepilot.life/u/{}",
+ "booth": "https://{}.booth.pm/",
+ "itch.io": "https://{}.itch.io/",
+ "virustotal": "https://www.virustotal.com/gui/user/{}",
+ "youporn": "https://www.youporn.com/profile/{}",
+ "babyblogru": "https://www.babyblog.ru/user/{}",
+ "hackerearth": "https://hackerearth.com/@{}",
+ "devrant": "https://devrant.com/users/{}",
+ "youpic": "https://youpic.com/photographer/{}/",
+ "slashdot": "https://slashdot.org/~{}",
+ "youtube": "https://youtube.com/{}",
+ "reddit": "https://www.reddit.com/user/{}",
+ "geocaching": "https://www.geocaching.com/p/default.aspx?u={}",
+ "eintracht": "https://community.eintracht.de/fans/{}",
+ "blogger": "https://{}.blogspot.com",
+ "rubygems": "https://rubygems.org/profiles/{}",
+ "steamgroup": "https://steamcommunity.com/groups/{}",
+ "kongregate": "https://www.kongregate.com/accounts/{}",
+ "carbonmade": "https://{}.carbonmade.com",
+ "github": "https://github.com/{}",
+ "metacritic": "https://www.metacritic.com/user/{}",
+ "allmylinks": "https://allmylinks.com/{}",
+ "gravatar": "http://en.gravatar.com/{}",
+ "slack": "https://{}.slack.com",
+ "trip": "https://www.trip.skyscanner.com/user/{}",
+ "openstreetmap": "https://www.openstreetmap.org/user/{}",
+ "amino": "https://aminoapps.com/u/{}",
+ "roblox": "https://www.roblox.com/user.aspx?username={}",
+ "launchpad": "https://launchpad.net/~{}",
+ "patreon": "https://www.patreon.com/{}",
+ "hexrpg": "https://www.hexrpg.com/userinfo/{}",
+ "cracked": "https://www.cracked.com/members/{}/",
+ "typeracer": "https://data.typeracer.com/pit/profile?user={}",
+ "egpu": "https://egpu.io/forums/profile/{}/",
+ "coders rank": "https://profile.codersrank.io/user/{}/",
+ "hunting": "https://www.hunting.ru/forum/members/?username={}",
+ "trawelling": "https://traewelling.de/@{}",
+ "bodybuilding": "https://bodyspace.bodybuilding.com/{}",
+ "minecraft": "https://api.mojang.com/users/profiles/minecraft/{}",
+ "polarsteps": "https://polarsteps.com/{}",
+ "tuna": "https://tuna.voicemod.net/user/{}",
+ "kik": "https://kik.me/{}",
+ "freelance.habr": "https://freelance.habr.com/freelancers/{}",
+ "medium": "https://medium.com/@{}",
+ "giant bomb": "https://www.giantbomb.com/profile/{}/",
+ "erome": "https://www.erome.com/{}",
+ "imgup.cz": "https://imgup.cz/{}",
+ "geeksforgeeks": "https://auth.geeksforgeeks.org/user/{}",
+ "canva": "https://canva.com/{}",
+ "gamespot": "https://www.gamespot.com/profile/{}/",
+ "sessionize": "https://sessionize.com/{}",
+ "gitlab": "https://gitlab.com/{}",
+ "hashnode": "https://hashnode.com/@{}",
+ "babyru": "https://www.baby.ru/u/{}/",
+ "twitter": "https://twitter.com/{}",
+ "asciinema": "https://asciinema.org/~{}",
+ "gitee": "https://gitee.com/{}",
+ "swapd": "https://swapd.co/u/{}",
+ "dmoj": "https://dmoj.ca/user/{}",
+ "gitbook": "https://{}.gitbook.io/",
+ "keybase": "https://keybase.io/{}",
+ "askfm": "https://ask.fm/{}",
+ "codeforces": "https://codeforces.com/profile/{}",
+ "reisefrage": "https://www.reisefrage.net/nutzer/{}",
+ "pocketstars": "https://pocketstars.com/{}",
+ "g2g": "https://www.g2g.com/{}",
+ "splits.io": "https://splits.io/users/{}",
+ "onlyfans": "https://onlyfans.com/{}",
+ "hackaday": "https://hackaday.io/{}",
+ "bandcamp": "https://www.bandcamp.com/{}",
+ "euw": "https://euw.op.gg/summoner/userName={}",
+ "xbox gamertag": "https://xboxgamertag.com/search/{}",
+ "mastodon.xyz": "https://mastodon.xyz/@{}",
+ "gradle": "https://plugins.gradle.org/u/{}",
+ "datingru": "http://dating.ru/{}",
+ "strava": "https://www.strava.com/athletes/{}",
+ "authorstream": "http://www.authorstream.com/{}/",
+ "ninja kiwi": "https://ninjakiwi.com/profile/{}",
+ "scribd": "https://www.scribd.com/{}",
+ "hackerone": "https://hackerone.com/{}",
+ "flickr": "https://www.flickr.com/photos/{}",
+ "wattpad": "https://www.wattpad.com/user/{}",
+ "nicommunityforum": "https://community.native-instruments.com/profile/{}",
+ "mydramalist": "https://www.mydramalist.com/profile/{}",
+ "wiki.vg": "https://wiki.vg/User:{}",
+ "code snippet wiki": "https://codesnippets.fandom.com/wiki/User:{}",
+ "fortnitetracker": "https://fortnitetracker.com/profile/all/{}",
+ "npm": "https://www.npmjs.com/~{}",
+ "blogspot": "https://{}.blogspot.com/",
+ "clozemaster": "https://www.clozemaster.com/players/{}",
+ "biggerpockets": "https://www.biggerpockets.com/users/{}",
+ "letterboxd": "https://letterboxd.com/{}",
+ "hackster": "https://www.hackster.io/{}",
+ "wordpress": "https://{}.wordpress.com/",
+ "satsisru": "https://satsis.info/user/{}",
+ "pypi": "https://pypi.org/user/{}",
+ "bongacams": "https://pt.bongacams.com/profile/{}",
+ "flipboard": "https://flipboard.com/@{}",
+ "mercadolivre": "https://www.mercadolivre.com.br/perfil/{}",
+ "nintendolife": "https://www.nintendolife.com/users/{}",
+ "pcgamer": "https://forums.pcgamer.com/members/?username={}",
+ "8tracks": "https://8tracks.com/{}",
+ "slides": "https://slides.com/{}",
+ "habr": "https://habr.com/ru/users/{}",
+ "500px": "https://500px.com/{}",
+ "soylentnews": "https://soylentnews.org/~{}",
+ "lesswrong": "https://www.lesswrong.com/users/@{}",
+ "themeforest": "https://themeforest.net/user/{}",
+ "reverbnation": "https://www.reverbnation.com/{}",
+ "irl": "https://www.irl.com/{}",
+ "redbubble": "https://www.redbubble.com/people/{}",
+ "smugmug": "https://{}.smugmug.com",
+ "labpentestit": "https://lab.pentestit.ru/profile/{}",
+ "twitch": "https://www.twitch.tv/{}",
+ "wolframalphaforum": "https://community.wolfram.com/web/{}/home",
+ "tellonym.me": "https://tellonym.me/{}",
+ "trashboxru": "https://trashbox.ru/users/{}",
+ "all things worn": "https://www.allthingsworn.com/profile/{}",
+ "facebook": "https://facebook.com/{}",
+ "smule": "https://www.smule.com/{}",
+ "finanzfrage": "https://www.finanzfrage.net/nutzer/{}",
+ "opensource": "https://opensource.com/users/{}",
+ "vk": "https://vk.com/{}",
+ "munzee": "https://www.munzee.com/m/{}",
+ "plus": "https://plus.google.com/{}",
+ "youtube user": "https://www.youtube.com/user/{}",
+ "mmorpg forum": "https://forums.mmorpg.com/profile/{}",
+ "nitrotype": "https://www.nitrotype.com/racer/{}",
+ "prog.hu": "https://prog.hu/azonosito/info/{}",
+ "leasehackr": "https://forum.leasehackr.com/u/{}/summary/",
+ "deviantart": "https://www.deviantart.com/{}",
+ "keakr": "https://www.keakr.com/en/profile/{}",
+ "modelhub": "https://www.modelhub.com/{}/videos",
+ "discuss.elastic.co": "https://discuss.elastic.co/u/{}",
+ "lolchess": "https://lolchess.gg/profile/na/{}",
+ "hackernews": "https://news.ycombinator.com/user?id={}",
+ "promodj": "http://promodj.com/{}",
+ "buzzfeed": "https://buzzfeed.com/{}",
+ "hubpages": "https://hubpages.com/@{}",
+ "apple developer": "https://developer.apple.com/forums/profile/{}",
+ "kwork": "https://kwork.ru/user/{}",
+ "harvard scholar": "https://scholar.harvard.edu/{}",
+ "dailykos": "https://www.dailykos.com/user/{}",
+ "colourlovers": "https://www.colourlovers.com/lover/{}",
+ "notabug.org": "https://notabug.org/{}",
+ "career.habr": "https://career.habr.com/{}",
+ "ultimate-guitar": "https://ultimate-guitar.com/u/{}",
+ "tradingview": "https://www.tradingview.com/u/{}/",
+ "chaos.social": "https://chaos.social/@{}",
+ "wikipedia": "https://en.wikipedia.org/wiki/Special:CentralAuth/{}?uselang=qqx",
+ "sportsru": "https://www.sports.ru/profile/{}/",
+ "designspiration": "https://www.designspiration.net/{}",
+ "myanimelist": "https://myanimelist.net/profile/{}",
+ "instagram": "https://instagram.com/{}",
+ "discogs": "https://www.discogs.com/user/{}",
+ "znanylekarz.pl": "https://www.znanylekarz.pl/{}",
+ "coinvote": "https://coinvote.cc/profile/{}",
+ "ifttt": "https://www.ifttt.com/p/{}",
+ "crowdin": "https://crowdin.com/profile/{}",
+ "duolingo": "https://www.duolingo.com/profile/{}",
+ "championat": "https://www.championat.com/user/{}",
+ "behance": "https://www.behance.net/{}",
+ "last": "https://last.fm/user/{}",
+ "pr0gramm": "https://pr0gramm.com/user/{}",
+ "note": "https://note.com/{}",
+ "mapify": "https://mapify.travel/{}",
+ "virgool": "https://virgool.io/@{}",
+ "icq": "https://icq.im/{}/en",
+ "etsy": "https://www.etsy.com/people/{}",
+ "lichess": "https://lichess.org/@/{}",
+ "gfycat": "https://gfycat.com/@{}",
+ "genius (users)": "https://genius.com/{}",
+ "nextcloud forum": "https://help.nextcloud.com/u/{}/summary",
+ "pokemon showdown": "https://pokemonshowdown.com/users/{}",
+ "sketchfab": "https://sketchfab.com/{}",
+ "jbzd.com.pl": "https://jbzd.com.pl/uzytkownik/{}",
+ "jellyfin weblate": "https://translate.jellyfin.org/user/{}/",
+ "fixya": "https://www.fixya.com/users/{}",
+ "bookcrossing": "https://www.bookcrossing.com/mybookshelf/{}/",
+ "motherless": "https://motherless.com/m/{}",
+ "pinterest": "https://www.pinterest.com/{}",
+ "wykop": "https://www.wykop.pl/ludzie/{}",
+ "ctan": "https://ctan.org/author/{}",
+ "younow": "https://www.younow.com/{}/",
+ "itemfix": "https://www.itemfix.com/c/{}",
+ "wix": "https://{}.wix.com",
+ "minds": "https://www.minds.com/{}",
+ "xhamster": "https://xhamster.com/users/{}",
+ "zhihu": "https://www.zhihu.com/people/{}",
+ "skyrock": "https://{}.skyrock.com/",
+ "genius (artists)": "https://genius.com/artists/{}",
+ "playstore": "https://play.google.com/store/apps/developer?id={}",
+ "interpals": "https://www.interpals.net/{}",
+ "vero": "https://www.vero.co/{}",
+ "venmo": "https://account.venmo.com/u/{}",
+ "dailymotion": "https://www.dailymotion.com/{}",
+ "holopin": "https://holopin.io/@{}",
+ "lobsters": "https://lobste.rs/u/{}",
+ "nationstates nation": "https://nationstates.net/nation={}",
+ "chaos": "https://chaos.social/@{}",
+ "rclone forum": "https://forum.rclone.org/u/{}",
+ "apclips": "https://apclips.com/{}",
+ "tryhackme": "https://tryhackme.com/p/{}",
+ "livejournal": "https://{}.livejournal.com/",
+ "pornhub": "https://www.pornhub.com/users/{}",
+ "gesundheitsfrage": "https://www.gesundheitsfrage.net/nutzer/{}",
+ "livelib": "https://www.livelib.ru/reader/{}",
+ "myminifactory": "https://www.myminifactory.com/users/{}",
+ "leetcode": "https://leetcode.com/{}",
+ "audiojungle": "https://audiojungle.net/user/{}",
+ "airbit": "https://airbit.com/{}",
+ "linkedin": "https://linkedin.com/in/{}",
+ "quora": "https://www.quora.com/profile/{}",
+ "mix": "https://mix.com/{}",
+ "whatsapp": "https://wa.me/{}",
+ "gab": "https://gab.com/{}",
+ "mewe": "https://mewe.com/i/{}",
+ "parler": "https://parler.com/profile/{}",
+ "wechat": "https://web.wechat.com/{}",
+ "douban": "https://www.douban.com/people/{}",
+ "kakaotalk": "https://story.kakao.com/{}",
+ "qzone": "https://user.qzone.qq.com/{}",
+ "weibo": "https://weibo.com/{}",
+ "renren": "http://www.renren.com/{}",
+ "plurk": "https://www.plurk.com/{}",
+ "path": "https://path.com/{}",
+ "taringa": "https://www.taringa.net/{}",
+ "vkontakte (vk)": "https://vk.com/{}",
+ "odnoklassniki": "https://ok.ru/profile/{}",
+ "stackoverflow": "https://stackoverflow.com/users/{}",
+ "dev.to": "https://dev.to/{}",
+ "replit": "https://replit.com/@{}",
+ "jupyter": "https://jupyter.org/{}",
+ "dzone": "https://dzone.com/users/{}",
+ "coderbyte": "https://coderbyte.com/profile/{}",
+ "topcoder": "https://www.topcoder.com/members/{}",
+ "coursera": "https://www.coursera.org/user/{}",
+ "loco": "https://loco.gg/streamers/{}",
+ "udemy": "https://www.udemy.com/user/{}",
+ "pluralsight": "https://app.pluralsight.com/profile/{}",
+ "datacamp": "https://www.datacamp.com/profile/{}",
+ "edx": "https://www.edx.org/user/{}",
+ "khan academy": "https://www.khanacademy.org/profile/{}",
+ "vkontakte": "https://vk.com/{}",
+ "eevblog": "https://www.eevblog.com/forum/profile/{}",
+ "imdb": "https://www.imdb.com/user/{}",
+ "influenster": "https://www.influenster.com/{}",
+ "care2": "https://www.care2.com/c2c/people/profile.html?pid={}",
+ "cafemom": "https://www.cafemom.com/profile/{}",
+ "nextdoor": "https://nextdoor.com/profile/{}",
+ "patientlikeme": "https://www.patientslikeme.com/members/{}",
+ "vizify": "https://vizify.com/{}",
+ "viadeo": "https://www.viadeo.com/p/{}",
+ "ryze": "https://www.ryze.com/go/{}",
+ "xanga": "https://xanga.com/{}",
+ "blackplanet": "https://blackplanet.com/{}",
+ "classmates": "https://www.classmates.com/people/{}",
+ "cellufun": "https://cellufun.com/users/{}",
+ "gaia online": "https://www.gaiaonline.com/profiles/{}",
+ "travellerspoint": "https://www.travellerspoint.com/member_profile.cfm?user={}",
+ "gather": "https://gather.com/viewProfile.action?memberId={}",
+ "habbo": "https://www.habbo.com/home/{}",
+ "socialvibe": "https://socialvibe.com/{}",
+ "travbuddy": "https://www.travbuddy.com/{}",
+ "flixster": "https://www.flixster.com/user/{}",
+ "untappd": "https://untappd.com/user/{}",
+ "mobli": "https://www.mobli.com/{}",
+ "mylife": "https://www.mylife.com/{}",
+ "anobii": "https://www.anobii.com/{}",
+ "meetme": "https://www.meetme.com/member/{}",
+ "meetic": "https://www.meetic.com/profile/{}",
+ "mocospace": "https://www.mocospace.com/html/profile/{}",
+ "wayn": "https://www.wayn.com/profiles/{}",
+ "livejasmin": "https://www.livejasmin.com/{}",
+ "brazzers": "https://www.brazzers.com/profile/view/{}",
+ "myfreecams": "https://profiles.myfreecams.com/{}",
+ "manyvids": "https://www.manyvids.com/Profile/{}",
+ "spankbang": "https://spankbang.com/p/{}",
+ "camsoda": "https://www.camsoda.com/{}",
+ "pornmd": "https://www.pornmd.com/{}",
+ "hentaifoundry": "https://www.hentai-foundry.com/user/{}",
+ "literotica": "https://www.literotica.com/stories/memberpage.php?uid={}",
+ "fetlife": "https://fetlife.com/users/{}",
+ "inkedin": "https://inkedin.com/{}",
+ "wankzvr": "https://www.wankzvr.com/{}",
+ "nutaku": "https://www.nutaku.net/users/{}",
+ "realitykings": "https://www.realitykings.com/profiles/{}",
+ "bangbros": "https://www.bangbrosnetwork.com/profile/{}",
+ "evilangel": "https://www.evilangel.com/en/user/{}",
+ "naughtyamerica": "https://members.naughtyamerica.com/members/profile/{}",
+ "javlibrary": "https://www.javlibrary.com/en/vl_star.php?s={}",
+ "eroshare": "https://eroshare.com/u/{}",
+ "empornium": "https://empornium.is/userdetails.php?id={}",
+ "pornbox": "https://pornbox.org/{}",
+ "bang": "https://www.bang.com/profile/{}",
+ "clips4sale": "https://www.clips4sale.com/studio/{}",
+ "porn.com": "https://www.porn.com/{}",
+ "xpeeps": "https://xpeeps.com/{}",
+ "cam4": "https://www.cam4.com/{}",
+ "cliphunter": "https://www.cliphunter.com/{}",
+ "spankwire": "https://www.spankwire.com/{}",
+ "efukt": "https://www.efukt.com/user/{}",
+ "mofos": "https://www.mofos.com/user/{}/",
+ "xnxx": "https://www.xnxx.com/profile/{}",
+ "vporn": "https://www.vporn.com/users/{}",
+ "tube8": "https://www.tube8.com/user/{}",
+ "youjizz": "https://www.youjizz.com/profile/{}",
+ "gotporn": "https://www.gotporn.com/{}",
+ "javtube": "https://www.javtube.com/star/{}",
+ "javmodel": "https://www.javmodel.com/profile/{}",
+ "angellist": "https://angel.co/{}",
+ "goodwalls": "https://www.goodwalls.io/{}",
+ "dailybooth": "https://www.dailybooth.com/{}",
+ "xfire": "https://www.xfire.com/profile/{}",
+ "orkut": "https://www.orkut.com.br/Profile.aspx?uid={}",
+ "stumbleupon": "https://www.stumbleupon.com/stumbler/{}",
+ "tagged": "https://www.tagged.com/profile.html?uid={}",
+ "delicious": "https://del.icio.us/{}",
+ "netlog": "https://www.netlog.com/{}/",
+ "friendster": "https://www.friendster.com/{}",
+ "second life": "https://my.secondlife.com/{}",
+ "ask.fm": "https://ask.fm/{}",
+ "formspring": "https://www.formspring.me/{}",
+ "liveleak": "https://www.liveleak.com/c/{}",
+ "livemocha": "https://www.livemocha.com/user/{}",
+ "fanpop": "https://www.fanpop.com/fans/{}",
+ "threadless": "https://www.threadless.com/@{}",
+ "librarything": "https://www.librarything.com/profile/{}",
+ "digg": "https://digg.com/users/{}",
+ "fotolog": "https://www.fotolog.com/{}",
+ "bebo": "https://www.bebo.com/Profile.jsp?MemberId={}",
+ "mixx": "https://www.mixx.com/{}",
+ "technorati": "https://technorati.com/people/technorati/{}/",
+ "vampirefreaks": "https://vampirefreaks.com/{}",
+ "netvibes": "https://www.netvibes.com/{}",
+ "fotki": "https://{}.fotki.com/",
+ "carepages": "https://www.carepages.com/users/{}/profile",
+ "tribe.net": "https://people.tribe.net/{}",
+ "sonico": "https://www.sonico.com/u/{}/",
+ "ecademy": "https://www.ecademy.com/account.php?op=show&uname={}",
+ "asianavenue": "https://www.asianave.com/{}",
+ "crackmes": "https://crackmes.one/user/{}",
+ "hackernoon": "https://hackernoon.com/u/{}",
+ "threads": "https://www.threads.net/@{}",
+ "bluesky": "https://bsky.app/profile/{}",
+ "discord": "https://discord.com/users/{}",
+ "bereal": "https://bere.al/{}",
+ "substack": "https://{}.substack.com/",
+ "micro.blog": "https://micro.blog/{}",
+ "pixelfed": "https://pixelfed.social/{}",
+ "lemmy": "https://lemmy.ml/u/{}",
+ "vrchat": "https://vrchat.com/home/user/{}",
+ "gitea": "https://gitea.io/{}",
+ "stackoverflow.careers": "https://careers.stackoverflow.com/{}",
+ "ravelry": "https://www.ravelry.com/people/{}",
+ "lemon8": "https://www.lemon8-app.com/@{}",
+ "kuaishou": "https://www.kuaishou.com/profile/{}",
+ "gamedev": "https://gamedev.net/profile/{}",
+ "flickr.groups": "https://www.flickr.com/groups/{}",
+ "mastodon.art": "https://mastodon.art/@{}",
+ "xing": "https://www.xing.com/profile/{}",
+ "github.gist": "https://gist.github.com/{}",
+ "indieauth": "https://indieauth.com/{}",
+ "spotify.artist": "https://open.spotify.com/artist/{}",
+ "spotify.podcast": "https://open.spotify.com/show/{}",
+ "bitchute": "https://www.bitchute.com/channel/{}",
+ "rumble.channel": "https://rumble.com/c/{}",
+ "ko-fi": "https://ko-fi.com/{}",
+ "polywork": "https://www.polywork.com/{}",
+ "tildetown": "https://tilde.town/~{}/",
+ "lens.xyz": "https://www.lens.xyz/{}",
+ "farcaster": "https://warpcast.com/{}",
+ "peerlist": "https://peerlist.io/{}",
+ "are.na": "https://www.are.na/{}",
+ "mastodon.gamedev": "https://mastodon.gamedev.place/@{}",
+ "mirror.xyz": "https://mirror.xyz/{}",
+ "gitstalk": "https://gitstalk.netlify.app/{}",
+ "stackshare": "https://stackshare.io/{}",
+ "codestats": "https://codestats.net/users/{}",
+ "wakatime": "https://wakatime.com/@{}",
+ "glitch": "https://glitch.com/@{}",
+ "carrd": "https://{}.carrd.co/",
+ "webflow": "https://{}.webflow.io",
+ "notion": "https://{}.notion.site",
+ "mastodon.lol": "https://mastodon.lol/@{}",
+ "masto.ai": "https://masto.ai/@{}",
+ "pixiv": "https://www.pixiv.net/en/users/{}",
+ "booth.pm": "https://{}.booth.pm/",
+ "spacehey": "https://spacehey.com/{}",
+ "pinterest.board": "https://www.pinterest.com/{}/{}",
+ "kickstarter": "https://www.kickstarter.com/profile/{}",
+ "indiegogo": "https://www.indiegogo.com/individuals/{}",
+ "airtable": "https://airtable.com/{}",
+ "huggingface": "https://huggingface.co/{}",
+ "taptap": "https://www.taptap.io/user/{}",
+ "f6s": "https://www.f6s.com/{}",
+ "figma": "https://www.figma.com/@{}",
+ "crunchbase": "https://www.crunchbase.com/person/{}",
+ "producthunt.collections": "https://www.producthunt.com/@{}/collections",
+ "github.sponsors": "https://github.com/sponsors/{}",
+ "cafecito": "https://cafecito.app/{}",
+ "liberapay": "https://liberapay.com/{}",
+ "soundtrap": "https://www.soundtrap.com/{}",
+ "clubhub": "https://clubhub.app/user/{}",
+ "stackblitz": "https://stackblitz.com/@{}",
+ "codeberg": "https://codeberg.org/{}",
+ "sourcehut": "https://sr.ht/~{}/",
+ "opencollective": "https://opencollective.com/{}",
+ "pinboard": "https://pinboard.in/u:{}",
+ "vscode.marketplace": "https://marketplace.visualstudio.com/publishers/{}",
+ "vscodium.marketplace": "https://open-vsx.org/extension/{}",
+ "muckrack": "https://muckrack.com/{}",
+ "pexels": "https://www.pexels.com/@{}",
+ "wikifunctions": "https://www.wikifunctions.org/wiki/User:{}",
+ "wikimedia": "https://meta.wikimedia.org/wiki/User:{}",
+ "replicate": "https://replicate.com/{}",
+ "civitai": "https://civitai.com/user/{}",
+ "heypi": "https://pi.ai/@{}",
+ "chai": "https://chai.ml/{}",
+ "perplexity": "https://www.perplexity.ai/@{}",
+ "phind": "https://www.phind.com/@{}",
+ "discord.bot": "https://discord.com/application-directory/{}/",
+ "hive.blog": "https://hive.blog/@{}",
+ "steemit": "https://steemit.com/@{}",
+ "peakd": "https://peakd.com/@{}",
+ "publish0x": "https://www.publish0x.com/@{}",
+ "lens.protocol": "https://lenster.xyz/u/{}",
+ "opensea": "https://opensea.io/{}",
+ "foundation": "https://foundation.app/@{}",
+ "rarible": "https://rarible.com/{}",
+ "superrare": "https://superrare.com/{}",
+ "nostr": "https://nostr.com/npub1{}",
+ "cohost": "https://cohost.org/{}",
+ "kinopio": "https://kinopio.club/{}",
+ "vero-app": "https://vero.co/{}",
+ "shopify": "https://{}.myshopify.com",
+ "etsy.shop": "https://www.etsy.com/shop/{}",
+ "tindie": "https://www.tindie.com/stores/{}",
+ "stickermule": "https://www.stickermule.com/{}",
+ "teespring": "https://teespring.com/stores/{}",
+ "depop": "https://www.depop.com/{}",
+ "vinted": "https://www.vinted.com/member/{}",
+ "mercari": "https://www.mercari.com/u/{}",
+ "poshmark": "https://poshmark.com/closet/{}",
+ "caard": "https://{}.caard.co/",
+ "framer": "https://{}.framer.website",
+ "streamelements": "https://streamelements.com/{}",
+ "streamlabs": "https://streamlabs.com/{}",
+ "twitch.team": "https://www.twitch.tv/team/{}",
+ "sketchfab.store": "https://sketchfab.com/stores/{}",
+ "buymeacoffee.shop": "https://www.buymeacoffee.com/s/{}",
+ "vsco.collection": "https://vsco.co/{}/gallery/collection/{}",
+ "kickstarter.projects": "https://www.kickstarter.com/profile/{}/projects",
+ "mymusicstaff": "https://{}.mymusicstaff.com",
+ "musescore": "https://musescore.com/user/{}",
+ "bandlab": "https://www.bandlab.com/{}",
+ "audiomack": "https://audiomack.com/{}",
+ "jamendo": "https://www.jamendo.com/artist/{}",
+ "songkick": "https://www.songkick.com/artists/{}",
+ "audius": "https://audius.co/{}",
+ "galaxydigital": "https://{}.galaxydigital.com",
+ "onnit": "https://www.onnit.com/pro-team/{}/",
+ "bookwyrm": "https://bookwyrm.social/user/{}",
+ "literal": "https://literal.club/{}",
+ "storygraph": "https://app.thestorygraph.com/profile/{}",
+ "readng": "https://readng.co/{}",
+ "discordserver": "https://discord.gg/{}",
+ "guilded": "https://www.guilded.gg/{}",
+ "teamspeak": "https://teamspeak.com/{}",
+ "sessionize.speaker": "https://sessionize.com/s/{}",
+ "disroot": "https://cloud.disroot.org/u/{}",
+ "rentry": "https://rentry.co/{}",
+ "forestapp": "https://www.forestapp.cc/friend/{}",
+ "habitica": "https://habitica.com/profile/{}",
+ "dreamwidth": "https://{}.dreamwidth.org/",
+ "discourse": "https://meta.discourse.org/u/{}",
+ "jekyllthemes": "http://jekyllthemes.org/authors/{}/",
+ "godotassetlib": "https://godotengine.org/asset-library/asset?user={}",
+ "mastodon.online": "https://mastodon.online/@{}",
+ "mastodon.uno": "https://mastodon.uno/@{}",
+ "post": "https://post.news/{}",
+ "nostr.band": "https://nostr.band/p/{}",
+ "snort.social": "https://snort.social/p/{}",
+ "flote": "https://flote.app/user/{}",
+ "opensea.collection": "https://opensea.io/collection/{}",
+ "truth.social": "https://truthsocial.com/@{}",
+ "stackexchange": "https://stackexchange.com/users/{}",
+ "mathoverflow": "https://mathoverflow.net/users/{}",
+ "serverfault": "https://serverfault.com/users/{}",
+ "superuser": "https://superuser.com/users/{}",
+ "askubuntu": "https://askubuntu.com/users/{}",
+ "kaggle.datasets": "https://www.kaggle.com/{}/datasets",
+ "kaggle.competitions": "https://www.kaggle.com/{}/competitions",
+ "kaggle.notebooks": "https://www.kaggle.com/{}/notebooks",
+ "dribbbble.shots": "https://dribbble.com/{}/shots",
+ "dribbble.collections": "https://dribbble.com/{}/collections",
+ "behance.projects": "https://www.behance.net/{}/projects",
+ "solana.fm": "https://solana.fm/address/{}",
+ "etherscan": "https://etherscan.io/address/{}",
+ "btc.com": "https://btc.com/{}",
+ "walletexplorer": "https://www.walletexplorer.com/wallet/{}",
+ "blockchair": "https://blockchair.com/bitcoin/address/{}",
+ "gitbook.space": "https://{}.gitbook.io/",
+ "atlassian": "https://community.atlassian.com/t5/user/viewprofilepage/user-id/{}",
+ "confluence": "https://{}.atlassian.net/wiki/",
+ "jira": "https://{}.atlassian.net/jira/",
+ "chromium": "https://bugs.chromium.org/u/{}",
+ "firefox.bugzilla": "https://bugzilla.mozilla.org/user_profile?user_id={}",
+ "firefox.addons": "https://addons.mozilla.org/en-US/firefox/user/{}",
+ "chrome.webstore": "https://chrome.google.com/webstore/detail/{}",
+ "observablehq": "https://observablehq.com/@{}",
+ "codersrank": "https://profile.codersrank.io/user/{}",
+ "exercism": "https://exercism.org/profiles/{}",
+ "projecteuler": "https://projecteuler.net/profile/{}.png",
+ "chess.com": "https://www.chess.com/member/{}",
+ "worldcubeassociation": "https://www.worldcubeassociation.org/persons/{}",
+ "speedsolving": "https://www.speedsolving.com/members/{}/",
+ "crossref": "https://search.crossref.org/?q={}",
+ "orcid": "https://orcid.org/{}",
+ "semanticscholar": "https://www.semanticscholar.org/author/{}",
+ "arxiv": "https://arxiv.org/search/?searchtype=author&query={}",
+ "zbmath": "https://zbmath.org/authors/?q={}",
+ "dblp": "https://dblp.org/pid/{}",
+ "IEEE": "https://ieeexplore.ieee.org/author/{}",
+ "ACM": "https://dl.acm.org/profile/{}",
+ "pubmed": "https://pubmed.ncbi.nlm.nih.gov/?term={}",
+ "overleaf": "https://www.overleaf.com/user/{}",
+ "zotero": "https://www.zotero.org/{}",
+ "mendeley": "https://www.mendeley.com/profiles/{}",
+ "frontiersin": "https://www.frontiersin.org/people/{}",
+ "loop.frontiers": "https://loop.frontiersin.org/people/{}",
+ "plos": "https://plos.org/author/{}",
+ "nature": "https://www.nature.com/search?author={}",
+ "zenodo": "https://zenodo.org/communities/{}",
+ "figshare": "https://figshare.com/authors/{}",
+ "clio": "https://www.clio.com/user/{}",
+ "openscienceframework": "https://osf.io/{}",
+ "googlescholar": "https://scholar.google.com/citations?user={}",
+ "springer": "https://www.springer.com/gp/search?query={}&submit=Submit",
+ "sciencedirect": "https://www.sciencedirect.com/search?authors={}",
+ "wiley": "https://onlinelibrary.wiley.com/action/doSearch?field1=Contrib&text1={}",
+ "academia": "https://academia.edu/{}",
+ "publons": "https://publons.com/researcher/{}",
+ "biomedcentral": "https://www.biomedcentral.com/search?searchType=journalSearch&authors={}",
+ "peerj": "https://peerj.com/{}",
+ "codingame": "https://www.codingame.com/profile/{}",
+ "atcoder": "https://atcoder.jp/users/{}",
+ "spoj": "https://www.spoj.com/users/{}",
+ "topcoder.member": "https://www.topcoder.com/members/{}",
+ "topcoder.profile": "https://profiles.topcoder.com/{}",
+ "uhunt": "https://uhunt.onlinejudge.org/id/{}",
+ "lichess.tvs": "https://lichess.org/@/{}/tv",
+ "leetcode.contest": "https://leetcode.com/contest/author/{}",
+ "leetcode.rating": "https://leetcode.com/user/{}/",
+ "notion.site": "https://{}.notion.site/",
+ "calendly": "https://calendly.com/{}",
+ "xda": "https://forum.xda-developers.com/m/{}",
+ "raidforums": "https://raidforums.com/User-{}",
+ "crackingforum": "https://crackingforum.com/User-{}",
+ "nulled": "https://www.nulled.to/user/{}",
+ "leakedbb": "https://leakedbb.com/User-{}",
+ "0x00sec": "https://0x00sec.org/u/{}/summary",
+ "exploit.in": "https://exploit.in/user/{}",
+ "hackthissite": "https://www.hackthissite.org/user/view/{}",
+ "pentesterlab": "https://pentesterlab.com/profile/{}",
+ "vulnhub": "https://www.vulnhub.com/author/{}",
+ "root-me": "https://www.root-me.org/{}",
+ "ctftime": "https://ctftime.org/user/{}",
+ "grammarlygo": "https://go.grammarly.com/@{}",
+ "yougov": "https://yougov.co.uk/people/{}",
+ "steamdb": "https://steamdb.info/calculator/{}",
+ "steamgifts": "https://www.steamgifts.com/user/{}",
+ "steamtrades": "https://www.steamtrades.com/user/{}",
+ "steampowered": "https://steamcommunity.com/id/{}/",
+ "steamid": "https://steamid.uk/profile/{}",
+ "steamladder": "https://steamladder.com/profile/{}",
+ "astrobin": "https://www.astrobin.com/users/{}/",
+ "flickr.albums": "https://www.flickr.com/photos/{}/albums",
+ "garmin": "https://connect.garmin.com/modern/profile/{}",
+ "zwift": "https://www.zwift.com/athlete/{}",
+ "komoot": "https://www.komoot.com/user/{}",
+ "mapmyfitness": "https://www.mapmyfitness.com/profile/{}",
+ "fitbit": "https://www.fitbit.com/user/{}",
+ "underarmour": "https://profile.underarmour.com/{}",
+ "nike": "https://www.nike.com/member/profile/{}",
+ "runkeeper": "https://runkeeper.com/user/{}",
+ "stryd": "https://www.stryd.com/powercenter/profile/{}",
+ "polarflow": "https://flow.polar.com/training/profiles/{}",
+ "trainingpeaks": "https://www.trainingpeaks.com/athlete/{}",
+ "endomondo": "https://www.endomondo.com/profile/{}",
+ "heatmap": "https://www.strava.com/heatmap/{}",
+ "relive": "https://relive.cc/view/{}",
+ "figma.community": "https://www.figma.com/@{}/community",
+ "figma.files": "https://www.figma.com/@{}/files",
+ "xcode": "https://developer.apple.com/account/{}",
+ "androiddev": "https://developer.android.com/profile/{}",
+ "googleplay.dev": "https://play.google.com/console/developer/{}",
+ "appleappstore.dev": "https://appstoreconnect.apple.com/{}",
+ "unity": "https://assetstore.unity.com/publishers/{}",
+ "unreal": "https://www.unrealengine.com/marketplace/en-US/profile/{}",
+ "godot": "https://godotengine.org/asset-library/asset?user={}",
+ "aseprite": "https://aseprite.org/api/user/{}",
+ "artstation.marketplace": "https://www.artstation.com/marketplace/sellers/{}",
+ "3dsky": "https://3dsky.org/users/{}",
+ "3dsmax": "https://area.autodesk.com/blogs/author/{}/",
+ "blender": "https://www.blender.org/profile/{}",
+ "blendermarket": "https://blendermarket.com/creators/{}",
+ "blenderartists": "https://blenderartists.org/u/{}",
+ "maxon": "https://www.maxon.net/en/user/{}",
+ "substance3d": "https://substance3d.adobe.com/community/artist/{}",
+ "polyhaven": "https://polyhaven.com/all?a={}",
+ "sketchuptextureclub": "https://www.sketchuptextureclub.com/user/{}",
+ "turbosquid": "https://www.turbosquid.com/Search/Artists/{}",
+ "gumroad.creator": "https://{}.gumroad.com/",
+ "lemon8.creator": "https://www.lemon8-app.com/{}",
+ "librarything.collection": "https://www.librarything.com/catalog/{}"
+}
\ No newline at end of file
diff --git a/src/aliens_eye/ml/__init__.py b/src/aliens_eye/ml/__init__.py
new file mode 100644
index 0000000..ddcb8f2
--- /dev/null
+++ b/src/aliens_eye/ml/__init__.py
@@ -0,0 +1 @@
+"""Machine-learning detection: training, dataset collection, and inference."""
diff --git a/src/aliens_eye/ml/collect.py b/src/aliens_eye/ml/collect.py
new file mode 100644
index 0000000..64ddf79
--- /dev/null
+++ b/src/aliens_eye/ml/collect.py
@@ -0,0 +1,132 @@
+"""Build a labeled training dataset by scanning ground-truth accounts.
+
+Positives come from a curated map of sites to usernames known to exist
+(data/selfcheck.json). Negatives are randomized usernames that almost
+certainly do not exist. Each scan produces one row of FEATURE_SCHEMA values
+plus a label column.
+"""
+
+from __future__ import annotations
+
+import asyncio
+import csv
+import json
+import random
+import string
+from importlib import resources
+from pathlib import Path
+
+import aiohttp
+
+from aliens_eye.core.analyzer import FeatureExtractor
+from aliens_eye.core.config import DEFAULT_HEADERS, ScannerConfig
+from aliens_eye.core.detector import Detector
+from aliens_eye.core.features import FEATURE_SCHEMA, vectorize_features
+from aliens_eye.core.http import fetch_url
+from aliens_eye.core.rate_limit import DomainRateLimiter
+
+
+def load_selfcheck_data() -> dict[str, list[str]]:
+ """Map of site name to usernames known to exist there."""
+ text = (resources.files("aliens_eye.data") / "selfcheck.json").read_text("utf-8")
+ data = json.loads(text)
+ return {
+ site: [value] if isinstance(value, str) else list(value)
+ for site, value in data.items()
+ }
+
+
+def random_username(rng: random.Random) -> str:
+ length = rng.randint(14, 20)
+ return "".join(rng.choices(string.ascii_lowercase + string.digits, k=length))
+
+
+async def _collect_row(
+ session: aiohttp.ClientSession,
+ extractor: FeatureExtractor,
+ rate_limiter: DomainRateLimiter,
+ config: ScannerConfig,
+ site: str,
+ url_template: str,
+ username: str,
+ label: int,
+ logger,
+) -> list[float] | None:
+ try:
+ url = url_template.format(username)
+ except Exception:
+ url = url_template.replace("{}", username)
+ fetch = await fetch_url(session, url, config, rate_limiter, logger)
+ if fetch.error:
+ return None
+ try:
+ bundle = extractor.extract(
+ fetch.content,
+ fetch.final_url,
+ username,
+ site,
+ fetch.status,
+ fetch.response_time,
+ fetch.headers,
+ fetch.redirect_count,
+ )
+ except Exception:
+ return None
+ bundle.features["heuristic_score"] = Detector()._heuristic_score(bundle.features)
+ return vectorize_features(bundle.features) + [float(label)]
+
+
+async def collect_dataset(
+ sites_data: dict[str, str],
+ output_path: Path,
+ logger,
+ negatives_per_site: int = 2,
+ concurrency: int = 20,
+ seed: int | None = None,
+) -> int:
+ """Scan ground-truth positives and random negatives, write a labeled CSV."""
+ selfcheck = load_selfcheck_data()
+ rng = random.Random(seed)
+ config = ScannerConfig(retries=1, timeout=10.0)
+ extractor = FeatureExtractor()
+ rate_limiter = DomainRateLimiter()
+
+ jobs: list[tuple[str, str, str, int]] = []
+ for site, usernames in selfcheck.items():
+ template = sites_data.get(site)
+ if not template:
+ continue
+ for username in usernames:
+ jobs.append((site, template, username, 1))
+ for _ in range(negatives_per_site):
+ jobs.append((site, template, random_username(rng), 0))
+
+ rng.shuffle(jobs)
+ semaphore = asyncio.Semaphore(concurrency)
+ rows: list[list[float]] = []
+
+ connector = aiohttp.TCPConnector(limit=concurrency)
+ async with aiohttp.ClientSession(headers=DEFAULT_HEADERS, connector=connector) as session:
+
+ async def run_job(job: tuple[str, str, str, int]) -> None:
+ site, template, username, label = job
+ async with semaphore:
+ row = await _collect_row(
+ session, extractor, rate_limiter, config,
+ site, template, username, label, logger,
+ )
+ if row is not None:
+ rows.append(row)
+ logger.debug("Collected %s sample for %s", "positive" if label else "negative", site)
+
+ await asyncio.gather(*(run_job(job) for job in jobs))
+
+ output_path = Path(output_path)
+ output_path.parent.mkdir(parents=True, exist_ok=True)
+ with output_path.open("w", encoding="utf-8", newline="") as handle:
+ writer = csv.writer(handle)
+ writer.writerow(FEATURE_SCHEMA + ["label"])
+ writer.writerows(rows)
+
+ logger.info("Wrote %d labeled samples to %s", len(rows), output_path)
+ return len(rows)
diff --git a/src/aliens_eye/ml/inference.py b/src/aliens_eye/ml/inference.py
new file mode 100644
index 0000000..21c5beb
--- /dev/null
+++ b/src/aliens_eye/ml/inference.py
@@ -0,0 +1,84 @@
+"""Pure-python logistic-regression inference.
+
+The model is trained offline with scikit-learn (see train.py) and exported to
+a JSON file holding scaler statistics and coefficients, so runtime inference
+needs no ML dependencies.
+"""
+
+from __future__ import annotations
+
+import json
+import math
+from dataclasses import dataclass
+from importlib import resources
+from pathlib import Path
+
+from aliens_eye.core.features import FEATURE_SCHEMA, vectorize_features
+
+MODEL_RESOURCE = "model.json"
+
+
+class ModelError(ValueError):
+ """Raised when a model file is missing, malformed, or schema-mismatched."""
+
+
+@dataclass
+class MLModel:
+ feature_schema: list[str]
+ mean: list[float]
+ scale: list[float]
+ coef: list[float]
+ intercept: float
+ version: str = "unknown"
+
+ @classmethod
+ def from_dict(cls, data: dict) -> MLModel:
+ try:
+ model = cls(
+ feature_schema=list(data["feature_schema"]),
+ mean=[float(x) for x in data["mean"]],
+ scale=[float(x) for x in data["scale"]],
+ coef=[float(x) for x in data["coef"]],
+ intercept=float(data["intercept"]),
+ version=str(data.get("version", "unknown")),
+ )
+ except (KeyError, TypeError, ValueError) as exc:
+ raise ModelError(f"Malformed model file: {exc}") from exc
+
+ n = len(model.feature_schema)
+ if model.feature_schema != FEATURE_SCHEMA:
+ raise ModelError(
+ "Model feature schema does not match the current FEATURE_SCHEMA; retrain the model."
+ )
+ if not (len(model.mean) == len(model.scale) == len(model.coef) == n):
+ raise ModelError("Model vector lengths do not match the feature schema.")
+ if any(s == 0 for s in model.scale):
+ raise ModelError("Model scale vector contains zeros.")
+ return model
+
+ @classmethod
+ def load(cls, path: Path | None = None) -> MLModel:
+ if path is not None:
+ text = Path(path).read_text(encoding="utf-8")
+ else:
+ text = (
+ resources.files("aliens_eye.data") / MODEL_RESOURCE
+ ).read_text(encoding="utf-8")
+ try:
+ data = json.loads(text)
+ except json.JSONDecodeError as exc:
+ raise ModelError(f"Model file is not valid JSON: {exc}") from exc
+ return cls.from_dict(data)
+
+ def predict_proba(self, features: dict[str, float]) -> float:
+ """Probability that the username exists, in [0, 1]."""
+ x = vectorize_features(features)
+ z = self.intercept
+ for value, mean, scale, coef in zip(x, self.mean, self.scale, self.coef, strict=True):
+ z += coef * ((value - mean) / scale)
+ return _sigmoid(z)
+
+
+def _sigmoid(z: float) -> float:
+ z = max(-50.0, min(50.0, z))
+ return 1.0 / (1.0 + math.exp(-z))
diff --git a/src/aliens_eye/ml/train.py b/src/aliens_eye/ml/train.py
new file mode 100644
index 0000000..6100541
--- /dev/null
+++ b/src/aliens_eye/ml/train.py
@@ -0,0 +1,91 @@
+"""Train the detection model from a labeled feature CSV.
+
+Requires the ``train`` extra: ``pip install aliens-eye[train]``.
+
+The CSV must have one column per FEATURE_SCHEMA entry plus a final ``label``
+column (1 = profile exists, 0 = does not exist). Output is a JSON file with
+StandardScaler statistics and LogisticRegression coefficients consumed by
+:mod:`aliens_eye.ml.inference`.
+"""
+
+from __future__ import annotations
+
+import csv
+import json
+from pathlib import Path
+
+from aliens_eye import __version__
+from aliens_eye.core.features import FEATURE_SCHEMA
+
+
+def load_dataset(path: Path) -> tuple[list[list[float]], list[int]]:
+ X: list[list[float]] = []
+ y: list[int] = []
+ with Path(path).open("r", encoding="utf-8", newline="") as handle:
+ reader = csv.DictReader(handle)
+ missing = [name for name in FEATURE_SCHEMA + ["label"] if name not in (reader.fieldnames or [])]
+ if missing:
+ raise ValueError(f"Dataset is missing columns: {missing}")
+ for row in reader:
+ X.append([float(row[name]) for name in FEATURE_SCHEMA])
+ y.append(int(float(row["label"])))
+ if not X:
+ raise ValueError("Dataset is empty")
+ return X, y
+
+
+def train_model(dataset_path: Path, output_path: Path, logger=None) -> dict:
+ try:
+ import numpy as np
+ from sklearn.linear_model import LogisticRegression
+ from sklearn.model_selection import cross_val_score
+ from sklearn.preprocessing import StandardScaler
+ except ImportError as exc:
+ raise RuntimeError(
+ "Training requires scikit-learn. Install with: pip install aliens-eye[train]"
+ ) from exc
+
+ X_list, y_list = load_dataset(dataset_path)
+ X = np.array(X_list, dtype=float)
+ y = np.array(y_list, dtype=int)
+
+ scaler = StandardScaler()
+ X_scaled = scaler.fit_transform(X)
+
+ clf = LogisticRegression(max_iter=2000, class_weight="balanced", C=1.0)
+
+ n_splits = min(5, int(min((y == 0).sum(), (y == 1).sum())))
+ cv_accuracy = None
+ if n_splits >= 2:
+ scores = cross_val_score(clf, X_scaled, y, cv=n_splits)
+ cv_accuracy = float(scores.mean())
+
+ clf.fit(X_scaled, y)
+
+ scale = np.where(scaler.scale_ == 0, 1.0, scaler.scale_)
+ model = {
+ "version": __version__,
+ "feature_schema": FEATURE_SCHEMA,
+ "mean": scaler.mean_.tolist(),
+ "scale": scale.tolist(),
+ "coef": clf.coef_[0].tolist(),
+ "intercept": float(clf.intercept_[0]),
+ "training": {
+ "samples": int(len(y)),
+ "positives": int((y == 1).sum()),
+ "negatives": int((y == 0).sum()),
+ "cv_accuracy": cv_accuracy,
+ },
+ }
+
+ output_path = Path(output_path)
+ output_path.parent.mkdir(parents=True, exist_ok=True)
+ output_path.write_text(json.dumps(model, indent=2), encoding="utf-8")
+ if logger:
+ logger.info(
+ "Model trained on %d samples (cv accuracy: %s) -> %s",
+ len(y),
+ f"{cv_accuracy:.3f}" if cv_accuracy is not None else "n/a",
+ output_path,
+ )
+ return model
diff --git a/src/aliens_eye/selfcheck.py b/src/aliens_eye/selfcheck.py
new file mode 100644
index 0000000..777d981
--- /dev/null
+++ b/src/aliens_eye/selfcheck.py
@@ -0,0 +1,123 @@
+"""Validate detection accuracy against accounts known to exist.
+
+Scans each (site, username) pair from data/selfcheck.json and checks that the
+detector reports "Found". Doubles as a rot detector for sites.json and as a
+calibration baseline for the ML model.
+"""
+
+from __future__ import annotations
+
+import asyncio
+import json
+from importlib import resources
+
+import aiohttp
+from rich.panel import Panel
+from rich.table import Table
+from rich.text import Text
+
+from aliens_eye.core.analyzer import FeatureExtractor
+from aliens_eye.core.config import DEFAULT_HEADERS, ScannerConfig
+from aliens_eye.core.detector import Detector
+from aliens_eye.core.http import fetch_url
+from aliens_eye.core.rate_limit import DomainRateLimiter
+from aliens_eye.utils.console import get_console
+
+
+def load_selfcheck_data() -> dict[str, str]:
+ """Map of site name to one username known to exist there."""
+ text = (resources.files("aliens_eye.data") / "selfcheck.json").read_text("utf-8")
+ data = json.loads(text)
+ return {
+ site: value if isinstance(value, str) else value[0]
+ for site, value in data.items()
+ if value
+ }
+
+
+async def run_selfcheck(
+ sites_data: dict[str, str],
+ detector: Detector,
+ config: ScannerConfig,
+ logger,
+) -> float:
+ """Run the self-check and return accuracy in [0, 1]."""
+ console = get_console()
+ selfcheck = load_selfcheck_data()
+ extractor = FeatureExtractor()
+ rate_limiter = DomainRateLimiter()
+
+ checks = [
+ (site, sites_data[site], username)
+ for site, username in selfcheck.items()
+ if site in sites_data
+ ]
+ skipped = [site for site in selfcheck if site not in sites_data]
+ if skipped:
+ console.print(f"[yellow]Skipping sites missing from sites.json: {', '.join(skipped)}[/yellow]")
+ if not checks:
+ console.print("[red]No self-check sites available.[/red]")
+ return 0.0
+
+ rows: list[dict] = []
+ semaphore = asyncio.Semaphore(min(10, len(checks)))
+
+ connector = aiohttp.TCPConnector(limit=10)
+ async with aiohttp.ClientSession(headers=DEFAULT_HEADERS, connector=connector) as session:
+
+ async def check(site: str, template: str, username: str) -> None:
+ url = template.format(username)
+ async with semaphore:
+ fetch = await fetch_url(session, url, config, rate_limiter, logger)
+ if fetch.error:
+ rows.append(
+ {"site": site, "username": username, "status": "Error",
+ "confidence": 0, "ok": False, "note": fetch.error[:60]}
+ )
+ return
+ bundle = extractor.extract(
+ fetch.content, fetch.final_url, username, site,
+ fetch.status, fetch.response_time, fetch.headers, fetch.redirect_count,
+ )
+ bundle.features["fingerprint_match_found"] = 0.0
+ bundle.features["fingerprint_match_not_found"] = 0.0
+ detection = detector.predict(bundle.features)
+ rows.append(
+ {"site": site, "username": username, "status": detection.status,
+ "confidence": detection.confidence, "ok": detection.status == "Found",
+ "note": detection.method}
+ )
+
+ await asyncio.gather(*(check(*c) for c in checks))
+
+ rows.sort(key=lambda r: (not r["ok"], r["site"]))
+ table = Table(title="Self-check: accounts known to exist", header_style="bold blue")
+ table.add_column("Site", style="yellow")
+ table.add_column("Username")
+ table.add_column("Detected")
+ table.add_column("Confidence", justify="right")
+ table.add_column("Result")
+ table.add_column("Method", style="dim")
+ for r in rows:
+ table.add_row(
+ r["site"],
+ r["username"],
+ Text(r["status"], style="green" if r["status"] == "Found" else "red"),
+ f"{r['confidence']}%",
+ Text("PASS", style="bold green") if r["ok"] else Text("FAIL", style="bold red"),
+ r["note"],
+ )
+ console.print(table)
+
+ passed = sum(1 for r in rows if r["ok"])
+ errors = sum(1 for r in rows if r["status"] == "Error")
+ accuracy = passed / len(rows)
+ style = "green" if accuracy >= 0.8 else "yellow" if accuracy >= 0.6 else "red"
+ console.print(
+ Panel(
+ f"[{style}]Accuracy: {passed}/{len(rows)} ({accuracy:.0%})[/{style}]"
+ + (f" [dim]{errors} network errors[/dim]" if errors else ""),
+ border_style=style,
+ )
+ )
+ return accuracy
diff --git a/utils/__init__.py b/src/aliens_eye/utils/__init__.py
similarity index 100%
rename from utils/__init__.py
rename to src/aliens_eye/utils/__init__.py
diff --git a/utils/colors.py b/src/aliens_eye/utils/colors.py
similarity index 100%
rename from utils/colors.py
rename to src/aliens_eye/utils/colors.py
diff --git a/src/aliens_eye/utils/console.py b/src/aliens_eye/utils/console.py
new file mode 100644
index 0000000..b9a43a8
--- /dev/null
+++ b/src/aliens_eye/utils/console.py
@@ -0,0 +1,135 @@
+"""Rich-based terminal rendering for scans and reports."""
+
+from __future__ import annotations
+
+import sys
+from typing import Any
+
+from rich.console import Console
+from rich.panel import Panel
+from rich.progress import (
+ BarColumn,
+ MofNCompleteColumn,
+ Progress,
+ SpinnerColumn,
+ TaskProgressColumn,
+ TextColumn,
+ TimeElapsedColumn,
+)
+from rich.table import Table
+from rich.text import Text
+
+_console: Console | None = None
+
+STATUS_STYLES = {
+ "Found": "bold green",
+ "Maybe": "yellow",
+ "Not Found": "red",
+ "Error": "dim red",
+ "Timeout": "dim red",
+ "Unknown": "dim",
+}
+
+
+def get_console(plain: bool = False) -> Console:
+ global _console
+ if _console is None:
+ no_color = plain or not sys.stdout.isatty()
+ _console = Console(no_color=no_color, highlight=False)
+ return _console
+
+
+def set_plain(plain: bool) -> None:
+ global _console
+ no_color = plain or not sys.stdout.isatty()
+ _console = Console(no_color=no_color, highlight=False)
+
+
+def status_text(status: str, confidence: int = 0) -> Text:
+ style = STATUS_STYLES.get(status, "dim")
+ label = f"{status} ({confidence}%)" if confidence > 0 else status
+ return Text(label, style=style)
+
+
+class ScanView:
+ """Progress bar during a scan plus final result table and summary panel."""
+
+ def __init__(self, console: Console | None = None) -> None:
+ self.console = console or get_console()
+ self._progress: Progress | None = None
+ self._task_id = None
+
+ def start(self, username: str, total: int) -> None:
+ self._progress = Progress(
+ SpinnerColumn(),
+ TextColumn("[progress.description]{task.description}"),
+ BarColumn(),
+ MofNCompleteColumn(),
+ TaskProgressColumn(),
+ TimeElapsedColumn(),
+ TextColumn("[green]{task.fields[found]} found[/green]"),
+ console=self.console,
+ transient=False,
+ )
+ self._progress.start()
+ self._task_id = self._progress.add_task(
+ f"Scanning [bold yellow]{username}[/bold yellow]", total=total, found=0
+ )
+
+ def advance(self, found_count: int) -> None:
+ if self._progress is not None and self._task_id is not None:
+ self._progress.update(self._task_id, advance=1, found=found_count)
+
+ def stop(self) -> None:
+ if self._progress is not None:
+ self._progress.stop()
+ self._progress = None
+ self._task_id = None
+
+ def render_results(self, results: list[dict[str, Any]], max_rows: int = 0) -> None:
+ interesting = [r for r in results if r["status"] in {"Found", "Maybe"}]
+ interesting.sort(
+ key=lambda r: (
+ 0 if r["status"] == "Found" else 1,
+ -r.get("confidence", 0),
+ )
+ )
+ if max_rows:
+ interesting = interesting[:max_rows]
+ if not interesting:
+ self.console.print("[dim]No profiles found.[/dim]")
+ return
+ self.console.print(build_results_table(interesting))
+
+ def render_summary(self, results: list[dict[str, Any]], elapsed: float) -> None:
+ found = sum(1 for r in results if r["status"] == "Found")
+ maybe = sum(1 for r in results if r["status"] == "Maybe")
+ not_found = sum(1 for r in results if r["status"] == "Not Found")
+ errors = len(results) - found - maybe - not_found
+ body = (
+ f"[bold green]Found: {found}[/bold green] "
+ f"[yellow]Maybe: {maybe}[/yellow] "
+ f"[red]Not Found: {not_found}[/red] "
+ f"[dim]Errors: {errors}[/dim]\n"
+ f"[blue]Scanned {len(results)} sites in {elapsed:.1f}s[/blue]"
+ )
+ self.console.print(Panel(body, title="Scan Summary", border_style="green"))
+
+
+def build_results_table(results: list[dict[str, Any]], title: str | None = None) -> Table:
+ table = Table(title=title, header_style="bold blue", border_style="dim")
+ table.add_column("Site", style="yellow", no_wrap=True)
+ table.add_column("Status")
+ table.add_column("HTTP", justify="center")
+ table.add_column("URL", overflow="fold")
+ table.add_column("Time", justify="right")
+ for r in results:
+ code = r.get("code", 0)
+ table.add_row(
+ str(r.get("site", ""))[:30],
+ status_text(r.get("status", "Unknown"), r.get("confidence", 0)),
+ Text(str(code), style="green" if code == 200 else "red"),
+ r.get("url", ""),
+ f"{r.get('response_time', 0):.2f}s",
+ )
+ return table
diff --git a/utils/logger.py b/src/aliens_eye/utils/logger.py
similarity index 100%
rename from utils/logger.py
rename to src/aliens_eye/utils/logger.py
diff --git a/tests/conftest.py b/tests/conftest.py
new file mode 100644
index 0000000..71e105a
--- /dev/null
+++ b/tests/conftest.py
@@ -0,0 +1,33 @@
+import pytest
+
+from aliens_eye.utils.logger import setup_logger
+
+
+def logger():
+ return setup_logger(verbose=False)
+
+
+def found_html():
+ return """
+ <html><head>
+ <title>torvalds (Linus Torvalds) - Profile</title>
+ <meta name="description" content="torvalds profile picture, followers and posts">
+ </head><body class="user-profile">
+ <div class="profile-header"><img src="a.png"><img src="b.png"><img src="c.png">
+ <img src="d.png"><img src="e.png"><img src="f.png"></div>
+ <p>Follow torvalds. 1000 followers. Joined 2011. Posts and activity timeline.</p>
+ </body></html>
+ """
+
+
+def not_found_html():
+ return """
+ <html><head><title>Page not found - 404</title></head>
+ <body class="error not-found">
+ <h1>404 Not Found</h1><p>Sorry, this page doesn't exist. User not found.</p>
+ <form action="/search"><input name="q"><input name="x"><input name="y"></form>
+ </body></html>
+ """
diff --git a/tests/test_analyzer.py b/tests/test_analyzer.py
new file mode 100644
index 0000000..99e90d3
--- /dev/null
+++ b/tests/test_analyzer.py
@@ -0,0 +1,62 @@
+from aliens_eye.core.analyzer import FeatureExtractor
+
+
+def extract(html, url="https://example.com/torvalds", username="torvalds", code=200):
+ extractor = FeatureExtractor()
+ return extractor.extract(html, url, username, "example", code, 0.1, {"Server": "nginx"}, 0)
+
+
+def test_found_page_features(found_html):
+ bundle = extract(found_html)
+ f = bundle.features
+ assert f["http_200"] == 1.0
+ assert f["has_username_in_path"] == 1.0
+ assert f["title_has_username"] == 1.0
+ assert f["meta_has_username"] == 1.0
+ assert f["positive_keyword_count"] >= 3
+ assert f["img_count"] == 6.0
+ assert f["profile_section_count"] >= 1
+ assert f["is_homepage"] == 0.0
+
+
+def test_not_found_page_features(not_found_html):
+ bundle = extract(not_found_html, code=404)
+ f = bundle.features
+ assert f["http_404"] == 1.0
+ assert f["http_4xx"] == 1.0
+ assert f["error_keyword_count"] >= 3
+ assert f["error_section_count"] >= 1
+ assert f["form_count"] == 1.0
+ assert f["input_count"] == 3.0
+ assert f["title_has_username"] == 0.0
+
+
+def test_homepage_detection():
+ bundle = extract("<html></html>", url="https://example.com/")
+ assert bundle.features["is_homepage"] == 1.0
+ assert bundle.features["has_username_in_path"] == 0.0
+
+
+def test_auth_pattern_detection():
+ bundle = extract("<html></html>", url="https://example.com/login")
+ assert bundle.features["has_auth_pattern"] == 1.0
+
+
+def test_empty_content_safe():
+ bundle = extract("", code=500)
+ assert bundle.features["http_5xx"] == 1.0
+ assert bundle.features["content_length"] == 0.0
+
+
+def test_fingerprint_fields(found_html):
+ bundle = extract(found_html)
+ assert "torvalds" in bundle.fingerprint["title"].lower()
+ assert bundle.fingerprint["server"] == "nginx"
+ assert "img:6" in bundle.fingerprint["dom_signature"]
+
+
+def test_signals_structure(found_html):
+ bundle = extract(found_html)
+ assert bundle.signals["site"] == "example"
+ assert bundle.signals["url_analysis"]["domain"] == "example.com"
+ assert len(bundle.signals["meta_samples"]) <= 5
diff --git a/tests/test_config_cli.py b/tests/test_config_cli.py
new file mode 100644
index 0000000..524c87a
--- /dev/null
+++ b/tests/test_config_cli.py
@@ -0,0 +1,100 @@
+import json
+from pathlib import Path
+
+from aliens_eye.cli import (
+ TOR_PROXY,
+ apply_cli_overrides,
+ apply_config,
+ apply_scan_profile,
+ build_parser,
+ load_config,
+ parse_formats,
+ parse_formats_value,
+ parse_site_list,
+)
+from aliens_eye.core.config import ScannerConfig
+
+
+def parse(argv):
+ return build_parser().parse_args(argv)
+
+
+def test_parse_formats():
+ assert parse_formats("json,csv") == ["json", "csv"]
+ assert parse_formats("ALL,json") == ["all"]
+ assert parse_formats("") == ["json"]
+ assert parse_formats_value(None) == ["json"]
+ assert parse_formats_value(["json", "md"]) == ["json", "md"]
+
+
+def test_parse_site_list():
+ assert parse_site_list("github, reddit") == ["github", "reddit"]
+ assert parse_site_list(None) is None
+ assert parse_site_list(" , ") is None
+
+
+def test_apply_config_overrides_fields():
+ config = ScannerConfig()
+ defaults = apply_config(
+ config,
+ {
+ "concurrent": 10,
+ "timeout": 3.5,
+ "output_dir": "out",
+ "level": "advanced",
+ "output_formats": ["csv"],
+ "proxy": "http://localhost:8080",
+ },
+ )
+ assert config.concurrent == 10
+ assert config.timeout == 3.5
+ assert config.output_dir == Path("out")
+ assert config.proxy == "http://localhost:8080"
+ assert defaults["level"] == "advanced"
+ assert defaults["output_formats"] == ["csv"]
+
+
+def test_cli_overrides_beat_config():
+ config = ScannerConfig()
+ apply_config(config, {"concurrent": 10})
+ args = parse(["user", "-c", "99", "--tor", "--no-ml", "--no-nsfw", "--site", "github"])
+ apply_cli_overrides(config, args)
+ assert config.concurrent == 99
+ assert config.proxy == TOR_PROXY
+ assert config.use_ml is False
+ assert config.exclude_nsfw is True
+ assert config.include_sites == ["github"]
+
+
+def test_proxy_flag():
+ config = ScannerConfig()
+ args = parse(["user", "--proxy", "socks5://127.0.0.1:1080"])
+ apply_cli_overrides(config, args)
+ assert config.proxy == "socks5://127.0.0.1:1080"
+
+
+def test_scan_profile_quick():
+ config = ScannerConfig()
+ args = parse(["user"])
+ apply_scan_profile(config, "quick", args)
+ assert config.concurrent == 25
+ assert config.use_playwright is False
+
+
+def test_scan_profile_respects_cli_args():
+ config = ScannerConfig()
+ args = parse(["user", "-c", "5"])
+ apply_cli_overrides(config, args)
+ apply_scan_profile(config, "aggressive", args)
+ assert config.concurrent == 5
+ assert config.use_playwright is True
+
+
+def test_load_config_explicit_path(tmp_path, logger):
+ path = tmp_path / "config.json"
+ path.write_text(json.dumps({"concurrent": 7}), encoding="utf-8")
+ assert load_config(str(path), logger) == {"concurrent": 7}
+
+
+def test_load_config_missing_returns_empty(tmp_path, logger):
+ assert load_config(str(tmp_path / "nope.json"), logger) == {}
diff --git a/tests/test_detector.py b/tests/test_detector.py
new file mode 100644
index 0000000..fbed3f2
--- /dev/null
+++ b/tests/test_detector.py
@@ -0,0 +1,96 @@
+from aliens_eye.core.detector import (
+ FOUND_THRESHOLD,
+ NOT_FOUND_THRESHOLD,
+ Detector,
+ _sigmoid,
+)
+
+
+def make_found_features():
+ return {
+ "http_200": 1.0,
+ "has_username_in_path": 1.0,
+ "positive_keyword_count": 6.0,
+ "profile_section_count": 3.0,
+ "meta_has_username": 1.0,
+ "img_count": 10.0,
+ }
+
+
+def make_not_found_features():
+ return {
+ "http_404": 1.0,
+ "error_keyword_count": 5.0,
+ "error_section_count": 2.0,
+ "meta_error_keyword_count": 2.0,
+ }
+
+
+def test_heuristic_found():
+ detector = Detector()
+ result = detector.predict(make_found_features())
+ assert result.status == "Found"
+ assert result.method == "heuristic"
+ assert result.probability is not None
+ assert result.probability > FOUND_THRESHOLD
+ assert 0 < result.confidence <= 99
+
+
+def test_heuristic_not_found():
+ detector = Detector()
+ result = detector.predict(make_not_found_features())
+ assert result.status == "Not Found"
+ assert result.probability < NOT_FOUND_THRESHOLD
+
+
+def test_heuristic_maybe_on_empty():
+ detector = Detector()
+ result = detector.predict({})
+ assert result.status == "Maybe"
+
+
+def test_predict_sets_heuristic_score_feature():
+ detector = Detector()
+ features = make_found_features()
+ detector.predict(features)
+ assert "heuristic_score" in features
+
+
+def test_status_boundaries():
+ detector = Detector()
+ status, _ = detector._status_from_probability(FOUND_THRESHOLD + 0.01)
+ assert status == "Found"
+ status, _ = detector._status_from_probability(NOT_FOUND_THRESHOLD - 0.01)
+ assert status == "Not Found"
+ status, _ = detector._status_from_probability(0.5)
+ assert status == "Maybe"
+
+
+def test_confidence_scales_with_probability():
+ detector = Detector()
+ _, low = detector._status_from_probability(FOUND_THRESHOLD + 0.01)
+ _, high = detector._status_from_probability(0.99)
+ assert high > low
+
+
+def test_load_model_missing_falls_back(logger, tmp_path):
+ detector = Detector()
+ detector.load_model(logger, tmp_path / "missing.json")
+ assert detector.model is None
+ result = detector.predict(make_found_features())
+ assert result.method == "heuristic"
+
+
+def test_load_packaged_model_blends(logger):
+ detector = Detector()
+ detector.load_model(logger)
+ assert detector.model is not None
+ result = detector.predict(make_found_features())
+ assert result.method == "ml+heuristic"
+ assert 0.0 <= result.probability <= 1.0
+
+
+def test_sigmoid_bounds():
+ assert _sigmoid(1000) == 1.0
+ assert _sigmoid(-1000) < 1e-20
+ assert abs(_sigmoid(0) - 0.5) < 1e-9
diff --git a/tests/test_exporter.py b/tests/test_exporter.py
new file mode 100644
index 0000000..ba2b436
--- /dev/null
+++ b/tests/test_exporter.py
@@ -0,0 +1,103 @@
+import csv
+import json
+
+import pytest
+
+from aliens_eye.core.exporter import ResultsExporter
+
+
+def results():
+ return {
+ "alice": [
+ {
+ "site": "github",
+ "url": "https://github.com/alice",
+ "final_url": "https://github.com/alice",
+ "status": "Found",
+ "code": 200,
+ "response_time": 0.5,
+ "confidence": 95,
+ "ai_analysis": {"method": "ml+heuristic"},
+ },
+ {
+ "site": "reddit",
+ "url": "https://reddit.com/user/alice",
+ "final_url": "https://reddit.com/user/alice",
+ "status": "Not Found",
+ "code": 404,
+ "response_time": 0.3,
+ "confidence": 90,
+ "ai_analysis": {},
+ },
+ ],
+ "alice_": [
+ {
+ "site": "github",
+ "url": "https://github.com/alice_",
+ "final_url": "https://github.com/alice_",
+ "status": "Maybe",
+ "code": 200,
+ "response_time": 0.4,
+ "confidence": 60,
+ "ai_analysis": {},
+ },
+ ],
+ }
+
+
+def test_save_all_formats(tmp_path, results):
+ exporter = ResultsExporter(tmp_path)
+ written = exporter.save_results("alice", "basic", results, ["all"])
+ suffixes = {p.suffix for p in written}
+ assert suffixes == {".json", ".csv", ".html", ".md"}
+ for path in written:
+ assert path.exists()
+
+
+def test_json_structure(tmp_path, results):
+ exporter = ResultsExporter(tmp_path)
+ written = exporter.save_results("alice", "basic", results, ["json"])
+ data = json.loads(written[0].read_text(encoding="utf-8"))
+ summary = data["scan_summary"]
+ assert summary["base_username"] == "alice"
+ assert summary["total_variations"] == 2
+ assert summary["total_sites_scanned"] == 3
+ assert summary["total_found"] == 1
+ assert summary["total_high_confidence"] == 1
+ assert data["variations"]["alice"]["scan_info"]["found"] == 1
+ assert data["variations"]["alice"]["scan_info"]["not_found"] == 1
+
+
+def test_csv_rows(tmp_path, results):
+ exporter = ResultsExporter(tmp_path)
+ written = exporter.save_results("alice", "basic", results, ["csv"])
+ rows = list(csv.DictReader(written[0].open(encoding="utf-8")))
+ assert len(rows) == 3
+ assert rows[0]["base_username"] == "alice"
+ assert {r["variation"] for r in rows} == {"alice", "alice_"}
+
+
+def test_markdown_contains_found_and_maybe_only(tmp_path, results):
+ exporter = ResultsExporter(tmp_path)
+ written = exporter.save_results("alice", "basic", results, ["md"])
+ text = written[0].read_text(encoding="utf-8")
+ assert "# Aliens Eye Report" in text
+ assert "https://github.com/alice" in text
+ assert "| github | Found | 95% |" in text
+ assert "| reddit |" not in text
+ assert "Not Found: 1" in text
+
+
+def test_markdown_format_alias(tmp_path, results):
+ exporter = ResultsExporter(tmp_path)
+ written = exporter.save_results("alice", "basic", results, ["markdown"])
+ assert written and written[0].suffix == ".md"
+
+
+def test_html_contains_rows(tmp_path, results):
+ exporter = ResultsExporter(tmp_path)
+ written = exporter.save_results("alice", "basic", results, ["html"])
+ text = written[0].read_text(encoding="utf-8")
+ assert "<td>github</td>" in text
+ assert "https://github.com/alice" in text
diff --git a/tests/test_ml_inference.py b/tests/test_ml_inference.py
new file mode 100644
index 0000000..3fd6be1
--- /dev/null
+++ b/tests/test_ml_inference.py
@@ -0,0 +1,85 @@
+import json
+
+import pytest
+
+from aliens_eye.core.features import FEATURE_SCHEMA
+from aliens_eye.ml.inference import MLModel, ModelError
+
+
+def make_model_dict(coef_value=1.0, intercept=0.0):
+ n = len(FEATURE_SCHEMA)
+ return {
+ "version": "test",
+ "feature_schema": list(FEATURE_SCHEMA),
+ "mean": [0.0] * n,
+ "scale": [1.0] * n,
+ "coef": [coef_value] * n,
+ "intercept": intercept,
+ }
+
+
+def test_predict_proba_zero_features_is_half():
+ model = MLModel.from_dict(make_model_dict())
+ assert abs(model.predict_proba({}) - 0.5) < 1e-9
+
+
+def test_predict_proba_monotonic():
+ model = MLModel.from_dict(make_model_dict())
+ low = model.predict_proba({FEATURE_SCHEMA[0]: 0.0})
+ high = model.predict_proba({FEATURE_SCHEMA[0]: 5.0})
+ assert high > low
+
+
+def test_predict_proba_in_unit_interval():
+ model = MLModel.from_dict(make_model_dict(coef_value=100.0))
+ p = model.predict_proba({name: 100.0 for name in FEATURE_SCHEMA})
+ assert 0.0 <= p <= 1.0
+
+
+def test_schema_mismatch_rejected():
+ data = make_model_dict()
+ data["feature_schema"] = data["feature_schema"][:-1] + ["bogus_feature"]
+ with pytest.raises(ModelError):
+ MLModel.from_dict(data)
+
+
+def test_length_mismatch_rejected():
+ data = make_model_dict()
+ data["coef"] = data["coef"][:-1]
+ with pytest.raises(ModelError):
+ MLModel.from_dict(data)
+
+
+def test_zero_scale_rejected():
+ data = make_model_dict()
+ data["scale"][0] = 0.0
+ with pytest.raises(ModelError):
+ MLModel.from_dict(data)
+
+
+def test_missing_key_rejected():
+ data = make_model_dict()
+ del data["intercept"]
+ with pytest.raises(ModelError):
+ MLModel.from_dict(data)
+
+
+def test_load_invalid_json_rejected(tmp_path):
+ path = tmp_path / "model.json"
+ path.write_text("{not json", encoding="utf-8")
+ with pytest.raises(ModelError):
+ MLModel.load(path)
+
+
+def test_load_packaged_model():
+ model = MLModel.load()
+ assert model.feature_schema == FEATURE_SCHEMA
+ p = model.predict_proba({name: 0.0 for name in FEATURE_SCHEMA})
+ assert 0.0 <= p <= 1.0
+
+
+def test_load_custom_path(tmp_path):
+ path = tmp_path / "model.json"
+ path.write_text(json.dumps(make_model_dict()), encoding="utf-8")
+ model = MLModel.load(path)
+ assert model.version == "test"
diff --git a/tests/test_scanner.py b/tests/test_scanner.py
new file mode 100644
index 0000000..dbfbe84
--- /dev/null
+++ b/tests/test_scanner.py
@@ -0,0 +1,105 @@
+import aiohttp
+import pytest
+from aioresponses import aioresponses
+
+from aliens_eye.core.analyzer import FeatureExtractor
+from aliens_eye.core.config import ScannerConfig
+from aliens_eye.core.detector import Detector
+from aliens_eye.core.fingerprints import FingerprintStore
+from aliens_eye.core.scanner import UsernameScanner, build_connector
+
+SITES = {
+ "alpha": "https://alpha.example/{}",
+ "beta": "https://beta.example/users/{}",
+}
+
+
+def scanner(tmp_path, logger):
+ config = ScannerConfig(
+ retries=0,
+ rate_limit_delay=0.0,
+ output_dir=tmp_path / "results",
+ fingerprints_path=tmp_path / "fp.json",
+ plain_output=True,
+ )
+ return UsernameScanner(
+ sites_data=dict(SITES),
+ config=config,
+ extractor=FeatureExtractor(),
+ detector=Detector(),
+ fingerprints=FingerprintStore(config.fingerprints_path),
+ logger=logger,
+ )
+
+
+async def test_scan_all_sites_mocked(scanner, found_html, not_found_html):
+ with aioresponses() as mocked:
+ mocked.get("https://alpha.example/torvalds", status=200, body=found_html)
+ mocked.get("https://beta.example/users/torvalds", status=404, body=not_found_html)
+ results = await scanner.scan_all_sites("torvalds")
+
+ assert len(results) == 2
+ by_site = {r["site"]: r for r in results}
+ assert by_site["alpha"]["status"] == "Found"
+ assert by_site["alpha"]["code"] == 200
+ assert by_site["beta"]["status"] == "Not Found"
+ assert by_site["beta"]["code"] == 404
+ for r in results:
+ assert set(r) >= {"site", "url", "status", "code", "confidence", "ai_analysis"}
+
+
+async def test_scan_handles_connection_error(scanner):
+ with aioresponses() as mocked:
+ mocked.get(
+ "https://alpha.example/ghost",
+ exception=aiohttp.ClientConnectionError("refused"),
+ )
+ mocked.get("https://beta.example/users/ghost", status=200, body="<html></html>")
+ results = await scanner.scan_all_sites("ghost")
+
+ by_site = {r["site"]: r for r in results}
+ assert by_site["alpha"]["status"] == "Error"
+
+
+async def test_scan_with_variations_basic(scanner, found_html):
+ with aioresponses() as mocked:
+ mocked.get("https://alpha.example/torvalds", status=200, body=found_html)
+ mocked.get("https://beta.example/users/torvalds", status=200, body=found_html)
+ all_results = await scanner.scan_with_variations("torvalds", "basic")
+
+ assert list(all_results) == ["torvalds"]
+ assert len(all_results["torvalds"]) == 2
+
+
+def test_format_url_fallbacks():
+ assert (
+ UsernameScanner._format_url("x", "https://x.com/{}", "bob") == "https://x.com/bob"
+ )
+ assert (
+ UsernameScanner._format_url("x", "https://x.com/{user}", "bob")
+ == "https://x.com/bob"
+ )
+
+
+async def test_build_connector_tcp():
+ config = ScannerConfig()
+ connector = build_connector(config, 5)
+ assert isinstance(connector, aiohttp.TCPConnector)
+ await connector.close()
+
+
+async def test_build_connector_socks():
+ from aiohttp_socks import ProxyConnector
+
+ config = ScannerConfig(proxy="socks5://127.0.0.1:9050")
+ connector = build_connector(config, 5)
+ assert isinstance(connector, ProxyConnector)
+ await connector.close()
+
+
+async def test_build_connector_http_proxy_uses_tcp():
+ config = ScannerConfig(proxy="http://127.0.0.1:8080")
+ connector = build_connector(config, 5)
+ assert isinstance(connector, aiohttp.TCPConnector)
+ await connector.close()
diff --git a/tests/test_sites.py b/tests/test_sites.py
new file mode 100644
index 0000000..314354c
--- /dev/null
+++ b/tests/test_sites.py
@@ -0,0 +1,66 @@
+import json
+
+from aliens_eye.core.scanner import filter_sites, load_nsfw_sites, load_sites_data
+from aliens_eye.ml.collect import load_selfcheck_data
+
+SITES = {
+ "github": "https://github.com/{}",
+ "gitlab": "https://gitlab.com/{}",
+ "reddit": "https://www.reddit.com/user/{}",
+ "pornhub": "https://example.org/{}",
+}
+
+
+def test_include_filter():
+ result = filter_sites(SITES, include=["git"])
+ assert set(result) == {"github", "gitlab"}
+
+
+def test_exclude_filter():
+ result = filter_sites(SITES, exclude=["git"])
+ assert set(result) == {"reddit", "pornhub"}
+
+
+def test_include_and_exclude():
+ result = filter_sites(SITES, include=["git"], exclude=["lab"])
+ assert set(result) == {"github"}
+
+
+def test_case_insensitive():
+ result = filter_sites(SITES, include=["GitHub"])
+ assert set(result) == {"github"}
+
+
+def test_no_filters_returns_all():
+ assert filter_sites(SITES) == SITES
+
+
+def test_packaged_sites_load_and_valid():
+ sites = load_sites_data()
+ assert len(sites) > 800
+ for name, template in sites.items():
+ assert isinstance(template, str)
+ assert template.startswith("http"), f"{name} has invalid template"
+
+
+def test_custom_sites_path(tmp_path):
+ path = tmp_path / "sites.json"
+ path.write_text(json.dumps(SITES), encoding="utf-8")
+ assert load_sites_data(path) == SITES
+
+
+def test_nsfw_list_subset_of_sites():
+ sites = load_sites_data()
+ nsfw = load_nsfw_sites()
+ assert nsfw
+ missing = [name for name in nsfw if name not in sites]
+ assert not missing, f"NSFW entries missing from sites.json: {missing}"
+
+
+def test_selfcheck_sites_exist():
+ sites = load_sites_data()
+ selfcheck = load_selfcheck_data()
+ missing = [site for site in selfcheck if site not in sites]
+ assert not missing, f"selfcheck entries missing from sites.json: {missing}"
+ for site, usernames in selfcheck.items():
+ assert usernames, f"{site} has no usernames"
diff --git a/tests/test_train.py b/tests/test_train.py
new file mode 100644
index 0000000..ad7af8e
--- /dev/null
+++ b/tests/test_train.py
@@ -0,0 +1,61 @@
+import csv
+
+import pytest
+
+from aliens_eye.core.features import FEATURE_SCHEMA
+from aliens_eye.ml.train import load_dataset
+
+sklearn = pytest.importorskip("sklearn")
+
+from aliens_eye.ml.inference import MLModel # noqa: E402
+from aliens_eye.ml.train import train_model # noqa: E402
+
+
+def write_dataset(path, rows):
+ with path.open("w", encoding="utf-8", newline="") as handle:
+ writer = csv.writer(handle)
+ writer.writerow(FEATURE_SCHEMA + ["label"])
+ writer.writerows(rows)
+
+
+def make_rows(n=40):
+ rows = []
+ for i in range(n):
+ label = i % 2
+ row = [0.0] * len(FEATURE_SCHEMA)
+ # Separate classes on the http_200 / http_404 features with noise from i.
+ row[FEATURE_SCHEMA.index("http_200")] = float(label)
+ row[FEATURE_SCHEMA.index("http_404")] = float(1 - label)
+ row[FEATURE_SCHEMA.index("content_length")] = 1000.0 * label + i
+ rows.append(row + [float(label)])
+ return rows
+
+
+def test_load_dataset_validates_columns(tmp_path):
+ path = tmp_path / "bad.csv"
+ path.write_text("a,b\n1,2\n", encoding="utf-8")
+ with pytest.raises(ValueError, match="missing columns"):
+ load_dataset(path)
+
+
+def test_load_dataset_empty(tmp_path):
+ path = tmp_path / "empty.csv"
+ path.write_text(",".join(FEATURE_SCHEMA + ["label"]) + "\n", encoding="utf-8")
+ with pytest.raises(ValueError, match="empty"):
+ load_dataset(path)
+
+
+def test_train_and_inference_roundtrip(tmp_path):
+ data_path = tmp_path / "data.csv"
+ model_path = tmp_path / "model.json"
+ write_dataset(data_path, make_rows())
+
+ info = train_model(data_path, model_path)
+ assert info["training"]["samples"] == 40
+ assert model_path.exists()
+
+ model = MLModel.load(model_path)
+ found = model.predict_proba({"http_200": 1.0, "content_length": 1500.0})
+ missing = model.predict_proba({"http_404": 1.0})
+ assert found > 0.5
+ assert missing < 0.5
diff --git a/tests/test_variations.py b/tests/test_variations.py
new file mode 100644
index 0000000..a849021
--- /dev/null
+++ b/tests/test_variations.py
@@ -0,0 +1,31 @@
+from aliens_eye.core.variations import generate_username_variations
+
+
+def test_basic_returns_only_original():
+ assert generate_username_variations("alice", "basic") == ["alice"]
+
+
+def test_intermediate_adds_variations():
+ variations = generate_username_variations("alice", "intermediate")
+ assert "alice" in variations
+ assert "alice_" in variations
+ assert "alice123" in variations
+ assert len(variations) > 5
+
+
+def test_advanced_adds_prefixes_and_suffixes():
+ variations = generate_username_variations("alice", "advanced")
+ assert "realalice" in variations
+ assert "alice_official" in variations
+ assert len(variations) > 100
+
+
+def test_no_duplicates():
+ for level in ("basic", "intermediate", "advanced"):
+ variations = generate_username_variations("alice", level)
+ assert len(variations) == len(set(variations))
+
+
+def test_original_always_first():
+ for level in ("basic", "intermediate", "advanced"):
+ assert generate_username_variations("alice", level)[0] == "alice"