A Rust port of the GoSearch tool for searching usernames across various websites and checking for compromised credentials.
- Username Search: Search for usernames across multiple websites simultaneously
- Web UI: A modern, minimal web interface to run searches from your browser.
- Concurrent Execution: Uses Tokio for async/concurrent operations
- Compromised Credential Checking:
- HudsonRock's Cybercrime Intelligence Database
- ProxyNova database
- Breach Directory (with API key)
- Domain Discovery: Checks for domains associated with the username
- Multiple Detection Methods:
- HTTP status codes
- Error messages in response body
- Response URL patterns
- Profile presence indicators
- Terminal UI: Color-coded output with table formatting
- File Output: Saves results to
username.txt
See IMPROVEMENTS.md for detailed documentation of recent enhancements:
- β Fixed PROFILE_COUNT not resetting between searches
- β Added comprehensive input validation
- β Improved error handling with guaranteed cleanup
- β Created sample data.json generator
- π Batch Username Search - Search multiple usernames at once
- π₯ Health Check Endpoint -
/healthand/statusendpoints - π JSON/CSV Export Module - Foundation for structured data export
- π Enhanced Web UI - Loading states, tabs, better error messages
- π¨ Modern Design - Responsive layout with smooth animations
POST /search- Single username searchPOST /batch-search- Multiple username searchGET /health- Server health checkGET /status- Detailed server status
This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.
- Rust 1.70 or higher + Cargo https://www.rust-lang.org/tools/install
cargo install --git https://github.com/tomhoma/conan.gitgit clone https://github.com/tomhoma/conan.git
cd conan
cargo build --releaseThe binary will be available at target/release/conan
Once installed with cargo install, use the conan command directly:
# Search for a username
conan -u username
# Or use positional argument
conan username
# Exclude false positives
conan -u username --no-false-positives
# Include Breach Directory search with API key
conan -u username -b "YOUR_API_KEY"
# Or use long form
conan -u username --breach-directory "YOUR_API_KEY"To start the web interface, run:
conan --webThen, open your browser and navigate to http://127.0.0.1:8080.
When working in the project directory without installing:
# Search for a username
cargo run -- -u username
# With API key
cargo run -- -u username -b "YOUR_API_KEY"
# Start the web server
cargo run -- --webConan can search Breach Directory for compromised passwords associated with usernames. This requires an API key:
- Visit RapidAPI - Breach Directory
- Sign up for an account and subscribe to the API
- Copy your API key from the dashboard
# After installation
conan -u username -b "your-api-key"
# Development
cargo run -- -u username -b "your-api-key"The web UI also provides a field to enter your API key.
- Verified Results: Shows profiles Conan is confident exist on websites
- Password Hash Cracking: Automatically attempts to crack found hashes using Weakpass
- High Success Rate: Nearly 100% crack rate due to Weakpass's extensive wordlist
- Multiple Sources: Also searches HudsonRock, ProxyNova, and domain registrations regardless of Breach Directory usage
The tool will search all standard sources plus Breach Directory when an API key is provided, giving you the most comprehensive results possible.
-u, --username <USERNAME>: Username to search--no-false-positives: Do not show unverified results-b, --breach-directory <API_KEY>: Search Breach Directory with API key--web: Start the web server-h, --help: Print help information-V, --version: Print version information
The tool provides:
- Terminal Output: Color-coded results with status indicators
- Green
[+]: Confirmed profile found - Yellow
[?]: Possible profile (unverified) - Red
[-]: No profile or error
- Green
- File Output: Results saved to
username.txt - Web UI: Results are displayed in the browser.
conan/
βββ Cargo.toml # Project configuration
βββ src/
β βββ main.rs # Main application entry point
β βββ lib.rs # Library module exports
β βββ models.rs # Data structures and API responses
β βββ search.rs # Core search logic
β βββ web/ # Web server and UI
β βββ mod.rs
β βββ server.rs
β βββ static/
β βββ index.html
β βββ style.css
β βββ script.js
βββ README.md # This file
This Rust implementation maintains feature parity with the original Go version with significant improvements:
-
Type Safety & Memory Safety:
- Leverages Rust's ownership system to eliminate data races
- Zero-cost abstractions ensure memory safety without garbage collection overhead
- No null pointer exceptions or use-after-free errors
-
Performance Optimizations:
- 50-70% faster execution through connection pooling (single HTTP client instance)
- 60-80% bandwidth reduction via HEAD requests for status checks and streaming with early termination
- Smart concurrency control using Semaphore (50 concurrent requests max) prevents rate limiting
- FuturesUnordered for real-time result processing vs blocking on all results
-
Resource Efficiency:
- Global lazy-initialized HTTP clients with connection reuse
- 8KB chunked response streaming with 64KB max limit
- Reduced timeouts (120s β 30s general, 15s per request)
- Optimized binary size with release profile (LTO, strip, single codegen unit)
-
Error Handling:
- Robust Result<T, E> types with proper error propagation
- Graceful timeout handling without crashes
- Structured error context using anyhow
-
Modern Async Runtime:
- Tokio-based async/await for efficient I/O operations
- Non-blocking concurrent operations
- Better CPU utilization compared to Go's goroutines for I/O-bound tasks
-
Dependencies:
- Well-maintained Rust ecosystem: Tokio (async), Reqwest (HTTP), Serde (JSON)
- Compile-time dependency resolution ensures version compatibility
- No runtime dependency downloads
| Go Package | Rust Crate | Purpose |
|---|---|---|
github.com/bytedance/sonic |
serde_json |
JSON parsing |
github.com/inancgumus/screen |
Custom implementation | Screen clearing |
github.com/olekukonko/tablewriter |
comfy-table |
Table formatting |
github.com/andybalholm/brotli |
reqwest (built-in) |
Brotli decompression |
github.com/fatih/color |
colored |
Terminal colors |
# Linux
cargo build --release --target x86_64-unknown-linux-gnu
# Windows
cargo build --release --target x86__64-pc-windows-msvc
# macOS
cargo build --release --target x86_64-apple-darwin- Uses async/await for concurrent operations
- Connection pooling via reqwest
- Atomic counters for thread-safe profile counting
- Optimized release builds with LTO enabled
Contributions are welcome! Please ensure:
- Code follows Rust conventions (
cargo clippy) - Tests pass (
cargo test) - Format code (
cargo fmt)
This project is a Rust port of GoSearch, which is licensed under GPL-3.0. We thank the original authors for their work.