MCPcopy Index your code
hub / github.com/S1N6H/Barcha

github.com/S1N6H/Barcha @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
12 symbols 29 edges 1 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Barcha Logo

🚀 Barcha

Go Reference
License: MIT

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 🔖

🌟 Features

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

Barcha Scan Preview 1

Figure 1. Per‑host SQLi testing via Ghauri.

Barcha Ghauri Integration

Figure 2. Live host detection & redirect checks.

📋 Requirements

  • Go 1.18+
  • Ghauri installed & on PATH
  • A Shodan API key in SHODAN_API_KEY

⚡ Installation

go 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! 🎉

Core symbols most depended-on inside this repo

displayBanner
called by 1
main.go
promptDomain
called by 1
main.go
shodanScan
called by 1
main.go
tcpCheck
called by 1
main.go
saveToDB
called by 1
main.go
showResults
called by 1
main.go
reverseLookup
called by 1
main.go
ghauriScan
called by 1
main.go

Shape

Function 10
Struct 2

Languages

Go100%

Modules by API surface

main.go12 symbols

For agents

$ claude mcp add Barcha \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact