Categories: Kali Linux

LeakLooker : Find open databases with Shodan

LeakLooker can be used to find open MongoDB, CouchDB and Elasticsearch database, it also includes Kibana instances. Script parses results from Shodan, excluding empty and compromised databases. Everything is sorted and presented in clickable way.

Requirements

  • Python 3
  • Shodan paid plan, except Kibana search

Put your Shodan API key in line 65

pip3 install shodan
pip3 install colorama
pip3 install hurry.filesize

Also Read : CIRTKit : Tools for the Computer Incident Response Team

Usage

root@kali:~/# python leaklooker.py -h
LeakLooker – Find open databases
https://medium.com/@woj_ciech https://github.com/woj-ciech/
usage: leaklooker.py [-h] [–elastic] [–couchdb] [–mongodb] [–kibana]
[–first FIRST] [–last LAST]
LeakLooker
optional arguments:
-h, –help show this help message and exit
–elastic Elasti search (default: False)
–couchdb CouchDB (default: False)
–mongodb MongoDB (default: False)
–kibana Kibana (default: False)
Pages:
–first FIRST First page (default: None)
–last LAST Last page (default: None)
You need to specify first and last page

Example

root@kali:~/# python leaklooker.py –mongodb –couchdb –kibana –elastic –first 12 –last 14
[…]
———————————-Elastic – Page 12——————————–
Found 25069 results
IP: http://xxx.xxx.xxx.xxx:9200/_cat/indices?v
Size: 1G
Country: France
Indices:
.monitoring-kibana-6-2019.01.08
[…]
IP: http://yyy.yyy.yyy.yyy:9200/_cat/indices?v
Size: 144G
Country: China
Indices:
zhuanli
hx_person
[…]
———————————-CouchDB – Page 12——————————–
Found 5932 results
IP: http://xxx.xxx.xxx:5984/_utils
ountry: Austria
new_fron_db
test_db
IP: http://yyy.yyy.yyy.yyy:5984/_utils
Country: United States
_replicator
_users
backup_20180917
backup_db
eio_local
tfa_pos
———————————-MongoDB – Page 12——————————–
Found 66680 results
IP: xxx.xxx.xxx.xxx
Size: 6G
Country: France
Database name: Warn
Size: 80M
Collections:
Warn
system.indexes
Database name: xhprofprod
Size: 5G
Collections:
results
system.indexes
IP: yyy.yyy.yyy.yyy
Size: 544M
Country: Ukraine
Database name: local
Size: 32M
Collections:
startup_log
Database name: ace_stat
Size: 256M
Collections:
stat_minute
system.indexes
stat_hourly
stat_daily
[…]
Database name: ace
Size: 256M
Collections:
usergroup
system.indexes
scheduletask
dpigroup
portforward
wlangroup
[…]
———————————-Kibana – Page 12——————————–
Found 10464 results
IP: http://xxx.xxx.xxx.xxx:5601/app/kibana#/discover?_g=()
Country: Germany
IP: http://yyy.yyy.yyy.yyy:5601/app/kibana#/discover?_g=()
Country: United States
IP: http://zzz.zzz.zzz.zzz:5601/app/kibana#/discover?_g=()
Country: United Kingdom

Screenshots

Disclaimer

Tool has been made for educational purposes only. I’m not responsible for any damage caused.

R K

Recent Posts

Shadow-rs : Harnessing Rust’s Power For Kernel-Level Security Research

shadow-rs is a Windows kernel rootkit written in Rust, demonstrating advanced techniques for kernel manipulation…

1 week ago

ExecutePeFromPngViaLNK – Advanced Execution Of Embedded PE Files via PNG And LNK

Extract and execute a PE embedded within a PNG file using an LNK file. The…

2 weeks ago

Red Team Certification – A Comprehensive Guide To Advancing In Cybersecurity Operations

Embark on the journey of becoming a certified Red Team professional with our definitive guide.…

3 weeks ago

CVE-2024-5836 / CVE-2024-6778 : Chromium Sandbox Escape via Extension Exploits

This repository contains proof of concept exploits for CVE-2024-5836 and CVE-2024-6778, which are vulnerabilities within…

3 weeks ago

Rust BOFs – Unlocking New Potentials In Cobalt Strike

This took me like 4 days (+2 days for an update), but I got it…

3 weeks ago

MaLDAPtive – Pioneering LDAP SearchFilter Parsing And Security Framework

MaLDAPtive is a framework for LDAP SearchFilter parsing, obfuscation, deobfuscation and detection. Its foundation is…

3 weeks ago