Quokka: A Fast and Accurate Binary Exporter
Project description
Quokka
image generated by DALL-E
Table of Contents
Introduction
Quokka is a binary exporter: from the disassembly of a program, it generates an export file that can be used without the disassembler.
The main objective of Quokka is to enable to completely manipulate the binary without ever opening a disassembler after the initial step. Moreover, it abstracts the disassembler's API to expose a clean interface to the users.
Quokka is heavily inspired by BinExport, the binary exporter used by BinDiff.
Installation
Python plugin
The plugin is built in the CI and available in the registry.
It should be possible to install directly from PIP using this kind of commmand:
$ pip install quokka-project
IDA Plugin
Note: The IDA plugin is not needed to read a Quokka generated file. It is
only used to generate them.
Quokka is currently compatible with IDA 7.3+
The plugin is built on the CI and available in the Release tab.
To download the plugin, get the file named quokka_plugin**.so.
Usage
Export a file
!!! note
This requires a working IDA installation.
- Either using command line:
$ idat64 -OQuokkaAuto:true -A /path/to/hello.i64
Note: We are using idat64 and not ida64 to increase the export speed
because we don't need the graphical interface.
- Using the plugin shortcut inside IDA: (by default) Alt+A
Export a file in batch
One can write its own bash script run multiple idat64 in parallel. However,
Quokka provides an utility tool to automatically export all executable files
of a given directory in parallel. An example to automate the export using 8 threads:
$ quokka-cli -t 8 dir/
Load an export file
import quokka
# Directly from the binary (requires the IDA plugin to be installed)
ls = quokka.Program.from_binary("/bin/ls")
# From the exported file
ls = quokka.Program("ls.quokka", # the exported file
"/bin/ls") # the original binary
Building
The process for building depends on which version of the IDA SDK you are using. These two modes are also referred as the new mode and the old mode.
IDA < 9.2 (The old way)
Since the IDA SDK is still proprietary code, you have to fetch it yourself and provide
its path to cmake through the option -DIdaSdk_ROOT_DIR:STRING=path/to/sdk
NOTE: This will also work on newer versions but it requires more steps from the users as they will have to download the sdk themselves.
user@host:~/quokka$ cmake -B build \ # Where to build
-S . \ # Where are the sources
-DIdaSdk_ROOT_DIR:STRING=path/to/ida_sdk \ # Path to IDA SDK
-DCMAKE_BUILD_TYPE:STRING=Release \ # Build Type
user@host:~/quokka$ cmake --build build --target quokka_plugin -- -j
IDA >= 9.2 (The new way)
Ida SDK has been finally open sourced so there is no need anymore to download it separately.
You can use the cmake option -DIDA_VERSION=<major>.<minor> to automatically sync it from github.
user@host:~/quokka$ cmake -B build \ # Where to build
-S . \ # Where are the sources
-DIDA_VERSION=9.2 \ # IDA SDK version
-DCMAKE_BUILD_TYPE:STRING=Release \ # Build Type
user@host:~/quokka$ cmake --build build --target quokka_plugin -- -j
Install
To install the plugin:
user@host:~/quokka$ cmake --install build
In any case, the plugin will also be in build/quokka-install. You can
copy it to IDA's user plugin directory.
user@host:~/quokka$ cp build/quokka-install/quokka*64.so $HOME/.idapro/plugins/
For more detailed information about building, see Building
Documentation
Documentation is available online at documentation
FAQ
You can see a list of questions here FAQ
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file quokka_project-0.6.2.tar.gz.
File metadata
- Download URL: quokka_project-0.6.2.tar.gz
- Upload date:
- Size: 49.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ac34c5bc8dfba54f7ac1a040d2a6e7a502e609bfa16800580486d5c2ce1d970
|
|
| MD5 |
99c0eda1549b400417723d8582ac71e5
|
|
| BLAKE2b-256 |
467aeabd236b0fec47836a547210dc32735e299d4bc1af8210e726cc513838da
|
Provenance
The following attestation bundles were made for quokka_project-0.6.2.tar.gz:
Publisher:
release.yml on quarkslab/quokka
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
quokka_project-0.6.2.tar.gz -
Subject digest:
0ac34c5bc8dfba54f7ac1a040d2a6e7a502e609bfa16800580486d5c2ce1d970 - Sigstore transparency entry: 748824689
- Sigstore integration time:
-
Permalink:
quarkslab/quokka@342a65ca99234374e7fed8cb500fe35ff389a184 -
Branch / Tag:
refs/tags/v0.6.2 - Owner: https://github.com/quarkslab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@342a65ca99234374e7fed8cb500fe35ff389a184 -
Trigger Event:
release
-
Statement type:
File details
Details for the file quokka_project-0.6.2-py3-none-any.whl.
File metadata
- Download URL: quokka_project-0.6.2-py3-none-any.whl
- Upload date:
- Size: 63.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
071a169f1c363e7a84ffb4e4c15e5269e9a4c06d806dad058f52c0141add7a75
|
|
| MD5 |
fa940cec351bef0a61fd9803bd6ede89
|
|
| BLAKE2b-256 |
8cbf68a5d4bd62f95c336c79599f16a6a5e98e7fdad090721594585e54a2dc26
|
Provenance
The following attestation bundles were made for quokka_project-0.6.2-py3-none-any.whl:
Publisher:
release.yml on quarkslab/quokka
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
quokka_project-0.6.2-py3-none-any.whl -
Subject digest:
071a169f1c363e7a84ffb4e4c15e5269e9a4c06d806dad058f52c0141add7a75 - Sigstore transparency entry: 748824691
- Sigstore integration time:
-
Permalink:
quarkslab/quokka@342a65ca99234374e7fed8cb500fe35ff389a184 -
Branch / Tag:
refs/tags/v0.6.2 - Owner: https://github.com/quarkslab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@342a65ca99234374e7fed8cb500fe35ff389a184 -
Trigger Event:
release
-
Statement type: