|
从内存中加载DLL(C++)的疑问
能不能指点一下防逆向的方法 |
|
从内存中加载DLL(C++)的疑问
高人,我先下下来试试先 |
|
从内存中加载DLL(C++)的疑问
回复12和13楼的兄弟: 理解你们的意思,是想让我用EXE直接静态编译opencv的库,这样没有dll跟着跑 可是我现在为了保护程序,防止别人逆向,我是想EXE 从服务端下载dll执行,这样dll不用落地,起码给逆向增加了难度,因为想dump内存出来也是能破的,但是这样提高了逆向的门槛 |
|
从内存中加载DLL(C++)的疑问
我觉得我是不是有必要潜心研究一个月的LoadLibraryA的代码,其实之前我大体看过这一部分代码,取自于ReactOS的源码,没有细看,其实大体流程和memoryMoudle差不多 1. 验证文件是否合法 2. 拷贝头部 3. 修复 imageBase 4. copy section 5. 重定位的处理 6. 修复导入表 7. 设置每个section对应不同的内存访问权限 希望有过类似经验或者对这一块非常了解的兄弟能启发小弟一下 |
|
从内存中加载DLL(C++)的疑问
是的,我现在就是用的静态库,内存加载DLL出的问题,用DLL库反而不会出问题 |
|
从内存中加载DLL(C++)的疑问
回复6楼 HHHso: 这里我的描述可能不是太准确 1. 我是引入的*.lib,如果是lib还得依赖DLL的方式,也就是编译出来后我的程序得和opencv2.4.8_core.dll这种文件放在一块儿才能执行。这种方式我试过,里面的cvColor方式是可以成功执行(这时候执行cvColor是在opencv2.4.8_core.dll里面执行的,不确定是这个dll,只是举例),不会报错的 2. 我现在期望的是,引入的lib不依赖任何DLL的文件了,也就是静态编译,编译出来后,可以不依赖任何DLL文件,这时候执行cvColor其实是在我自己的程序里面执行的,这时候会出错 |
操作理由
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 }}
勋章
兑换勋章
证书
证书查询 >
能力值