class
Cradare2::Platform::PS2::Helper
- Cradare2::Platform::PS2::Helper
- Reference
- Object
Overview
High-level helper providing PlayStation 2 Emotion Engine, GS, SPRAM, and GIF packet forensics.
Defined in:
cradare2/platform/ps2/helper.crConstructors
Instance Method Summary
- #client : Client
-
#configure_ee : self
Configures radare2 disassembler for PS2 Emotion Engine (MIPS R5900, 32-bit).
-
#configure_iop : self
Configures radare2 disassembler for PS2 Input/Output Processor (MIPS I R3000A, 32-bit).
-
#decode_giftag(address : Address) : GifDissector::GifTagInfo
Decodes a 128-bit GIFTag header from memory at given address.
-
#dissect_gif_packet(address : Address, max_items : Int32 = 50) : Array(GifDissector::GifItemInfo)
Dissects a series of 128-bit GIF packet items starting at given address.
-
#generate_script(target_path : String = "") : String
Generates a standalone radare2 .rc script for PS2 / Citrine reverse engineering.
-
#read_spram(offset : Int32 = 0, size : Int32 = 64) : Bytes
Reads raw bytes from SPRAM at given offset (0 to 16KB).
-
#register_formats : self
Registers standard PS2 GS and Citrine print formats (
pf.gs_*,pf.giftag,pf.citrine_obj). -
#setup_memory_map : self
Injects PS2 EE memory map flags (SPRAM, GS registers, DMAC) into the "ps2" flag space.
-
#verify_canary(address : Address = Registers::SPRAM_START, expected : UInt32 = Registers::DEFAULT_CANARY) : Bool
Verifies the SPRAM stack canary value (default 0xDEADBEEF).
Constructor Detail
Instance Method Detail
Configures radare2 disassembler for PS2 Emotion Engine (MIPS R5900, 32-bit).
Configures radare2 disassembler for PS2 Input/Output Processor (MIPS I R3000A, 32-bit).
Decodes a 128-bit GIFTag header from memory at given address.
Dissects a series of 128-bit GIF packet items starting at given address.
Generates a standalone radare2 .rc script for PS2 / Citrine reverse engineering.
Reads raw bytes from SPRAM at given offset (0 to 16KB).
Registers standard PS2 GS and Citrine print formats (pf.gs_*, pf.giftag, pf.citrine_obj).
Injects PS2 EE memory map flags (SPRAM, GS registers, DMAC) into the "ps2" flag space.