首页
社区
课程
招聘
[转帖]一款外壳源码(Packer source code (C/C++) )
2005-11-3 09:39 15340

[转帖]一款外壳源码(Packer source code (C/C++) )

2005-11-3 09:39
15340

    来源:http://www.exetools.com/forum/showthread.php?t=8432
 
附件:bambam004_source.zip

bedrock    11-03-2005, 04:10

End of last year and begining of this year, i had some spare time and set about creating a basic PE packer entirely in C/C++, following mostly bigboote's excellent tutorials and guessing the bit i didn't know. I learnt a lot from this exercise and back in may i release the first version of my packer on here
http://www.exetools.com/forum/showthread.php?t=6948

Since then i have had very little time and the project has basically come to a complete halt now, so i am deciding to release all my source, it isn't pretty or well commented, but hopefully some will beable to learn, especially from the stub code, as this is all C and is my interpretation of bigboote's notes. This is a VC6 project and possibly needs the Platform SDK, but you can probably get it to compile without that to be honest. I am providing this AS IS.

I may start from scratch if i ever get the time, using the new VS2005  and learning from my mistakes.


[培训]《安卓高级研修班(网课)》月薪三万计划,掌握调试、分析还原ollvm、vmp的方法,定制art虚拟机自动化脱壳的方法

收藏
点赞0
打赏
分享
最新回复 (21)
雪    币: 1223
活跃值: (469)
能力值: (RANK:460 )
在线值:
发帖
回帖
粉丝
monkeycz 11 2005-11-3 10:06
2
0
看看
雪    币: 200
活跃值: (18)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
dingshan 2005-11-3 13:49
3
0
开源的不错,学习!
雪    币: 217
活跃值: (99)
能力值: ( LV4,RANK:50 )
在线值:
发帖
回帖
粉丝
dwing 1 2005-11-3 17:57
4
0
不错,似乎是完全支持TLS的壳。
雪    币: 70
活跃值: (110)
能力值: ( LV4,RANK:50 )
在线值:
发帖
回帖
粉丝
采臣·宁 1 2005-11-3 21:23
5
0
强贴必留名,我顶
雪    币: 342
活跃值: (323)
能力值: ( LV9,RANK:450 )
在线值:
发帖
回帖
粉丝
netsowell 11 2005-11-4 02:02
6
0
看看先。
雪    币: 316
活跃值: (336)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
shell800 2005-11-4 14:47
7
0
好东西。学些技术加到程序里,跟外壳结合起来,破解就更难了。
雪    币: 603
活跃值: (617)
能力值: ( LV12,RANK:660 )
在线值:
发帖
回帖
粉丝
prince 16 2005-11-7 23:49
8
0
C/C++的壳可不多啊,看看~
雪    币: 230
活跃值: (101)
能力值: ( LV9,RANK:170 )
在线值:
发帖
回帖
粉丝
dogwang 4 2005-12-12 13:27
9
0
问个问题,为什么用这个壳给delphi的exe打壳失败呢?不是完整支持托拉斯TLS吗?
雪    币: 396
活跃值: (1078)
能力值: ( LV9,RANK:970 )
在线值:
发帖
回帖
粉丝
simonzh2000 24 2005-12-14 20:14
10
0


原来这个不是 bigboote 的原版啊.
雪    币: 172
活跃值: (157)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
9494 2006-1-16 16:30
11
0
不错,学习一下。
雪    币: 230
活跃值: (101)
能力值: ( LV9,RANK:170 )
在线值:
发帖
回帖
粉丝
dogwang 4 2006-2-16 02:28
12
0
这个壳里有3处bug,真隐蔽丫
雪    币: 2134
活跃值: (14)
能力值: (RANK:170 )
在线值:
发帖
回帖
粉丝
Aker 4 2006-3-9 08:15
13
0
最初由 dogwang 发布
这个壳里有3处bug,真隐蔽丫

说说看萨
雪    币: 200
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
zhuly 2006-3-17 17:29
14
0
值得学习一下
雪    币: 215
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
wwwddd 2006-3-24 22:18
15
0
exetools 论坛里面说了一个bug:
---------------------------------------------
First bug in stub:

Code:

    hMod = LoadLibrary((LPCSTR)dwTemp);

    if(hMod != INVALID_HANDLE_VALUE)

LoadLibrary return NULL in case of error, not INVALID_HANDLE_VALUE (-1)

---------------------------------------------
雪    币: 215
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
wwwddd 2006-3-24 22:20
16
0
我找到一个
在对 stub  进行重定位处理时,有行代码错行了。
雪    币: 215
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
wwwddd 2006-3-29 13:57
17
0
又一个bug

在 转换stub 中thunk 值时,搜索地址的方法有错漏。
雪    币: 215
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
wwwddd 2006-3-31 21:59
18
0
又找到3个bug。

* 没有对pe文件中的多余数据(pe section 中未标明的)进行保留处理。

* 没有对 stub 的VOffset 和 ROffset 进行对齐处理

* 对 stub 的输入表起始地址处理有错

加上之前的3个,就6个bug了。
雪    币: 250
活跃值: (103)
能力值: ( LV6,RANK:90 )
在线值:
发帖
回帖
粉丝
ah007 2 2006-4-20 18:24
19
0
支持!!
雪    币: 205
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
shiwenhui 2006-4-27 09:30
20
0
f:\毕业设计材料\壳\Stub\Stub.cpp(448): error C2440: “=” : 无法从“DWORD *”转换为“DWORD”
f:\毕业设计材料\壳\bambam\compressdlg.cpp(484): error C2440: “=” : 无法从“DWORD *”转换为“DWORD”
f:\毕业设计材料\壳\bambam\optionsdlg.cpp(87): error C2593: “operator +=”不明确
f:\毕业设计材料\壳\bambam\bambam.cpp(52): warning C4996: “CWinApp::Enable3dControlsStatic”被声明为否决的
雪    币: 182
活跃值: (111)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
Aaah 2006-4-27 12:36
21
0
楼上是VC2005吧?
毕业设计材料?
雪    币: 203
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
kenyle 2006-7-3 10:55
22
0
楼主是不是在别的地方找的源码只是读了一下,然放出来的?还是本人写的?
游客
登录 | 注册 方可回帖
返回