a0rtega/metame
关于
metame 是用于任意可执行文件的变形代码引擎
开发工具实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文metame
metame is a simple metamorphic code engine for arbitrary executables.
From Wikipedia:
Metamorphic code is code that when run outputs a logically equivalent version of its own code under some interpretation. This is used by computer viruses to avoid the pattern recognition of anti-virus software.
metame implementation works this way:
- Open a given binary and analyze the code
- Randomly replace instructions with equivalences in logic and size
- Copy and patch the original binary to generate a mutated variant
It currently supports the following architectures:
- x86 32 bits
- x86 64 bits
Also, it supports a variety of file formats, as radare2 is used for file parsing and code analysis.
Example of code before and after mutation:

Hint: Two instructions have been replaced in this snippet.
Here another example on how it can mutate a NOP sled into equivalent code:

Installation
pip install metame
This should also install the requirements.
You will also need radare2. Refer to the official website for installation instructions.
simplejson is also a "nice to have" for a small performance
boost:
pip install simplejson
Usage
metame -i original.exe -o mutation.exe -d
Use metame -h for help.
License
This project is released under the terms of the MIT license.
探索相关项目
加载中…