Giter Site home page Giter Site logo

reversecdgencryption's Introduction

reverseCDGencryption

用途

对被亿赛通透明加密的文件进行解密。

使用方法

  1. 将test.go、impact.go与winrar.go编译成适合你系统的可执行文件。
  2. 通过命令行调用winrar.go,操作方式如下:
    • 对于解密单个文件而言:请执行winrar.exe <test.exe的路径> <impact.exe的路径> <要解密的文件路径>
    • 对于解密当前目录所有的文件:请将winrar.exe与其他组件放入要解密的目录,并执行winrar.exe <test.exe的路径> <impact.exe的路径>
  3. 运行成功后,结果如下:image-20210805164644010

运行原理

通过具有读取加密文件权限的白名单软件作为代理,获取到未经加密的文件信息,再将其另存为解密后的文件(修改扩展名防止被再次加密),随后用一个不在监视名单中的程序将扩展名修改回去。

一个小脚本为什么选择golang,Python不好吗?

在测试&生产环境中,读取已加密文件的权限是那个该死的CDG管理软件按照进程名称给的,python写的脚本获取不到这个权限。

为什么两个程序的名称一个是winrar,一个是test呢?

经测试,winrar.exe在进程白名单上,且具有打开多种已加密文件格式的授权(这玩意授权居然还分软件的,比如名为word.exe的进程就打不开.xslx后缀的文件)。

test.go是一个用于检测文件头中是否有被加密痕迹(如图所示)的模块,所以需要其不在上述白名单上。

image-20210804165530550

结语

被这玩意烦透了,代码都给你加密成二进制导致编译失败。

reversecdgencryption's People

Contributors

anthony-hoo avatar

Stargazers

 avatar

Watchers

 avatar  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.