GithubHelp home page GithubHelp logo

mozibgone's Introduction

mozibgone

A Mozi botnet UPX unpacker and config extractor

This program operates on malware samples belonging to the Mozi botnet family. An analysis of the malware can be found here.

This program is designed to automate the preparation of the sample for analysis, such as circumventing the anti-unpacking measures taken to break UPX decompression, as well as to automate the extraction of the XOR-encrypted configuration string.

Features

Unpacking

  • Detection of UPX packing, and can fix broken headers to enable unpacking.
  • Can make use of custom UPX magic numbers (which is sometimes used by malware authors to break standard UPX) to find and fix broken headers

Currently, this tool only supports unpacking for files that have a broken p_info or l_info header. Some Mozi samples utilize a custom form of UPX that cannot be fixed conventionally, and may require executing the sample to extract the executable from memory.

Config Extraction

  • Can detect encrypted configuration within the sample and decrypt it
  • Can parse the configuration with regular expressions to extract various fields
  • Can dump the fields to a JSON file

Usage

usage: mozibgone.py [-h] [-u] [-e] [-a] [-m MAGIC] [-o OUTPUT] [-v] [-q] [-j JSON] file

Mozi botnet unpacker and config extractor

positional arguments:
  file                  the file to operate on

options:
  -h, --help            show this help message and exit
  -u, --unpack          unpack the file only
  -e, --extract         extract the configuration only
  -a, --all             unpack and extract - equivalent to -ue
  -m MAGIC, --magic MAGIC
                        a custom UPX magic number to use
  -o OUTPUT, --output OUTPUT
                        separate file for UPX to output to
  -v, --verbose         enables debug output
  -q, --quiet           disable all output except for errors
  -j JSON, --json JSON  dump the configuration to a json file

mozibgone's People

Contributors

cartoon-raccoon avatar

Watchers

 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.