Skip to main content

A set of functions useful in reverse engineering.

Project description

Info

ReverseBox is a Python package with a set of functions useful in software reverse engineering.

Why ReverseBox?
It's designed to help with:

  1. Decompressing / compressing data
  2. Decrypting / encrypting data
  3. Tedious reverse engineering tasks e.g. testing different checksum algorithms to find the one that was used in the software or file format.
  4. Parsing data structures
  5. Wrapping functions for input/output operations

Who should use ReverseBox?
Mostly developers and reverse engineers (e.g. file format researchers or software researchers).

List of functionalities

  • Checksum

    • CRC16 ✔️
    • CRC32 ✔️
    • CRC-16 (Modbus) (TODO) ❌
    • CRC-16 (Sick) (TODO) ❌
    • CRC-CCITT (XModem) (TODO) ❌
    • CRC-CCITT (0xFFFF) (TODO) ❌
    • CRC-CCITT (0x1D0F) (TODO) ❌
    • CRC-CCITT (Kermit) (TODO) ❌
    • CRC-DNP (TODO) ❌
    • 1 byte checksum (TODO) ❌
  • Compression

    • ZLIB (TODO) ❌
    • Refpack (TODO) ❌
  • Encryption

    • Basic XOR (TODO) ❌
  • Hash

    • MD5 (TODO) ❌
  • IO

    • Basic IO operations (TODO) ❌

Checksum calculation- example

Below is an example for checksum calculation using ReverseBox package. Calulating other checksums is very similar.

// CRC16 calculation

from reversebox.checksum import checksum_crc16
from reversebox.common import common


test_data = b'123456789'
crc16_handler = checksum_crc16.CRC16Handler()
crc16 = crc16_handler.calculate_crc16(test_data)
print("CRC16_INT: ", crc16)
print("CRC16_STR: ", common.convert_int_to_hex_string(crc16))

// CRC16 output

CRC16_INT:  47933
CRC16_STR:  0xBB3D

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ReverseBox-0.0.18.tar.gz (16.3 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page