LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 04-15-2016, 03:13 AM   #1
robbtek
LQ Newbie
 
Registered: Mar 2009
Posts: 26

Rep: Reputation: 0
sqlmap back-end DBMS not identified


I test my application (php) for sql injection vulnerability.
I try this command:

./sqlmap -u "http://MY_SITE/loginform.php" --data="username=1&password=1" --threads=6 --level=5 --risk=3 --dbms MySQL --random-agent

...

[09:45:10] [INFO] POST parameter 'username' seems to be 'OR boolean-based blind - WHERE or HAVING clause' injectable
....
POST parameter 'username' is vulnerable. Do you want to keep testing the others (if any)? [y/N] N
sqlmap identified the following injection point(s) with a total of 576 HTTP(s) requests:
---
Parameter: username (POST)
Type: boolean-based blind
Title: OR boolean-based blind - WHERE or HAVING clause
Payload: username=-7507) OR 8139=8139-- GQuQ&password=1
---
[09:45:32] [INFO] testing MySQL
[09:45:32] [WARNING] the back-end DBMS is not MySQL
[09:45:32] [CRITICAL] sqlmap was not able to fingerprint the back-end database management system. Support for this DBMS will be implemented at some point
[09:45:32] [WARNING] HTTP error codes detected during run:
403 (Forbidden) - 119 times

Im sure that is Mysql, why sqlmap dont recognize it? how can tune it with other option?

Thanks
 
Old 04-20-2016, 07:18 PM   #2
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,902

Rep: Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052
You need to take another look at the documentation. Wrong switches in your string. Basically sqlmap doesn't know how to determine the DBMS because yours is formatted incorrectly.

Found here: https://github.com/sqlmapproject/sqlmap/wiki/Usage

Code:
Direct connection to the database

Option: -d

Run sqlmap against a single database instance. This option accepts a connection string in one of following forms:

    DBMS://USER:PASSWORD@DBMS_IP:DBMS_PORT/DATABASE_NAME (MySQL, Oracle, Microsoft SQL Server, PostgreSQL, etc.)
    DBMS://DATABASE_FILEPATH (SQLite, Microsoft Access, Firebird, etc.)

For example:

$ python sqlmap.py -d "mysql://admin:admin@192.168.21.17:3306/testdb" -f --bann\
er --dbs --users
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PDO implementation why sqlmap still able to penetrate? newbie14 Linux - Security 0 03-24-2015 09:44 PM
Myth TV back end or front end. thedoctor Linux - Newbie 1 05-20-2010 07:58 PM
gui read out of back end command lines from gui front end activation? how? Siljrath Linux - General 0 10-24-2008 10:11 AM
Mythbuntu front-end and back-end questions... Liambiscuit Linux - Software 4 09-28-2008 05:11 PM
Multiple Apache - Front-end & Back-end in one server grant-skywalker Linux - Server 3 08-27-2008 02:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 12:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration