Hacking Debug ELF ps4 files by IDA Pro

Rextor

Member
OP
Newcomer
Joined
Aug 12, 2021
Messages
6
Trophies
0
XP
48
Country
Russia
Hello friends.
I want debug elf ps4 module's dynamical with IDA Pro.
How can i connect ida to the ps4 ?
in fact im using 7.51 modules, btw should i use same version for ps4 too?
any references or etc... ?
 

Rextor

Member
OP
Newcomer
Joined
Aug 12, 2021
Messages
6
Trophies
0
XP
48
Country
Russia
unfself the eboot or modules, use loader.

I am so sorry, btw can you explain more ?
have any link (info) from this loader ?
and what you mean unfself the eboot or modules exactly ? is it about the ps4 ?
i mean in general am i need the jailbroken ps4 ?
 

godreborn

Welcome to the Machine
Member
Joined
Oct 10, 2009
Messages
38,471
Trophies
3
XP
29,138
Country
United States
you need a fake pkg, yes. can't unself an official pkg. the system has to do that work without keys. here's unfself (don't have the loader). unfself is basically a fake encrypted self file (hence the name). you need them to install a game on the ps4:

--------------------- MERGED ---------------------------

just drag and drop the eboot.bin, prx, or sprx into it, and you'll have an elf file which can be read by the loader, which as I said I don't have.
 

Attachments

  • UnfSelf.zip
    21.7 KB · Views: 269

Rextor

Member
OP
Newcomer
Joined
Aug 12, 2021
Messages
6
Trophies
0
XP
48
Country
Russia
Already i have the ELF file to analyze, just now i don't know how can i debug it as dynamic mode in IDA.
i don't know how can i setup the ps4 + IDA for this action.
maybe we don't need the ps4 as you told about that Loader ? is this a Plugin for IDA or ... ?
 

godreborn

Welcome to the Machine
Member
Joined
Oct 10, 2009
Messages
38,471
Trophies
3
XP
29,138
Country
United States
yes, if the files are already decrypted by the system, no need to use unfself. however, if they're in a pkg:

upload_2021-8-14_16-7-22.png


eboot.bin-decrypted is the eboot.elf (it will say this with selfutil if you use that instead). and, yes, the loader is a plugin for IDA or probably ghidra as well. you can look for it. I deleted all of my backport stuff after hearing about the new mira. I won't be a part of the scene after that is released, because it makes ps4 stuff too easy, and imo, it retards the scene greatly. no one reads shit after that.

--------------------- MERGED ---------------------------

here's with selfutil (makes it an eboot.elf, but it's a different size. I prefer unfself, since even right.sprx works with it):

upload_2021-8-14_16-10-32.png


--------------------- MERGED ---------------------------

try this: https://github.com/balika011/belf
 
  • Like
Reactions: xZenithy

xZenithy

Well-Known Member
Member
Joined
Mar 4, 2019
Messages
194
Trophies
0
Age
46
XP
1,669
Country
United Kingdom
I don't know this little tool unself, I have to do it manually a take me 10 min more or less. Now, 30 seconds and the file is decrypted..

@Rextor, the explanation of Redreborn is totally correct.

for me experience, the problem is there are a few loaders/plugin and few of them only works for the exact IDA version.
Example, I have found a public loader/plugin for IDA:

https://github.com/SocraticBliss/ps4_module_loader

But no works for me... You can try it and let me know if it works for you or not..
 

Rextor

Member
OP
Newcomer
Joined
Aug 12, 2021
Messages
6
Trophies
0
XP
48
Country
Russia
@xZenithy, @godreborn, thanks for information.

I have the files decrypted already. Loaders can't help us to debug it dynamical.
IDA need an Host to do it correctly. so i need install a debug server on ps4 and connect it to IDA

I need dynamic debug because i need some generic fields in this file. in fact im not debuging a Game or App, its a Module of firmware.
also there are some functions using pointer to jump to another block, so i can't see what is this address without debug.
 

