一个python库和工具,通过它们的公共rest api可以方便地访问retdec.com反编译服务。
retdec-python的Python项目详细描述
一个python库和工具,通过它们的公共REST API轻松访问retdec.com反编译服务。
您可以将库合并到自己的脚本中:
fromretdec.decompilerimportDecompilerdecompiler=Decompiler(api_key='YOUR-API-KEY')decompilation=decompiler.start_decompilation(input_file='file.exe')decompilation.wait_until_finished()decompilation.save_hll_code()
或者您可以使用提供的脚本进行独立反编译:
$ decompiler -k YOUR-API-KEY file.exe v23bmYb67R ---------- Waiting for resources (0%)... [OK] Pre-Processing: Obtaining file information (5%)... [OK] Unpacking (10%)... [OK] Front-End: Initializing (20%)... [OK] [..] Done (100%)... Downloading: - file.c
不管怎样,file.c都包含反编译的c代码:
$ cat file.c // // This file was generated by the Retargetable Decompiler // Website: https://retdec.com // Copyright (c) 2016 Retargetable Decompiler <info@retdec.com> // #include <stdio.h> [..]
状态
库为decompilation、fileinfo和test服务提供支持。更详细的名单, 见status 文档中的第页。
要求
- python>;=3.3(cpython或pypy)
- requests用于进行https调用的模块 到retdec.com API
安装
建议的安装方式是使用pip:
$ pip install retdec-python
这将安装最新的稳定版本,包括所有依赖项。你 也可以直接从github安装最新的开发版本:
$ pip install git+https://github.com/s3rvac/retdec-python
联系和支持
我很高兴得到你的反馈,pull requests,issues,或者只是一个简单的谢谢。 如果您有任何问题,请随时与我联系!
从其他语言访问
如果要访问retdec.com反编译 其他语言的服务,请查看以下项目:
- retdec-rust-a库和工具 以防生锈。
- retdec-cpp-a库和工具 用于从C++访问服务。
- retdec-sh-用于访问的脚本 壳牌的服务。