A secure and user-friendly Ruby tool for searching the dark web through Tor. This tool provides both an interactive menu interface and a command-line interface for searching multiple dark web search engines.
- 🔒 Secure searching through Tor network
- � Multiple dark web search engines (Ahmia, Torch)
- 📊 Smart result ranking and filtering
- � Automatic result saving with timestamps
- 📜 Search history tracking
- 🔍 Boolean search operators (AND, OR, NOT)
- 🖥️ Interactive menu interface
- � Command-line interface
- ⚡ Parallel search execution
- 🔐 Built-in safety features
- Ensure you have Ruby installed (2.7 or higher)
- Install Tor and ensure it's running (default: localhost:9050)
- Clone this repository:
git clone https://github.com/yourusername/darkweb_search.git cd darkweb_search - Install dependencies:
bundle install
Run the tool in interactive mode:
ruby darkweb_search.rb -iThe interactive menu provides these options:
- 🔍 Perform a search
- 📜 View recent searches
- 💡 Show search tips
- 🌐 Check Tor connection
- ⚙️ Show settings q. Quit
Basic search:
ruby darkweb_search.rb "your search query"With options:
ruby darkweb_search.rb -o results.txt "bitcoin AND wallet"Available options:
-h, --help Show help message
-i Interactive mode
-o FILE Save results to FILE (default: results_TIMESTAMP.txt)
-v Verbose output
-q Quiet mode
-
Boolean Operators:
AND: "bitcoin AND wallet" (requires both terms) OR: "bitcoin OR ethereum" (either term) NOT: "bitcoin NOT scam" (excludes term) -
Phrase Search:
"exact phrase search" (matches exact phrase) -
Best Practices:
- Be specific in your queries
- Use multiple related terms
- Try alternative spellings
- Start broad, then narrow down
darkweb_search/
├── darkweb_search.rb # Main application
├── Gemfile # Dependencies
├── lib/
│ ├── config.rb # Configuration
│ └── search_engines/
│ ├── ahmia.rb # Ahmia search engine
│ ├── base_engine.rb # Base search engine class
│ └── torch.rb # Torch search engine
└── results/ # Search results directory
- All searches are routed through Tor
- Results are saved locally
- No direct website access
- Built-in safety warnings
- Automatic URL sanitization
- NEVER download files from .onion sites
- NEVER enter credentials on dark web sites
- Use Tor Browser for actually visiting sites
- Don't click links directly
- Keep your system updated
- All results are saved to the
results/directory - Each search creates a timestamped file
- Results include:
- Title
- URL
- Description (when available)
- Source engine
- Timestamp
Default configuration can be modified in lib/config.rb:
- Tor proxy settings
- Rate limiting
- Retry attempts
- Search engine options
This project is licensed under the MIT License - see the LICENSE file for details.
This tool is for research purposes only. Be careful when accessing the dark web and always follow applicable laws and regulations.