Attachments

  • dedbb.png
    dedbb.png
    26.2 KB · Views: 243
  • jmp.png
    jmp.png
    41.3 KB · Views: 226

godreborn

Welcome to the Machine
Member
Joined
Oct 10, 2009
Messages
38,471
Trophies
3
XP
29,138
Country
United States
that, I'm not sure how to do. I did decrypt the entire file system, but I don't know about creating a remote link with the ps4 to debug the files.

upload_2021-8-16_7-8-51.png
 

godreborn

Welcome to the Machine
Member
Joined
Oct 10, 2009
Messages
38,471
Trophies
3
XP
29,138
Country
United States
@KiiWii may know of a way to do this, since he brings news of lots of different apps, scripts, etc. in his aio thread. one of them may do exactly what you're wanting. I think the ps3 uses prog dg (don't know of a ps4 equivalent).
 

KiiWii

Editorial Team
Editorial Team
Joined
Nov 17, 2008
Messages
16,650
Trophies
3
Website
defaultdnb.github.io
XP
27,120
Country
United Kingdom
@KiiWii may know of a way to do this, since he brings news of lots of different apps, scripts, etc. in his aio thread. one of them may do exactly what you're wanting. I think the ps3 uses prog dg (don't know of a ps4 equivalent).
Neighbourhood can remotely load debug/unsigned apps.
 
  • Like
Reactions: godreborn

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • K3Nv2 @ K3Nv2:
    I'll reformat and have a 3tb raid0 m. 2 at least
    +1
  • K3Nv2 @ K3Nv2:
    Lmao that sold out fast
    +1
  • Veho @ Veho:
    Yeet the cat.
    +1
  • K3Nv2 @ K3Nv2:
    Good idea
    +1
  • The Real Jdbye @ The Real Jdbye:
    i thought everybody knew cocktails are like 75% ice
  • Veho @ Veho:
    Yeah but not like this.
  • Veho @ Veho:
    It's not like they're complaining that their Slurpee is 99% ice or something, but if the cocktail calls for "shot of vodka, shot of vermouth, shot of gin, shot of Campari, three shots of juice, squirt of lemon" and ends up being a thimbleful of booze, that's a problem.
  • The Real Jdbye @ The Real Jdbye:
    the funny thing is cocktails in norway are only allowed to have 1 20ml shot of booze
  • The Real Jdbye @ The Real Jdbye:
    so..... yeah
  • The Real Jdbye @ The Real Jdbye:
    we're used to only having a thimbleful of booze
  • Veho @ Veho:
    Booo.
  • The Real Jdbye @ The Real Jdbye:
    same thing if you want whisky on the rocks or something, you can't get a double
  • The Real Jdbye @ The Real Jdbye:
    but you could buy as many shots of whisky (or anything else) as you want and ask for a glass of ice and pour them in
  • The Real Jdbye @ The Real Jdbye:
    it's dumb
  • Veho @ Veho:
    Maybe.
  • Veho @ Veho:
    There was a comparison of the number of Ibuprofen poisonings before and after they limited the maximum dosage per box or per pill (i'll look that up). No limit on the number of boxes you can still buy as many as you want, so people argued it was pointless.
  • Veho @ Veho:
    But the number of (accidental) poisonings dropped because drinking an entire package of ibuprofen pills went from "I need a new liver" to "I need a new box of Ibuprofen".
  • Veho @ Veho:
    Here we have ketoprofen that used to be prescription-only because of the risk of toxic dosages, but then they halved the dose per pill and sell them in bottles of six pills apiece instead of twenty and it doesn't need a prescription any more. Yes you can buy more than one bottle but people simply don't.
  • Psionic Roshambo @ Psionic Roshambo:
    Usually accidentally overdose of ibuprofen here is from people taking like cold medicine then ibuprofen for a headache and the combination is over what they need
    Veho @ Veho: https://imgur.com/gallery/QQkYnQu