Coder Social home page Coder Social logo

jamieres / mz-data-extract Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 2.0 673 KB

Simple tool that you can use for collect relevant data of Portable Executable (PE) files that can be used for Intel during a line of research related with malware.

Python 100.00%
python intelligence mz data-extractor malware-research threat-analysis

mz-data-extract's Introduction

MZ-Data-Extract is a simple tool that you can use for collect relevant data of Portable Executable (PE) files that can be used for Intel during a line of research related with malware. All information collected can be used for Intel purposes. It support PE 32bits and 64bits for executables files type EXE, DLL, SYS, SCR, CPL, MSI, COM and at the moment just work in *NIX-Based distros.

This tool should always be accompanied by the file "packerdb.txt" to work. If you try to get information from a file that is not MZ and/or don't use the mentioned file together with the tool, you will see the following message in red color: "It isn't a PE file or missing file packerdb.txt. Please, check it and try again."
Please check accordingly.

For historical information about this tool please read file "CHANGELOG". 
For samples tested information please read file "FILES_TESTED_TODO".
For know wath information you can obtain with this tools please read file "REPORT_EXAMPLE".

Usage syntaxis is: ./mzde.py [filepath]

* Requires:
First, remember run the following commands:
 apt-get update 
 apt-get upgrade
 apt-get install python-pip

Then just run "requirements.txt" file using the command pip install -r requirements.txt

But if you prefer to install the packages separately, follow the instructions for each case:

* PEfile: https://github.com/erocarrera/pefile 
 apt-get install python-pefile 

* Magic: https://pypi.python.org/pypi/python-magic
 pip install python-magic

* SSDeep: https://pypi.python.org/pypi/ssdeep/3.2
 pip install ssdeep

* FuzzyHashLib: https://pypi.python.org/pypi/fuzzyhashlib
 pip install fuzzyhashlib

This package is required for get SDHash data, but if you have any problem with package install process, can install SDHash separately:
    * SDHash: https://pypi.python.org/pypi/sdhash
      pip install sdhash
        
Maybe you need install requires distributions for SDHash separately. Please use following commands:
  pip install NumPy or visit https://pypi.python.org/pypi/numpy
  pip install SciPy or visit https://pypi.python.org/pypi/scipy
  pip install Pillow

***** By default, SDHash option is disabled because the string is too long. If you want to know this data, please uncomment the line 83, or line "print Fore.WHITE + Style.NORMAL + "SDHash: %s" % Style.DIM + fuzzyhashlib.sdhash(data).hexdigest()" and save change.

***** Fuzzy-Hash Algorithms just show data, this process don't compare files. 
 
* Bitstring: https://pypi.python.org/pypi/bitstring/3.1.5
 pip install bitstring

* argparser: https://code.google.com/archive/p/argparse/
 apt-get install python-argparse

* colorama: https://pypi.python.org/pypi/colorama/
 apt-get install python-colorama

DISCLAIMER: This tool was written for internal and personal use and tested, at the moment, just under Ubuntu 16.04. Please use the tool at your own risk.

AUTHOR: Jorge (Pistus) Mieres
Email: jamieres-[at]-gmail-[dot]-com. 
Twitter: @jorgemieres

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.