9个不稳定版本 (3个破坏性更新)
0.4.0 | 2021年8月12日 |
---|---|
0.3.1 | 2021年8月10日 |
0.3.0 | 2020年12月27日 |
0.2.2 | 2020年12月19日 |
0.1.2 | 2020年12月12日 |
540 在 编程语言
每月37次下载
在 unfuck 中使用
36KB
822 行
pydis
用于反汇编Python 2.7字节码的Rust包
示例用法
use pydis::prelude::*;
use pydis::opcode::py27::Standard;
fn disassemble(bytecode: &[u8]) {
let mut rdr = std::io::Cursor::new(bytecode);
// Decode using the standard Python 2.7 opcode table.
// A custom opcode table can be passed by calling `decode::<OpcodeTable, _>(source)`
while let Ok(instr) = decode_py27::<Standard, _>(&mut rdr) {
println!("{:#?}", instr);
}
}
依赖项
~0.4–1MB
~21K SLoC