[sqlmap-users] Trouble in enumerating the tables
Brought to you by:
inquisb
|
From: v4d25f7gb2e7 t. <ve7...@gm...> - 2008-10-21 07:10:05
|
I have some troubles.
I was able to get DB names(--dbs) and current DB name(--current-db).
But I was not able to enumerate tables in current DB(-D databasename --tables).
I tried it on MS SQLServer, MySQL and PostgreSQL,
on Windows and Linux.
with sqlmap 0.6.1 and 0.6
But all the results were failure.
Is this a bug?
Please give information.
log
--------------------------------------------------------------------------------------------------------------------------------------------------
C:\My Documents\sqlmap-0.6.1_exe>sqlmap -v 2 --eta -u "http://192.168.0.31/sqlte
st.php?id=1" -s c:\resume.log -D database1 --tables
sqlmap/0.6.1 coded by Bernardo Damele A. G. <ber...@gm...>
and Daniele Bellucci <dan...@gm...>
[*] starting at: 15:54:37
[15:54:37] [INFO] resuming injection point 'GET' from session file
[15:54:37] [INFO] resuming injection parameter 'id' from session file
[15:54:37] [INFO] resuming injection type 'numeric' from session file
[15:54:37] [INFO] resuming 0 number of parenthesis from session file
[15:54:37] [INFO] resuming back-end DBMS 'PostgreSQL' from session file
[15:54:37] [INFO] testing connection to the target url
back-end DBMS: PostgreSQL
[15:54:38] [INFO] fetching tables for database 'database1'
[15:54:38] [INFO] fetching number of tables for database 'database1'
[15:54:38] [INFO] query: SELECT COALESCE(CAST(COUNT(tablename) AS CHARACTER(1000
0)), (CHR(32))) FROM pg_tables WHERE schemaname=(CHR(100)||CHR(97)||CHR(116)||CH
R(97)||CHR(98)||CHR(97)||CHR(115)||CHR(101)||CHR(49))
[15:54:38] [INFO] retrieved: 0
[15:54:40] [INFO] performed 13 queries in 1 seconds
[15:54:40] [WARNING] unable to retrieve the number of tables for database 'datab
ase1'
[15:54:40] [ERROR] unable to retrieve the tables for any database
[*] shutting down at: 15:54:40
|