MySQL 4.x/5.0 - User-Defined Function Command Execution Exploit win

2007-02-06T00:00:00
ID EDB-ID:3274
Type exploitdb
Reporter Marco Ivaldi
Modified 2007-02-06T00:00:00

Description

MySQL 4.x/5.0 User-Defined Function Command Execution Exploit (win). Remote exploit for windows platform

                                        
                                            -- raptor_winudf.sql - A MySQL UDF backdoor kit for Windows
-- Copyright (c) 2007 Marco Ivaldi <raptor@0xdeadbeef.info>
--
-- This is a MySQL backdoor kit for Windows based on the UDFs (User Defined
-- Functions) mechanism. Use it to spawn a reverse shell (netcat UDF on port 
-- 80/tcp) or to execute single OS commands (exec UDF). Don't forget to edit
-- the MySQL bin path below according to your target's configuration.
--
-- Thanks to KDM for asking me to do research on this interesting subject!
--
-- See also:
-- http://www.0xdeadbeef.info/exploits/raptor_udf.c
-- http://www.0xdeadbeef.info/exploits/raptor_udf2.c
--
-- Tested on:
-- MySQL 4.0.18-win32 (running on Windows XP SP2)
-- MySQL 4.1.22-win32 (running on Windows XP SP2)
-- MySQL 5.0.27-win32 (running on Windows XP SP2)

download:
http://www.0xdeadbeef.info/exploits/raptor_winudf.tgz
https://github.com/offensive-security/exploit-database-bin-sploits/raw/master/sploits/3274.tgz (02062007-raptor_winudf.tgz)

# milw0rm.com [2007-02-06]