Module refinery.lib

Library functions used by various refinery units.

Expand source code Browse git
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Library functions used by various refinery units.
"""

Sub-modules

refinery.lib.argformats

Multibin Syntax …

refinery.lib.argparser
refinery.lib.chunks

Routines to help interpret large binary buffers as arrays of numbers, stored as consecutive sequences of bytes, all with the same length and byte order.

refinery.lib.crypto
refinery.lib.decorators

A selection of refinery-specific decorators.

refinery.lib.deobfuscation

Contains functions to aid in deobfuscation.

refinery.lib.dotnet

A library to parse .NET headers and meta data.

refinery.lib.frame

Some refinery units produce more than one output when applied to an input. For example, chop will chop the input data into evenly sized …

refinery.lib.java

Parsing of the Java Class file format as per: https://docs.oracle.com/javase/specs/jvms/se14/html/jvms-4.html

refinery.lib.json

In order to represent arbitrary data as JSON, these classes help extend the built-in json module in order to support custom encoding of already …

refinery.lib.loader

Functions to help dynamically load refinery units.

refinery.lib.magic

A cross platform interface to libmagic.

refinery.lib.meta

Inside a frame (see refinery.lib.frame), all chunks that are processed by refinery units have a dictionary of metadata attached to them. This …

refinery.lib.mime

File type related functions.

refinery.lib.mscrypto

Microsoft Crypto API structures

refinery.lib.patterns

Library of regular expression patterns.

refinery.lib.powershell

Windows-specific module to determine whether the current Python process is running in a PowerShell process.

refinery.lib.structures

Interfaces and classes to read structured data.

refinery.lib.suffixtree

This module contains an implementation of Ukkonen's suffix tree algorithm.

refinery.lib.tools

Miscellaneous helper functions.

refinery.lib.types

Exports two singletons INF and AST. Used by PatternExtractorBase as the default …

refinery.lib.xml