Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rbran/ice-kola
https://github.com/rbran/ice-kola
Last synced: 20 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/rbran/ice-kola
- Owner: rbran
- Created: 2023-12-14T19:27:29.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-01T17:37:45.000Z (11 months ago)
- Last Synced: 2024-11-03T19:05:04.026Z (2 months ago)
- Language: Rust
- Size: 91.9 MB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pcode Generator
Tool that generates low-level (raw) Pcode and high-level Pcode from a binary file using the Ghidra API.## Install
Make sure to install submodules and configure the correct path to Ghidra:
```
git clone --recursive https://github.com/kajaaz/pcode-generator.git
export GHIDRA_SRC=${HOME}/path/to/pcode-generator/ghidra
```
Make also sure to have Rust and C++ installed.## Usage
Getting this Pcode generator running is quite simple:
```
USAGE:
cargo run [ABSOLUTE PATH TO BINARY] [FLAGS]FLAGS:
--high-pcode Generate an output file with the Ghidra high level Pcode instructions
--low-pcode Generate an output file with the Ghidra low level (raw) Pcode instructions
```Be aware that the first build will take 2 to 3 minutes. After that, the generation of the file should be done in several seconds.
You can generate the raw Pcode of a binary using Pcode-generator and then use [Pcode-parser](https://github.com/kajaaz/pcode-parser/tree/main) to parse the produced pcode.
## Example of use
If you want to generate the high-level Pcode of the binary "calculus", use the following command in ```pcode-generator/src```:
```
cargo run /absolute/path/to/tests/calculus/calculus --high-pcode
```
The output file with the generated Pcode can be found in the locally created ```results``` directory at the root of the repo.### Credits
Thanks to @rbran, @niooss-ledger and @yhql.