Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/a0rtega/metame
metame is a metamorphic code engine for arbitrary executables
https://github.com/a0rtega/metame
Last synced: 3 months ago
JSON representation
metame is a metamorphic code engine for arbitrary executables
- Host: GitHub
- URL: https://github.com/a0rtega/metame
- Owner: a0rtega
- License: mit
- Created: 2016-08-07T13:56:57.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-10-06T18:24:14.000Z (about 5 years ago)
- Last Synced: 2024-07-23T06:08:53.729Z (3 months ago)
- Language: Python
- Homepage:
- Size: 200 KB
- Stars: 563
- Watchers: 29
- Forks: 88
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-hacking-lists - a0rtega/metame - metame is a metamorphic code engine for arbitrary executables (Python)
README
# 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:
1. Open a given binary and analyze the code
2. Randomly replace instructions with equivalences in logic and size
3. Copy and patch the original binary to generate a mutated variantIt currently supports the following architectures:
- x86 32 bits
- x86 64 bitsAlso, it supports a variety of file formats, as [radare2][1] is used for
file parsing and code analysis.Example of code before and after mutation:
![alt text](https://raw.githubusercontent.com/a0rtega/metame/master/screens/screen1.png "Spot the differences")
Hint: Two instructions have been replaced in this snippet.
Here another example on how it can mutate a NOP sled into equivalent code:
![alt text](https://raw.githubusercontent.com/a0rtega/metame/master/screens/screen2.png "Spot the differences")
## Installation
```
pip install metame
```This should also install the requirements.
You will also need [radare2][1]. 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.
[1]: http://radare.org/