Skip to main content

No project description provided

Project description

OFRAK

OFRAK (Open Firmware Reverse Analysis Konsole) is a binary analysis and modification platform that combines the ability to unpack, analyze, modify, and repack binaries.

Package: ofrak_capstone

OFRAK
└───ofrak
│   └───disassemblers
│       └───ofrak_angr
│       └───ofrak_binary_ninja
│       └───ofrak_capstone  <-- //YOU ARE HERE//
│       |   └───components.py
│       |   └───disassembler_service_capstone.py
│       └───ofrak_ghidra
└───ofrak_type
└───ofrak_io
└───ofrak_patch_maker
└───ofrak_tutorial

This package contains OFRAK components utilizing the Capstone disassembler:

  • CapstoneBasicBlockUnpacker for unpacking BasicBlocks into their constituent Instructions
  • CapstoneInstructionAnalyzer for re-analyzing an Instruction if its data is changed
  • CapstoneInstructionRegisterUsageAnalyzer for determining which register an Instruction reads/writes

Unlike the other "disassembler" packages, this does not include a CodeRegionUnpacker or ComplexBlockUnpacker to deconstruct a section of code into functions and basic blocks. It is useful for applications which:

  • Work only with individual instructions or basic blocks.
  • Also use one of the other packages under disassemblers, which can handle the higher-level structures and leave the basic blocks to be handled by ofrak_capstone.

After installing the package, it can be used in an OFRAK script by adding the following to the setup step:

import ofrak_capstone
...
ofrak = OFRAK()
... # Other setup steps
ofrak.discover(ofrak_capstone)

Testing

This package maintains 100% test coverage of functions.

License

The code in this repository comes with an OFRAK Community License, which is intended for educational uses, personal development, or just having fun.

Users interested in using OFRAK for commercial purposes can request the Pro or Enterprise License. See OFRAK Licensing for more information.

Documentation

OFRAK has general documentation and API documentation, which can be viewed at https://ofrak.com/docs.

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

ofrak_capstone-1.1.0.tar.gz (16.3 kB view details)

Uploaded Source

File details

Details for the file ofrak_capstone-1.1.0.tar.gz.

File metadata

  • Download URL: ofrak_capstone-1.1.0.tar.gz
  • Upload date:
  • Size: 16.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ofrak_capstone-1.1.0.tar.gz
Algorithm Hash digest
SHA256 1c13c1ca0ba266d5ff1a55c6599f8911d6ccc5db2c556db142d0b94a8faf24ac
MD5 af09306a4e9ea7927646f4134ab0212c
BLAKE2b-256 b6b4d6419565fdb785dc7535f68349ca06586b3117addf0124ce3088f1e53822

See more details on using hashes here.

Supported by

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