GithubHelp home page GithubHelp logo

ludoplex / pymetangine Goto Github PK

View Code? Open in Web Editor NEW

This project forked from scmanjarrez/pymetangine

1.0 0.0 0.0 2.87 MB

A python metamorphic engine for PE/PE+ files.

License: GNU General Public License v3.0

Python 100.00%

pymetangine's Introduction

Description

A Python metamorphic engine for PE/PE+ files.

Requirements

  • python3
  • radare2
  • keystone-engine

Run

Prelaunch

Install python dependencies

pip install -r requirements.txt

Launch

pymetangine can generate metamorphic binaries one by one

./pymetangine.py -i path_to_bin

Or in batches

./pymetangine.py -i path_to_dir -b

Output

One sample metamorph

./pymetangine.py -i samples/be5b9e6b8dc76ca6b4f2616b47ccaba4.bin
[+] Opening samples/be5b9e6b8dc76ca6b4f2616b47ccaba4.bin in radare2.
[+] Analyzing executable.
[+] Starting patching routine.
[+] Writing mutations to mutations/mutated.bin
[+] Mutations: 10/26
[+] Exiting...

Batch metamorph

./pymetangine.py -i samples -b
[+] File 1/10.
[+] Opening samples/d3e94909a6b134b83307168ab0ae8a1e.bin in radare2.
[+] Analyzing executable.
[+] Starting patching routine.
[+] Writing mutations to mutations/d3e94909a6b134b83307168ab0ae8a1e_ry.bin
[+] Mutations: 6/9

[+] File 2/10.
[+] Opening samples/eb64be920df8837443a152fa143a9e5b.bin in radare2.
[+] Analyzing executable.
[+] Starting patching routine.
[+] Writing mutations to mutations/eb64be920df8837443a152fa143a9e5b_ry.bin
[+] Mutations: 18/25
...

Optional

A script to download samples from MalShare is provided.

  • helper_malshare.py

You need to save your MalShare API key in a file named .key_malshare.

A script to scan and query results from VirusTotal is provided.

  • helper_virustotal.py

You need to save your VirusTotal API key in a file named .key_virustotal.

A script to plot results is provided. Example data can be found in example_data folder.

  • helper_plotter.py

License

pymetangine  Copyright (C) 2021-2023 Sergio Chica Manjarrez.
This program comes with ABSOLUTELY NO WARRANTY; for details check below.
This is free software, and you are welcome to redistribute it
under certain conditions; check below for details.

LICENSE

pymetangine's People

Contributors

scmanjarrez avatar dependabot[bot] avatar github-actions[bot] avatar

Stargazers

 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.