| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
A non-destructive, production-ready database exposure scanner written in Go. This tool automatically discovers and assesses database services on target hosts, focusing on exposure, misconfiguration, weak authentication, and known vulnerabilities.
This tool is intended only for authorized security assessments of servers/databases you are permitted to test.
cd /home/maheer/Dbscanner
go mod tidy
go build -o dbscanner ./cmd/dbscannergo mod download# Scan a single host
./dbscanner -t 192.168.1.100
# Scan multiple hosts
./dbscanner -t 192.168.1.100,192.168.1.101,192.168.1.102
# Scan a CIDR range
./dbscanner -t 10.0.0.0/24
# Scan hosts from a file
./dbscanner -iL hosts.txt# Thorough scan with custom ports
./dbscanner -t 192.168.1.0/24 -profile thorough -p 3306,5432,27017,6379
# Quick scan with JSON output
./dbscanner -t 10.0.0.1 -profile fast -format json -o report.json
# Verbose scan with custom timeout
./dbscanner -t target.example.com -v -timeout 10s
# Skip certain checks
./dbscanner -t 192.168.1.100 -skip-auth -skip-nmapOptions: -target, -t Target host(s): IP, hostname, CIDR, or comma-separated list -target-file, -iL File containing targets (one per line) -ports, -p Ports to scan (e.g., '3306,5432' or '1-1000') -profile Scan profile: fast, default, thorough -output, -o Output file path -format Output format: text, json -timeout Connection timeout (default: 5s) -concurrency Maximum concurrent scans (default: 50) -nmap-path Path to nmap binary (default: nmap) -nmap-timing Nmap timing template 0-5 (default: 3) -skip-nmap Skip Nmap scanning -skip-auth Skip authentication checks -skip-config Skip configuration checks -verbose, -v Verbose output
| Profile | Description | Ports | Rate Limit |
|---|---|---|---|
| fast | Quick scan with minimal ports and checks | 6 ports | 5ms |
| default | Standard scan with common DB ports | 35+ ports | 10ms |
| thorough | Full scan with all ports and deep checks | 35+ ports | 20ms |
| Database | Default Ports | Auth Check | Config Check | Fingerprint |
|---|---|---|---|---|
| MySQL | 3306, 3307 | Yes | Yes | Yes |
| MariaDB | 3306, 3307 | Yes | Yes | Yes |
| PostgreSQL | 5432, 5433 | Yes | Yes | Yes |
| Microsoft SQL | 1433, 1434 | Yes | Yes | Yes |
| MongoDB | 27017-27019 | Yes | Yes | Yes |
| Redis | 6379, 6380 | Yes | Yes | Yes |
| Oracle | 1521, 1522 | Limited | Limited | Yes |
| Cassandra | 9042, 9160 | Limited | No | Yes |
| Elasticsearch | 9200, 9300 | Yes | No | Yes |
| Memcached | 11211 | Yes | No | Yes |
| CouchDB | 5984, 6984 | Limited | No | No |
| Neo4j | 7474, 7687 | No | No | No |
| ArangoDB | 8529 | No | No | No |
| RethinkDB | 28015, 29015 | No | No | No |
The text report includes:
Structured JSON output suitable for integration with other tools and systems.
| Database | Checks |
|---|---|
| MySQL | local_infile, remote root, empty passwords |
| PostgreSQL | SSL config, superuser count, log settings |
| MSSQL | xp_cmdshell, OLE automation, CLR, remote admin |
| MongoDB | Authentication enabled |
| Redis | requirepass, protected-mode, bind address |
| Level | Criteria |
|---|---|
| Critical | No auth, default creds with high privileges, remote code exec |
| High | Weak auth, unencrypted, public exposure, EOL versions |
| Medium | Self-signed certs, weak protocols, risky configurations |
| Low | Minor misconfigurations, informational findings |
Dbscanner/ ├── cmd/ │ └── dbscanner/ │ └── main.go # CLI entry point ├── pkg/ │ ├── targets/ │ │ └── targets.go # Target parsing and expansion │ ├── scanner/ │ │ └── scanner.go # Port scanning and service detection │ ├── fingerprint/ │ │ └── fingerprint.go # Protocol fingerprinting │ ├── nmap/ │ │ ├── nmap.go # Nmap integration │ │ └── vulndb.go # Vulnerability database │ ├── auth/ │ │ ├── auth.go # Authentication checking │ │ └── drivers.go # Database driver implementations │ ├── configcheck/ │ │ └── configcheck.go # Configuration auditing │ └── report/ │ └── report.go # Report generation ├── go.mod └── README.md
This tool is provided for authorized security testing and assessment purposes only. Users are responsible for ensuring they have proper authorization before scanning any systems. The authors assume no liability for misuse or damage caused by this tool.
MIT License
| Back | FazBrowse Home | New Git URL |