0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Easily find database connection info from common web applications.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

>= 1.2.9
 Project Readme

database_sleuth¶ ↑

This library is designed to parse popular web application configuration files to extract database connection information for use in other applications or scripts.

To get started, simply require the library:

require 'database_sleuth'

Then, simply create a new instance of the class specifying which application you’re collecting information from (note that the library expects the config file to be located in the directory the executing file is running from):

sleuth = DatabaseSleuth.new(:joomla)
sleuth.find_db_info
sleuth.dbhost #=> mysql.example.com
sleuth.dbname #=> somedbname
sleuth.dbuser #=> someusername
sleuth.dbpass #=> somepassword

sleuth.manual_connection_string #=> mysql -u someusername -psomepassword -h mysql.example.com somedbname

Supported Applications¶ ↑

Currently, the following applications are supported:

  • Drupal

  • Gallery

  • Joomla

  • MediaWiki

  • phpBB

  • WordPress

  • ZenCart

Copyright © 2010 Joel Watson. See LICENSE for details.