|
[求助]邪门儿了!在学习异常处理时的出现的问题
恩自己修改了一下 成功了 自己还发现了 VC8.0 以前的 版本编译出来的程序的这个目录 <IMAGE_DIRECTORY_ENTRY_LOAD_CONFIG (10) 载入配置目录> 里面都是0 所以这些文章里面的例子都能用呢 SEH in ASM 研究(一)by hume 哈哈 好高兴 谢谢非常感谢斑斑 |
|
|
|
[求助]邪门儿了!在学习异常处理时的出现的问题
刚自己用OB跟到了这点 7C92EB0A > \5B pop ebx 7C92EB0B . 59 pop ecx ; 0012F99C 7C92EB0C . 6A 00 push 0 7C92EB0E . 51 push ecx 7C92EB0F . 53 push ebx 7C92EB10 . E8 3DF7FFFF call ZwRaiseException call ZwRaiseException 后到下面这点 7C92E252 >/$ B8 B5000000 mov eax, 0B5 7C92E257 |. BA 0003FE7F mov edx, 7FFE0300 7C92E25C |. FF12 call dword ptr [edx] 7C92E25E \. C2 0C00 retn 0C 7FFE0300 是0 直接回到 程序原来出错的地方 OD提示"调试的程序无法处理异常" |
|
|
|
|
|
[求助]邪门儿了!在学习异常处理时的出现的问题
实在是自己找不出问题所在了 才发上来的 |
|
[求助]邪门儿了!在学习异常处理时的出现的问题
代码 Structured Exception Handling文章里的代码我直接拿来都出现这个问题 // bbs.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" DWORD scratch; EXCEPTION_DISPOSITION __cdecl _except_handler( struct _EXCEPTION_RECORD *ExceptionRecord, void * EstablisherFrame, struct _CONTEXT *ContextRecord, void * DispatcherContext ) { unsigned i; // Indicate that we made it to our exception handler printf( "Hello from an exception handler\n" ); // Change EAX in the context record so that it points to someplace // where we can successfully write ContextRecord->Eax = (DWORD)&scratch; // Tell the OS to restart the faulting instruction return ExceptionContinueExecution; } int main() { DWORD handler = (DWORD)_except_handler; __asm { // Build EXCEPTION_REGISTRATION record: push handler // Address of handler function push FS:[0] // Address of previous handler mov FS:[0],ESP // Install new EXECEPTION_REGISTRATION } __asm { mov eax,0 // Zero out EAX mov [eax], 1 // Write to EAX to deliberately cause a fault } printf( "After writing!\n" ); __asm { // Remove our EXECEPTION_REGISTRATION record mov eax,[ESP] // Get pointer to previous record mov FS:[0], EAX // Install previous record add esp, 8 // Clean our EXECEPTION_REGISTRATION off stack } return 0; } 就是不调用"_except_handler" 我用的VC8.0 是不是编译器设置了什么东东 ? 以前我也发过帖子 问这个问题 一直没解决 |
|
|
|
[求助]如何在驱动里获得pe文件的版本信息。公司名称等。信息
我的积分终于大于10了 |
操作理由
RANk
{{ user_info.golds == '' ? 0 : user_info.golds }}
雪币
{{ experience }}
课程经验
{{ score }}
学习收益
{{study_duration_fmt}}
学习时长
基本信息
荣誉称号:
{{ honorary_title }}
能力排名:
No.{{ rank_num }}
等 级:
LV{{ rank_lv-100 }}
活跃值:
在线值:
浏览人数:{{ visits }}
最近活跃:{{ last_active_time }}
注册时间:{{ user_info.create_date_jsonfmt }}
勋章
兑换勋章
证书
证书查询 >
能力值