Git Product home page Git Product logo

packer-2's Introduction

这里是PE文件加壳程序。


1:目前支持源程序16个区段的压缩。对于超过16个的区段可以修改数据结构实现。
2:不支持加过其他壳的程序加壳,目前只支持exe文件。
3:支持Windows10下执行,对于重定位进行了处理,可以支持随机地址的执行。

编译流程:

将Packer和Stub都设置成x86 release下编译即可

文件运行截图:


![image](https://github.com/longqun/Packer/raw/master/ScreenShot/5.PNG)

程序处理流程:

1读取加壳文件,外壳DLL
2:选择加壳文件需要压缩的地方,对于资源段选择不压缩,其他区段都进行压缩。
3:重新构造区段表,分别有这么几个区段 .OldDat(原始压缩的数据) .Shell(外壳DLL代码) .tls(用来支持加壳tls程序) .CRT(用来支持加壳tls程序) .reloc(外壳DLL重定位信息) .rcsc(资源如果有的话)
4:利用aPLib进行压缩,将压缩之后的数据复制到目标文件.OldDat区段缓冲区。
5:对于外壳DLL进行重定位,资源数据修复
6:设置导出变量的数据,在外壳DLL中将使用到的变量
7:写入文件

原始区段信息
image
原始目录
image
加壳后的区段信息
image
加壳之后的目录表
image

packer-2's People

Contributors

longqun avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.