{"id":47178766,"url":"https://github.com/f0rle/bulbascan","last_synced_at":"2026-03-13T07:04:21.134Z","repository":{"id":343054337,"uuid":"1176107822","full_name":"F0RLE/Bulbascan","owner":"F0RLE","description":"Selective proxy routing scanner for OpenWrt and sing-box. Detects geo/WAF blocks and generates router rule sets.","archived":false,"fork":false,"pushed_at":"2026-03-12T00:57:46.000Z","size":410,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-12T04:36:55.459Z","etag":null,"topics":["dnsmasq","geoblocking","network-diagnostics","networking","openwrt","proxy","router","rust","sing-box","xray"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/F0RLE.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":"docs/roadmap.md","authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-08T16:20:38.000Z","updated_at":"2026-03-12T00:57:49.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/F0RLE/Bulbascan","commit_stats":null,"previous_names":["f0rle/ip-bulba-checker","f0rle/bulbascan"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/F0RLE/Bulbascan","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/F0RLE%2FBulbascan","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/F0RLE%2FBulbascan/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/F0RLE%2FBulbascan/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/F0RLE%2FBulbascan/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/F0RLE","download_url":"https://codeload.github.com/F0RLE/Bulbascan/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/F0RLE%2FBulbascan/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30460818,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-13T06:34:02.089Z","status":"ssl_error","status_checked_at":"2026-03-13T06:33:49.182Z","response_time":60,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dnsmasq","geoblocking","network-diagnostics","networking","openwrt","proxy","router","rust","sing-box","xray"],"created_at":"2026-03-13T07:04:16.684Z","updated_at":"2026-03-13T07:04:21.128Z","avatar_url":"https://github.com/F0RLE.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ch1 align=\"center\"\u003e🥔 Bulbascan\u003c/h1\u003e\n  \u003cp align=\"center\"\u003e\n    \u003cb\u003eHigh-speed selective-proxy scanner for geo-block detection and geosite routing list generation.\u003c/b\u003e\n  \u003c/p\u003e\n  \u003cp align=\"center\"\u003e\n    \u003ca href=\"https://www.rust-lang.org\"\u003e\u003cimg src=\"https://img.shields.io/badge/rust-1.94%2B-orange?logo=rust\u0026logoColor=white\" alt=\"Rust\"\u003e\u003c/a\u003e\n    \u003ca href=\"LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/badge/license-AGPL--3.0-red.svg\" alt=\"License: AGPL-3.0\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/F0RLE/Bulbascan/actions\"\u003e\u003cimg src=\"https://img.shields.io/github/actions/workflow/status/F0RLE/Bulbascan/ci.yml?label=CI\u0026logo=github\" alt=\"CI\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/F0RLE/Bulbascan/releases\"\u003e\u003cimg src=\"https://img.shields.io/github/v/release/F0RLE/Bulbascan?include_prereleases\u0026label=release\" alt=\"Release\"\u003e\u003c/a\u003e\n  \u003c/p\u003e\n\u003c/p\u003e\n\n---\n\n## What it does\n\nBulbascan scans a list of domains and determines whether each one is:\n\n| Verdict | Meaning |\n|---|---|\n| ✅ **Accessible** | Reachable directly — no proxy needed |\n| 🌍 **GeoBlocked** | Geo-restriction or captcha confirmed |\n| 🔀 **ProxyRequired** | Dual-vantage confirmed — must route through proxy |\n| 🛡️ **WAF** | CDN/server actively blocking (Cloudflare, AWS WAF, etc.) |\n| 🔍 **NeedsReview** | Ambiguous result — flagged for manual check |\n| 💀 **Dead** | Unreachable on all transports |\n\nResults are exported as **ready-to-use routing configs** for Xray, sing-box, OpenWRT PBR, and V2Ray `geosite.dat`.\n\n### Live Scanner UI\n\nWhile scanning, the real-time progress bar shows detailed statistics across two lines. The top line updates your current configuration, and the bottom line tracks progress.\n\n\u003cimg width=\"1102\" height=\"214\" alt=\"Снимок экрана 2026-03-12 203858\" src=\"https://github.com/user-attachments/assets/010c08a2-ef99-4444-970c-6cc05db2cf72\" /\u003e\n\n| Indicator       | Meaning |\n|-----------------|---------|\n| `Profile: Balanced` | Current speed tier (derived from worker count) |\n| `Workers: 200`   | Active concurrency. Use **→**/**←** (tier jump) or **↑**/**↓** (±1) during the scan to dynamically adjust. |\n| `1%`            | Percentage of the domain list processed so far |\n| `1254/75018`     | Domains processed / Total domains in queue |\n| `✓ 631`         | Domains confirmed **Accessible** (direct HTTP/TCP connection works) |\n| `✗ 520`          | Domains confirmed **Blocked** (Geo-block, WAF, Captcha, or ISP redirect) |\n| `○ 103`          | Domains confirmed **Dead** (Unreachable, NXDOMAIN, TCP timeout) |\n| `41/s`          | Current average processing speed (domains per second) |\n| `ETA: 30m`      | Estimated time remaining |\n\n---\n\n## Key Features\n\n| Feature | Details |\n|---|---|\n| **Dual-transport probing** | Browser-emulating [`wreq`](https://crates.io/crates/wreq) first, plain `reqwest`+`rustls` fallback |\n| **Browser verification** | Local Chromium DOM dump to confirm captcha vs. hard block |\n| **Smart WAF bypass** | 32-entry randomised UA pool, realistic headers, status-gated header scoring; UA rotation + cookie-aware retry on low-confidence WAF/Captcha |\n| **Signature engine** | Aho-Corasick on body/header/API patterns with specificity scoring |\n| **RU/BY ISP detection** | Recognises Rostelecom, Beltelecom, BELPAK, MTS, Beeline, Megafon, TTK block pages and Роскомнадзор redirects |\n| **27 service profiles** | Mapped to host roles (`web`, `auth`, `api`, `playback`…); editable via `profiles.toml` |\n| **Control-proxy comparison** | Dual-vantage: local vs proxy → highest-confidence geo detection |\n| **Incremental state** | Resume interrupted scans; skip already-known blocked/direct domains |\n| **Cloudflare Radar** | Prefix-level geo data enrichment (optional) |\n| **Multi-format export** | `geosite.dat`, sing-box rule-set, Xray rules, OpenWRT PBR + dnsmasq |\n| **Multi-file input** | Drag multiple `.dat`/`.txt` files — auto-detected and merged; duplicates deduplicated |\n| **Dynamic concurrency** | Press **→** / **←** to jump tiers, **↑** / **↓** for ±1 adjustment; **q** to cancel |\n| **Potato Mode** | `--potato` flag for themed ASCII banners, potato progress bars, and starchier error messages |\n| **Benchmarked** | Criterion benchmarks for signature matching performance |\n\n---\n\n## Quick Start\n\n```sh\n# Scan a list of domains\nbulbascan domains.txt\n\n# Scan with a SOCKS5 control proxy for dual-vantage comparison\nbulbascan domains.txt --control-proxy socks5://127.0.0.1:1080\n\n# Export all router configs in one pass\nbulbascan domains.txt --control-proxy socks5://127.0.0.1:1080 --export-profile full\n```\n\n**Windows drag-and-drop:** Drop one or more `.txt` / `.dat` files onto `bulbascan.exe` — all files are merged and scanned together. Results appear in `results_\u003cfirst-filename\u003e/`.\n\n---\n\n## Input Format\n\nPlain text, one domain per line. Comments and annotations supported:\n\n```\n# This is a comment\nexample.com\nchat.openai.com\n!blocked.com        # Expected: blocked (validation mode)\n?maybe.com          # Expected: needs review\n```\n\nAlso understands geosite-source formats: `full:domain`, `domain-suffix:domain`, `DOMAIN-SUFFIX,domain`.\n\n\u003e **Public Domain Lists:** You can find community-maintained domain categories (to use as input files) in the [v2fly/domain-list-community](https://github.com/v2fly/domain-list-community/tree/master/data) repository.\n\n---\n## Output Files\n\nDepending on your `--export-profile`, Bulbascan generates different sets of files in the `--results-dir`. \n\nFor a complete breakdown of what each file contains (including Xray, sing-box, and OpenWRT exports), see the **[Outputs Documentation](docs/outputs.md)**.\n\n---\n\n## Service Profiles\n\nService-to-host mappings live in [`profiles.toml`](profiles.toml) next to the binary.  \n**Edit this file to add services — no recompilation needed.**\n\n```toml\n[[services]]\nname = \"MyService\"\nbrowser_verification = true\nexpected_roles = [\"web\", \"api\"]\ncritical_roles  = [\"web\", \"api\"]\n\n[[services.hosts]]\ndomain = \"myservice.com\"\nrole   = \"web\"\nprobe_paths = [\"/\", \"/login\"]\n\n[[services.hosts]]\ndomain = \"api.myservice.com\"\nrole   = \"api\"\nprobe_paths = [\"/\"]\n```\n\nIf `profiles.toml` is missing, a compiled-in fallback is used automatically.\n\n---\n\n## CLI Reference\n\nRun `bulbascan --help` for the full, up-to-date syntax.\n\nFor detailed usage scenarios, including proxy configurations, state management, and Cloudflare Radar fetching, read the **[Full Usage Guide](docs/usage.md)**.\n\n---\n\n## Building from Source\n\n**Requirements:** Rust 1.94+\n\n```sh\ngit clone https://github.com/F0RLE/Bulbascan\ncd Bulbascan\n\ncargo build            # development\ncargo build --release  # optimised binary (LTO + strip)\ncargo test             # 88 unit tests\ncargo bench            # criterion benchmarks\ncargo clippy           # lint check\n```\n\n---\n\n## Architecture\n\nFor a deep dive into how Bulbascan works under the hood (including worker pooling, the signature engine, and `src/progress.rs` live console manipulation), see the **[Architecture Documentation](docs/architecture.md)**.\n\n\n---\n\n## Environment Variables\n\n| Variable | Purpose |\n|---|---|\n| `CLOUDFLARE_RADAR_TOKEN` | Cloudflare Radar geo-prefix enrichment (optional) |\n| `CI` | Suppresses \"Press Enter to exit…\" prompt on Windows |\n\n---\n\n## Contributing\n\nContributions welcome — detection improvements, service profiles, signature patterns, and export formats.\n\n- Read [CONTRIBUTING.md](CONTRIBUTING.md) for dev setup, code style, and PR checklist\n- Check [docs/roadmap.md](docs/roadmap.md) for high-impact areas to contribute\n\n**Adding a service or signature requires zero code changes** — just edit `profiles.toml` or `src/signatures.rs`.\n\n---\n\n## Documentation\n\n| Document | Contents |\n|---|---|\n| [Usage Guide](docs/usage.md) | All scan modes, CLI examples, control-proxy setup |\n| [Output Files](docs/outputs.md) | Every output file and export profile explained |\n| [Architecture](docs/architecture.md) | Module map, verdict model, signature engine |\n| [Limits](docs/limits.md) | Current limitations and how to work around them |\n| [Roadmap](docs/roadmap.md) | What's planned: from accuracy fixes to transport-layer probing |\n\n---\n\n---\n\n## 💼 Commercial Licensing\n\nBulbascan is licensed under **GNU Affero General Public License v3.0 (AGPL-3.0)**. \n\n### Why AGPL?\nThe AGPL ensures that the community benefits from any improvements made to the scanner, even when used as a remote service (SaaS). If you use Bulbascan to power a commercial product or service, you are required to share your source code.\n\n### Commercial Exceptions\nIf your organization cannot comply with the AGPL-3.0 requirements or needs to integrate Bulbascan into a proprietary, closed-source product, we offer **Commercial License Exceptions**.\n\n**Benefits of a Commercial License:**\n- Right to use Bulbascan in proprietary (closed-source) products.\n- Access to a **Premium Signature Feed** with faster updates for high-value targets (AI services, streaming, etc.).\n- Priority technical support and custom feature development.\n- Removal of all AGPL-related legal obligations.\n\n**Contact for Licensing:** `lrshka.klim7766@gmail.com`\n\n---\n\n## License\n\n[AGPL-3.0](LICENSE) © 2026\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ff0rle%2Fbulbascan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ff0rle%2Fbulbascan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ff0rle%2Fbulbascan/lists"}