|
[求助]关于PE输入表修复的问题——源自linxer代码
// 循环扫描每个将要导入的dll for (; pIID->Name != NULL; pIID++) { //IMAGE_THUNK_DATA* pITD = (IMAGE_THUNK_DATA*)(lpDynPEBuf + pIID->FirstThunk); PIMAGE_THUNK_DATA pRealIAT = (PIMAGE_THUNK_DATA)((unsigned long)lpDynPEBuf + pIID->FirstThunk); PIMAGE_THUNK_DATA pOriginalIAT = (PIMAGE_THUNK_DATA)((unsigned long)lpDynPEBuf + pIID->OriginalFirstThunk); HINSTANCE hInstance = LoadLibraryA((LPCSTR)lpDynPEBuf + pIID->Name); assert(hInstance); //循环扫描dll内每个被导入函数 for(; pOriginalIAT->u1.Ordinal != 0; pOriginalIAT++) { FARPROC fpFun = NULL; if(pOriginalIAT->u1.Ordinal & IMAGE_ORDINAL_FLAG32) { //函数是以序号的方式导入的 fpFun = GetProcAddress(hInstance, (LPCSTR)(pOriginalIAT->u1.Ordinal & 0x0000ffff)); } else { //函数是以名称方式导入的 IMAGE_IMPORT_BY_NAME* pIIBN = (IMAGE_IMPORT_BY_NAME *)((DWORD)lpDynPEBuf + (DWORD)pOriginalIAT->u1.Ordinal); fpFun = GetProcAddress(hInstance, (char *)pIIBN->Name); } pRealIAT->u1.Ordinal = (long)fpFun; } FreeLibrary(hInstance); hInstance = NULL; } // end for |
|
[翻译]Professional.Rootkits(中文翻译版)(全)
感谢楼主的无私分享 |
|
|
|
|
|
|
|
[原创]腾讯2009校园招聘,已结束
这贴要顶!!!!! |
|
[原创]Kmd(kernel mode Driver)简单入门之谈!!
支持一下!楼主加油! |
|
[注意]启用“课题+成果”的模式+成立“编程技术小组”(最近更新2008.6.27)
大家加油!期待各位的作品! |
|
|
|
QQ登陆器的masm源码-根据 非安全的帖子写的
谢谢楼主,我试试吧 |
|
看雪论坛访问速度调查
广州电信拟,速度飞快 |
操作理由
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 }}
勋章
兑换勋章
证书
证书查询 >
能力值