Author Topic: SQL Injection Question  (Read 1275 times)

0 Members and 1 Guest are viewing this topic.

Offline peak

  • Serf
  • *
  • Posts: 26
  • Cookies: 0
    • View Profile
SQL Injection Question
« on: October 26, 2012, 08:19:47 pm »
Hello EZ Members

The Task is very simple tough the answer is not.

There are 3 Rules in this real life sqlinjection.

1. MySQL Server without Subqueries (Subqueries are not supported <4.1)
2. Union Injection without Output.
3. Error Messages contain no extra information (no error based injection possible)
4. No Sleep and benchmark does not make a significant change in response time (no time based injection possible)

But I do know the tables and columns!

What I think could be the solution:

I can work out a different kind of blind injection using the union and and if statement in the where part.
The Problem is:
I need something like (select 1 union select 2) that will be a valid part of a sql Query but without a subquery used to let it fail and give me a feedback is the equation I use for blind injection is true or false.

I failed to find something like that yet.

Maybe some l33t old mysql Admin has an Idea?

sincerely

peak

Offline Dio-Gt

  • /dev/null
  • *
  • Posts: 8
  • Cookies: -4
  • H@cking is @rt
    • View Profile
Re: SQL Injection Question
« Reply #1 on: November 11, 2012, 04:19:29 pm »
You Want to go manual or with a program like: Havij, sqlmap..?
« Last Edit: November 11, 2012, 04:19:51 pm by Dio-Gt »

Offline Stackprotector

  • Administrator
  • Titan
  • *
  • Posts: 2515
  • Cookies: 205
    • View Profile
Re: SQL Injection Question
« Reply #2 on: November 11, 2012, 05:39:41 pm »
I think you will need plain blind-sqli. Using (programmers example) if(toAscii(substr(table.users.password, 1)) == 1){ TRUE) else FALSE. There are loads of examples based on if the page loads or not.
~Factionwars

Offline Dio-Gt

  • /dev/null
  • *
  • Posts: 8
  • Cookies: -4
  • H@cking is @rt
    • View Profile
Re: SQL Injection Question
« Reply #3 on: November 11, 2012, 06:25:10 pm »
Blind_SQLi ti's not easy if you want to exact infos ! it will takes hours ..exept if you know where the infos (db,tables etc...) ...

//if you are not fun o manual then better try it with program:)