smali_disassembler

Crates.iosmali_disassembler
lib.rssmali_disassembler
version0.1.2
sourcesrc
created_at2024-09-21 18:44:59.083087
updated_at2024-09-21 20:27:54.140643
descriptionsmali disassembler written fully in Rust
homepage
repository
max_upload_size
id1382412
size65,471
Daniel Bartov (danbar2003)

documentation

README

Overview

VERY simple smali disassembler written in Rust

TODO

  • add control flow traits to basic blocks related instuctions (goto, branch, return, ...)
  • add basic util as a cli (kinda like baksmali)
  • add a simple example and document the functions (even though its very very simple :D)

Example

use smali_disassembler::SmaliDecoder;

fn main() {
    let raw_bytes = [0u8; 4];

    let smali_decoder = SmaliDecoder::new(&raw_bytes);
    let disassembled_smali_code = smali_decoder.decode_all();

    println!("result {:#x?}", disassembled_smali_code)
}
result [
    DalvikInstruction {
        inst: Nop,
        offset: 0x0,
    },
    DalvikInstruction {
        inst: Nop,
        offset: 0x2,
    },
]
Commit count: 0

cargo fmt