
Barcha is your SwissโArmy knife for SQL Injection reconnaissance ๐. Written in Go, it automates: Shodan enumeration of SSL hosts ๐ต๏ธโโ๏ธ Liveness & redirect checks (ignores bad certs) ๐ Automated Ghauri tests for each host ๐ก๏ธ SQLite logging of every scan ๐
Barcha is your SwissโArmy knife for SQL Injection reconnaissance ๐. Written in Go, it automates:
๐ก Shodan Dork: hostname:"*.example.com" -403 -503 -http.title:"Invalid URL" -302 -404
๐ง Reverse DNS: IP โ hostname, skips amazonaws NAT addresses
๐ Redirect Handling: Follows HTTP โ HTTPS transparently
๐ TLS Flexibility: Ignores expired/selfโsigned certs
๐ ๏ธ Ghauri Integration: ghauri -u --random-agent --confirm --force-ssl --level=3 --dbs --dump --batch
๐ History: Logs into barcha_history.db
๐ธ Screenshots

Figureย 1. Perโhost SQLi testing via Ghauri.

Figureย 2. Live host detection & redirect checks.
PATHSHODAN_API_KEYgo install github.com/S1N6H/Barcha@latest
๐ Usage Export your Shodan key
export SHODAN_API_KEY="YOUR_SHODAN_API_KEY" Run Barcha
./barcha
Enter your target domain when prompted (e.g. example.com)
Watch it go! ๐