- Issue: The atomic counter persisted between web searches, causing incorrect profile counts
- Fix: Added
PROFILE_COUNT.store(0, Ordering::Relaxed)at the start of each search - Files:
src/web/server.rs:33
- Issue: Username input was not validated, allowing path traversal and invalid characters
- Fix: Added comprehensive validation:
- Length check (1-100 characters)
- Path traversal prevention (
.., /, \) - Proper error responses with 400 Bad Request
- Files:
src/web/server.rs:22-30
- Issue: Early returns prevented file cleanup on errors
- Fix: Implemented proper error handling with guaranteed cleanup:
- Wrapped search logic in async block
- Always cleanup output files regardless of success/failure
- Return partial results with error messages
- Files:
src/web/server.rs:50-93
- Issue: Critical file needed for compilation was gitignored
- Fix: Created
generate_sample_data.pyto generate test dataset - Files:
generate_sample_data.py,src/data.json
- GET
/health- Returns server health status and version - GET
/status- Returns detailed server status, uptime, and configuration - Benefits:
- Easy monitoring and debugging
- Verify server is running before searches
- Check if website data is loaded correctly
curl http://localhost:8080/health
# {"status":"healthy","version":"1.0.0"}- POST
/batch-search- Search multiple usernames at once - Features:
- Process multiple usernames in a single request
- Individual validation and error handling per username
- JSON response with per-username results and profile counts
- Web UI: New "Batch Search" tab with textarea input
Example Request:
{
"usernames": ["user1", "user2", "user3"],
"api_key": "optional_key"
}Example Response:
{
"results": [
{
"username": "user1",
"success": true,
"message": "Found 15 profiles",
"profile_count": 15
}
]
}- New
export.rsmodule for structured data export - Features:
- Export search results to JSON format
- Export search results to CSV format
- Structured data with timestamps
- Support for multiple result types
- Usage: Foundation for future export endpoints
- Animated spinner during searches
- Disabled buttons to prevent multiple submissions
- Real-time search duration display
- Single Search tab for individual lookups
- Batch Search tab for multiple usernames
- Clean, modern interface with smooth transitions
- Color-coded message boxes (success/error/info)
- Detailed error messages with troubleshooting hints
- Graceful degradation on failures
- Loading spinner with animation
- Success/error indicators
- Batch result cards with status icons
- Better typography and spacing
- Responsive layout
- Python script to generate test
data.json - Includes 12 popular platforms:
- GitHub, Twitter, Instagram, Reddit
- LinkedIn, YouTube, TikTok, Facebook
- Pinterest, Twitch, Medium, Snapchat
- Helps with testing and development
Usage:
python3 generate_sample_data.py- Added middleware logger to web server
- Better error messages with context
- Console logging for debugging
- Guaranteed file cleanup with proper error handling
- Proper async error propagation
- Memory-safe atomic operations
- Input sanitization to prevent path traversal
- Length limits on user input
- Validation before processing
- New
exportmodule for data export functionality - Separated concerns (search, export, web)
- Reusable components
Search for a single username across all configured websites.
Request:
{
"username": "testuser",
"api_key": "optional_breach_directory_key"
}Response: Plain text results with profile URLs
Search for multiple usernames at once.
Request:
{
"usernames": ["user1", "user2"],
"api_key": "optional_breach_directory_key"
}Response:
{
"results": [
{
"username": "user1",
"success": true,
"message": "Found 10 profiles",
"profile_count": 10
}
]
}Check if the server is healthy.
Response:
{
"status": "healthy",
"version": "1.0.0"
}Get detailed server status.
Response:
{
"server": "Conan OSINT",
"version": "1.0.0",
"uptime": "1234567890",
"websites_loaded": true
}cargo run --release -- webServer will start at: http://127.0.0.1:8080
# Single username
cargo run --release -- search --username testuser
# With Breach Directory API
cargo run --release -- search --username testuser -b YOUR_API_KEY
# No false positives
cargo run --release -- search --username testuser --no-false-positives- Open browser to
http://127.0.0.1:8080 - Enter username in the search box
- (Optional) Add Breach Directory API key
- Click "Search"
- View results in real-time
- Click "Batch Search" tab
- Enter usernames (one per line)
- (Optional) Add API key
- Click "Search All"
- View results for all usernames
β Profile count persisted between searches β No input validation β Poor error handling β No health checks β Basic web UI β Missing data.json file β No batch search capability
β Profile count resets correctly β Comprehensive input validation β Robust error handling with cleanup β Health and status endpoints β Modern, responsive web UI β Sample data generator included β Batch search for multiple users β Loading states and progress tracking β JSON/CSV export foundation
src/web/server.rs- Complete refactor with new endpointssrc/lib.rs- Added export modulesrc/search.rs- No changes (maintained compatibility)src/models.rs- No changessrc/breach_directory.rs- No changes
src/export.rs- Export functionality modulesrc/web/static/script.js- Enhanced with batch searchsrc/web/static/style.css- New styles for UI improvementssrc/web/static/index.html- Updated with tabs and loadinggenerate_sample_data.py- Sample data generatorsrc/data.json- Generated test datasetIMPROVEMENTS.md- This documentation
cargo build --release
# β
Compiles successfullycargo test
# Includes tests for export module- Start server:
cargo run -- web - Open:
http://127.0.0.1:8080 - Test single search
- Test batch search
- Check health endpoint
- Verify error handling with invalid input
- Export endpoint (GET /export/{username}/{format})
- Search history with caching
- Rate limiting per IP
- Webhook notifications
- Dark mode toggle
- Search result filtering
- Statistics dashboard
- Docker containerization
- CI/CD pipeline
- Complete website database from GoSearch
- Result caching with TTL
- Database backend for history
- WebSocket support for real-time updates
- Progressive result streaming
- Original GoSearch: https://github.com/ibnaleem/gosearch
- Rust Documentation: https://doc.rust-lang.org/
- Actix Web: https://actix.rs/
- RapidAPI Breach Directory: https://rapidapi.com/rohan-patra/api/breachdirectory
To contribute to this project:
- Review the code structure
- Add tests for new features
- Update documentation
- Follow Rust best practices
- Ensure all tests pass before committing
GPL-3.0 - See LICENSE file for details
Version: 1.0.0 Last Updated: 2025-11-13 Improvements By: Claude Code Assistant