Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bitbucket.org/vahidi/molly

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bitbucket.org/vahidi/molly

  • v0.0.0-20220705210536-79395b0fd5f5
  • Source
  • Go
  • Socket score

Version published
Created
Source

Molly

Molly (after Molly Hooper in Sherlock Holmes, not the drug) is an automated file analysis and extraction tool. It can search files for user-defined patterns and perform various actions when a match is found.

Molly comes with a number of operators for analyzing and files in addition to a simple API for adding custom ones.

Molly was initially developed in the SECONDS (Secure Connected Devices) project for binary extraction from foreign firmware images.

Installation

Binaries are found on the download page <https://bitbucket.org/vahidi/molly/downloads/>_, but might be slightly out of date.

To build from source::

sudo apt install golang build-essential git
git clone https://bitbucket.org/vahidi/molly
cd molly
make && make test && make run

Rules

Molly uses a rule database to store known patterns. The rules have a simple and familiar syntax, for example the following will recognize ZIP files)::

rule ZIP (bigendian = false, tag = "archive") {
    var header = String(0, 4); /* extract 4-byte string at position 0 */
    var csize = Long(18);      /* extract 32-bit at position 18 */
    var usize = Long(22);
    if header == { 'P', 'K', 0x05, 0x06} || header == {'P', 'K', 0x03, 0x04};
    extract("zip", "");       /* apply the ZIP extractor on this file */
}

For more detailed information refer to the manual <manual.pdf>_.

FAQs

Package last updated on 05 Jul 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc