資源簡介
修改硬盤(硬件)序列號,模擬修改硬盤的序列號串,以達(dá)到繞過其他軟件的檢測。
代碼片段和文件信息
#include?
#include?
#include?
#include?
#include?“GUI.h“
#include?“commdef.h“
#define?WM_NOTIFYICON??(WM_APP+100)
#define?MAX_LOADSTRING?100
//?Global?Variables:
BOOL??????__bIsHooked=FALSE;
HANDLE????__SysHandle;
HINSTANCE?__hInstance; //?current?instance
TCHAR?sztitle[MAX_LOADSTRING]; //?The?title?bar?text
TCHAR?szWindowClass[MAX_LOADSTRING]; //?The?title?bar?text
//?Foward?declarations?of?functions?included?in?this?code?module:
ATOM MyRegisterClass(HINSTANCE?hInstance);
BOOL InitInstance(HINSTANCE?int);
LRESULT?CALLBACK WndProc(HWND?UINT?WPARAM?LPARAM);
LRESULT?CALLBACK About(HWND?UINT?WPARAM?LPARAM);
LRESULT?CALLBACK SettingProc(HWND?UINT?WPARAM?LPARAM);
BOOL????????????????IconMessage(HWNDDWORDPSTR);
BOOL????????????????LoadDeviceDriver(?const?TCHAR?*?Name?const?TCHAR?*?Path?HANDLE?*?lphDevice?);
BOOL????????????????UnloadDeviceDriver(?const?TCHAR?*?Name?);
VOID????????????????ReadPhysicalDriveOnNT(?BYTE?*?);
BOOL????????????????WriteResourceToFile(UINT?UINT?const?char?*?);
int?APIENTRY?WinMain(HINSTANCE?hInstance
?????????????????????HINSTANCE?hPrevInstance
?????????????????????LPSTR?????lpCmdLine
?????????????????????int???????nCmdShow)
{
? //?TODO:?Place?code?here.
MSG?msg;
HACCEL?hAccelTable;
//?Initialize?global?strings
LoadString(hInstance?IDS_APP_title?sztitle?MAX_LOADSTRING);
LoadString(hInstance?IDC_GUI?szWindowClass?MAX_LOADSTRING);
MyRegisterClass(hInstance);
//only?support?NT/XP
DWORD NTVersion;
NTVersion?=?GetVersion();
if(?NTVersion?>=?0x80000000?){
MessageBox(NULL“Only?Support?NT/XP““Error“MB_OK|MB_IConerror);
return?FALSE;
};
//?Perform?application?initialization:
if?(!InitInstance?(hInstance?nCmdShow))?
{
return?FALSE;
}
hAccelTable?=?LoadAccelerators(hInstance?(LPCTSTR)IDC_GUI);
//?Main?message?loop:
while?(GetMessage(&msg?NULL?0?0))?
{
if?(!TranslateAccelerator(msg.hwnd?hAccelTable?&msg))?
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
}
return?msg.wParam;
}
ATOM?MyRegisterClass(HINSTANCE?hInstance)
{
WNDCLASSEX?wcex;
wcex.cbSize?=?sizeof(WNDCLASSEX);?
wcex.style =?CS_HREDRAW?|?CS_VREDRAW;
wcex.lpfnWndProc =?(WNDPROC)WndProc;
wcex.cbClsExtra =?0;
wcex.cbWndExtra =?0;
wcex.hInstance =?hInstance;
wcex.hIcon =?LoadIcon(hInstance?(LPCTSTR)IDI_GUI);
wcex.hCursor =?LoadCursor(NULL?IDC_ARROW);
wcex.hbrBackground =?(HBRUSH)(COLOR_WINDOW+1);
wcex.lpszMenuName =?(LPCSTR)IDC_MENU;
wcex.lpszClassName =?szWindowClass;
wcex.hIconSm =?LoadIcon(wcex.hInstance?(LPCTSTR)IDI_SMALL);
return?RegisterClassEx(&wcex);
}
BOOL?InitInstance(HINSTANCE?hInstance?int?nCmdShow)
{
???HWND?hWnd;
???__hInstance?=?hInstance;?//?Store?instance?handle?in?our?global?variable
???hWnd?=?CreateWindow(szWindowClass?sztitle?WS_OVERLAPPEDWINDOW
??????CW_USEDEFAULT?0?CW_USEDE
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????196668??2009-05-18?23:40??GUI.exe
?????文件?????????40??2010-12-03?21:20??T41?SN.txt
?????文件??????13607??2006-11-29?11:33??DRIVER\HdHook.C
?????文件???????2479??2006-10-12?10:45??DRIVER\HdHook.H
?????文件???????1291??2006-10-11?10:46??DRIVER\HdHook.RC
?????文件???????3608??2006-10-12?18:19??DRIVER\HdHook.sys
?????文件????????267??1996-08-09?04:30??DRIVER\MAKEFILE
?????文件????????111??2006-10-12?10:37??DRIVER\SOURCES
?????文件???????1676??2006-10-15?00:52??GUI\Commdef.h
?????文件?????196668??2009-05-18?23:40??GUI\Debug\GUI.exe
?????文件??????14408??2009-05-18?23:43??GUI\GUI.APS
?????文件??????12243??2006-11-29?12:06??GUI\GUI.cpp
?????文件???????4871??2006-10-12?18:20??GUI\GUI.dsp
?????文件????????529??2006-10-12?13:26??GUI\GUI.dsw
?????文件????????315??2006-10-12?14:34??GUI\GUI.h
?????文件??????50176??2009-05-18?23:43??GUI\GUI.ncb
?????文件??????48640??2009-05-18?23:43??GUI\GUI.opt
?????文件???????1424??2009-05-18?23:40??GUI\GUI.plg
?????文件???????4901??2006-10-15?00:53??GUI\GUI.rc
?????文件???????4317??2006-11-29?12:05??GUI\HDSerial.cpp
?????文件???????4710??2006-10-12?10:29??GUI\Icon\GUI.ico
?????文件???????3608??2006-10-12?18:19??GUI\Icon\HdHook.sys
?????文件????????318??2006-10-12?16:09??GUI\Icon\HookOff.ico
?????文件????????318??2006-10-12?16:09??GUI\Icon\HookOn.ico
?????文件????????318??2006-10-12?10:29??GUI\Icon\small.ico
????..A.SH.??????9216??2006-10-12?18:18??GUI\Icon\Thumbs.db
?????文件???????7649??2006-10-12?14:23??GUI\INSTDRV.CPP
?????文件???????1677??2006-10-15?00:53??GUI\resource.h
?????目錄??????????0??2012-02-11?18:48??GUI\Debug
?????目錄??????????0??2012-02-11?18:48??GUI\Icon
............此處省略5個文件信息
評論
共有 條評論