Skip to content
tomhomaPublic

About

online username search tool dev by rust

Resources

Stars

4 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

26 Commits

Folders and files

Repository files navigation

Conan - OSINT tool

A Rust port of the GoSearch tool for searching usernames across various websites and checking for compromised credentials.

Features

  • 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

πŸ†• Recent Improvements

See IMPROVEMENTS.md for detailed documentation of recent enhancements:

Bug Fixes

  • βœ… Fixed PROFILE_COUNT not resetting between searches
  • βœ… Added comprehensive input validation
  • βœ… Improved error handling with guaranteed cleanup
  • βœ… Created sample data.json generator

New Features

  • πŸš€ Batch Username Search - Search multiple usernames at once
  • πŸ₯ Health Check Endpoint - /health and /status endpoints
  • πŸ“Š 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

API Endpoints

  • POST /search - Single username search
  • POST /batch-search - Multiple username search
  • GET /health - Server health check
  • GET /status - Detailed server status

License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.

Installation

Prerequisites

Install from Source

cargo install --git https://github.com/tomhoma/conan.git

Build from Source

git clone https://github.com/tomhoma/conan.git
cd conan
cargo build --release

The binary will be available at target/release/conan

Usage

CLI Usage

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"

Web UI Usage

To start the web interface, run:

conan --web

Then, open your browser and navigate to http://127.0.0.1:8080.

Development Usage

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 -- --web

Breach Directory Integration

Conan can search Breach Directory for compromised passwords associated with usernames. This requires an API key:

Getting an API Key

  1. Visit RapidAPI - Breach Directory
  2. Sign up for an account and subscribe to the API
  3. Copy your API key from the dashboard

Usage with Breach Directory

# 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.

How It Works

  • 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.

Command Line Options

  • -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

Output

The tool provides:

  1. Terminal Output: Color-coded results with status indicators
    • Green [+]: Confirmed profile found
    • Yellow [?]: Possible profile (unverified)
    • Red [-]: No profile or error
  2. File Output: Results saved to username.txt
  3. Web UI: Results are displayed in the browser.

Project Structure

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

Differences from Go Version

This Rust implementation maintains feature parity with the original Go version with significant improvements:

  1. 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
  2. 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
  3. 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)
  4. Error Handling:

    • Robust Result<T, E> types with proper error propagation
    • Graceful timeout handling without crashes
    • Structured error context using anyhow
  5. 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
  6. Dependencies:

    • Well-maintained Rust ecosystem: Tokio (async), Reqwest (HTTP), Serde (JSON)
    • Compile-time dependency resolution ensures version compatibility
    • No runtime dependency downloads

Dependency Mapping

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

Building for Different Platforms

# 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

Performance Considerations

  • Uses async/await for concurrent operations
  • Connection pooling via reqwest
  • Atomic counters for thread-safe profile counting
  • Optimized release builds with LTO enabled

Contributing

Contributions are welcome! Please ensure:

  1. Code follows Rust conventions (cargo clippy)
  2. Tests pass (cargo test)
  3. Format code (cargo fmt)

Attribution

This project is a Rust port of GoSearch, which is licensed under GPL-3.0. We thank the original authors for their work.

About

online username search tool dev by rust

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages