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 unpackingBasicBlock
s into their constituentInstructions
CapstoneInstructionAnalyzer
for re-analyzing anInstruction
if its data is changedCapstoneInstructionRegisterUsageAnalyzer
for determining which register anInstruction
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 byofrak_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
The tests for ofrak_capstone
require the tests to be installed for the core OFRAK module. These must
first be installed after downloading the OFRAK source code.
Then, the ofrak_capstone
tests can be run with:
pytest --pyargs ofrak_capstone_test
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file ofrak_capstone-1.0.0.tar.gz
.
File metadata
- Download URL: ofrak_capstone-1.0.0.tar.gz
- Upload date:
- Size: 13.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf666574e4fcff28e7225d0d33e1c9e95ce5ccbd8ea8f78d279cef63f5374a87 |
|
MD5 | e40b97127034397b11deb9c003b941e5 |
|
BLAKE2b-256 | 9e508f1e5ec5276b76ffe544a8845786076959932d89eb815d55acdbf4c82591 |