OllyDbg 使用笔记 (四)
时间:2022-03-13 22:32
int MessageBox(
HWND hWnd, // handle of owner window
LPCTSTR lpText, // address of text in message box
LPCTSTR lpCaption, // address of title of message box
UINT uType // style of message box
);
我们可以把这个参数改成一个非法的句柄,让MessageBox运行出错。例如
00401039 |. 6A 00 push 0 ; /Style = MB_OK|MB_APPLMODAL
0040103B |. 68 7D304000 push 0040307D ; |Title = "Register Me"
00401040 |. 68 89304000 push 00403089 ; |Text = "Oops! I am not registered !!"
00401045 |. 6A 00 push 0 ; |hOwner = NULL
00401047 |. E8 9E010000 call <jmp.&USER32.MessageBoxA> ; \MessageBoxA
OllyDbg 使用笔记 (四),布布扣,bubuko.com