ghidra-batteries-included icon indicating copy to clipboard operation
ghidra-batteries-included copied to clipboard

PS3 support

Open r3sus opened this issue 4 years ago • 11 comments

Hello and thanks a lot for your work! That'd be very useful to add PS3 .ELF support in Ghidra. I tried various scripts and add-ons to Ghidra but got only issues:

  1. clienthax/Ps3GhidraScripts issue

  2. zecoxao/ps3_ghidra a. CELL PPU Processor Module b. find_stdu.java issue

I didn't tried: https://github.com/aerosoul94/GhidraSPU :> https://github.com/bevanweiss/GhidraSPU/tree/TrialChanges

Thanks.

r3sus avatar Aug 31 '20 07:08 r3sus

Next build will include the PPU and SPU sleigh processor modules.

garyttierney avatar Sep 07 '20 18:09 garyttierney

Awesome, thank you! Xbox360 support will be useful too, but doesn't supports 9.2 now https://github.com/zeroKilo/XEXLoaderWV/issues/8

r3sus avatar Sep 07 '20 21:09 r3sus

@garyttierney To avoid issues with decompliation on ps3 the following change is needed in Processors\PowerPC\data\languages\ppc_64_32.cspec Add to the list.

Apart from that my scripts just need the indexes bumping due to a header change in ghidra.. (Why the heck don't they allow me to lookup things by name)

clienthax avatar Oct 01 '20 11:10 clienthax

Hi @clienthax,

the following change is needed in Processors\PowerPC\data\languages\ppc_64_32.cspec Add to the list.

Is this a commit you're referring to? I think I have a copy of your PPC64 SLEIGH changes from maybe a year or so ago, but it seems to be missing from your repo now.

garyttierney avatar Oct 10 '20 14:10 garyttierney

Hi @clienthax,

the following change is needed in Processors\PowerPC\data\languages\ppc_64_32.cspec Add to the list.

Is this a commit you're referring to? I think I have a copy of your PPC64 SLEIGH changes from maybe a year or so ago, but it seems to be missing from your repo now.

Gah.. copypasta fail!

add r2 to the <unaffected> list

clienthax avatar Oct 10 '20 17:10 clienthax

Ah, got it. I'll include a patch for that in my next PR. Is there any reason not to send that upstream to Ghidra?

garyttierney avatar Oct 10 '20 18:10 garyttierney

Ah, got it. I'll include a patch for that in my next PR. Is there any reason not to send that upstream to Ghidra?

I think it's been submitted.. somewhere, likely by aero

clienthax avatar Oct 12 '20 10:10 clienthax

Yep, found it. For posterity: https://github.com/NationalSecurityAgency/ghidra/issues/570#issuecomment-701728185.

I'll open a PR for this.

garyttierney avatar Oct 12 '20 18:10 garyttierney

Patch included here: https://github.com/garyttierney/ghidra-batteries-included/pull/28. I'll keep this open 'til I bundle the SELF analyzer script and the sleigh module for the SPU.

garyttierney avatar Oct 12 '20 20:10 garyttierney

Any update on this?

PikminGuts92 avatar Jan 12 '21 09:01 PikminGuts92

@garyttierney my scripts are now an extension https://github.com/clienthax/Ps3GhidraScripts/releases

clienthax avatar Mar 22 '21 15:03 clienthax