网上有好多dll隐藏自身模块源码,但是大部分不好用,于是翻看C源码,发现不难实现
如果翻译成易语言源码,难度倒是不大,但是需要做几个shuj类型转换shuj
复制粘贴写了几行,复制粘贴重复劳动真是很难受
于是灵机一动,何不写成shellcode?
这样写的好处是,易语言不用接触任何shuj结构
经过一番测试,置入汇编实现 DLL隐藏自身模块,终于成功了
==========
实现功能
1抹去PE标志 2 断开链表
易语言程序加载调用此函数的dll后,PCH查看效果如下:
==========
调用过程如下
置入汇编源码如下
==========
置入代码 ({ 81, 83, 86, 87, 232, 175, 0, 0, 0, 139, 125, 8, 139, 240, 141, 69, 252, 187, 0, 4, 0, 0, 80, 106, 4, 83, 87, 255, 214, 51, 192, 102, 137, 7, 33, 71, 64, 141, 69, 252, 80, 255, 117, 252, 83, 87, 255, 214, 139, 207, 232, 9, 0, 0, 0, 95, 94, 91, 139, 229, 93, 194, 4, 0, 81, 81, 131, 100, 36, 4, 0, 131, 36, 36, 0, 83, 85, 86, 87, 139, 233, 96, 156, 51, 210, 100, 139, 90, 48, 139, 75, 12, 141, 81, 12, 139, 73, 12, 137, 84, 36, 52, 137, 76, 36, 56, 157, 97, 139, 84, 36, 20, 139, 116, 36, 16, 57, 106, 24, 116, 14, 139, 242, 139, 18, 59, 84, 36, 16, 117, 241, 51, 192, 235, 42, 139, 2, 137, 6, 139, 10, 139, 66, 4, 137, 65, 4, 139, 66, 8, 137, 70, 8, 139, 74, 8, 139, 66, 12, 137, 65, 204, 139, 66, 16, 137, 70, 16, 139, 74, 16, 139, 66, 20, 137, 65, 148, 95, 94, 93, 91, 89, 89, 195, 81, 81, 100, 161, 48, 0, 0, 0, 83, 85, 86, 139, 64, 12, 87, 139, 72, 12, 235, 96, 139, 66, 60, 139, 9, 139, 116, 16, 120, 137, 116, 36, 20, 133, 246, 116, 79, 139, 92, 22, 32, 51, 255, 3, 218, 57, 124, 22, 24, 118, 65, 139, 43, 51, 192, 3, 234, 137, 68, 36, 16, 141, 91, 4, 138, 69, 0, 132, 192, 116, 38, 139, 116, 36, 16, 107, 246, 33, 15, 190, 192, 3, 240, 69, 138, 69, 0, 132, 192, 117, 240, 137, 116, 36, 16, 129, 124, 36, 16, 200, 247, 233, 119, 139, 116, 36, 20, 116, 23, 71, 59, 124, 22, 24, 114, 191, 139, 81, 24, 133, 210, 117, 153, 51, 192, 95, 94, 93, 91, 89, 89, 195, 139, 68, 22, 36, 141, 4, 120, 15, 183, 12, 16, 139, 68, 22, 28, 141, 4, 136, 139, 4, 16, 3, 194, 235, 224 })
附上调用和使用的源码文件
注意 必须使用黑月编译,dll隐藏后可能无法正常调用导出函数
置入汇编隐藏dll自身模块.e
(7.05 KB, 下载次数: 509)
|