Homebrew Merry Christmas - Have some RAM Dumping!

minexew

ayy lmao
Member
Joined
Mar 16, 2013
Messages
228
Trophies
0
XP
284
Country
PS3 homebrew hero naehrwert has released some helpful python scripts related to 3ds RAM dumping. The ramdump.py script generates a launcher.dat that is functionally similar to waffle's RAM dumper, but this is can be additionally useful as it shows how the ROP chain was generated and thus might be a useful thing to study for those interesting in ROPing the 3DS themselves.

https://github.com/naehrwert/p3ds

Dumb question: if there was no NX bit, would it be enough to just overflow the stack with <addr_of_this+4><payload code>?
 
  • Like
Reactions: Mr_Pichu

elhobbs

Well-Known Member
Member
Joined
Jul 28, 2008
Messages
1,044
Trophies
1
XP
3,035
Country
United States
In addition to the nx bit there is also read and write controls on the different memory regions. So you would still be limited to the memory available to the stack.
 

zecoxao

Well-Known Member
Member
Joined
Dec 25, 2013
Messages
379
Trophies
1
Age
33
XP
1,703
Country
naehrwert is one of the nicest people i ever had the pleasure of talking with on irc. the best part is that he's doing this for fun, and not because he's obligated to anything on anyone's part :)
i suggest you guys take a look at his work on the ps3 scene.
besides that, congratulations on your joint work with him, fierce waffle. i hope you guys get stable code execution soon.
 

Kane49

Well-Known Member
Member
Joined
Nov 4, 2013
Messages
446
Trophies
0
Age
36
XP
343
Country
Gambia, The
Can someone explain the deadlock stuff in the source ?
naehrwert is one of the nicest people i ever had the pleasure of talking with on irc. the best part is that he's doing this for fun, and not because he's obligated to anything on anyone's part :)
i suggest you guys take a look at his work on the ps3 scene.
besides that, congratulations on your joint work with him, fierce waffle. i hope you guys get stable code execution soon.

Ive been pestering him on github and twitter :P
 

Kane49

Well-Known Member
Member
Joined
Nov 4, 2013
Messages
446
Trophies
0
Age
36
XP
343
Country
Gambia, The
My hosting service is currently down. Should be back up soon enough.


Okay :) I remembered you writing something about the self parameter that i wanted to read again as the file_open in my ram dump has 4 arguments while it is called with only 3 in launcher.dat.
 

fierce waffle

Well-Known Member
OP
Member
Joined
Sep 15, 2012
Messages
108
Trophies
1
XP
216
Country
United States
Okay :) I remembered you writing something about the self parameter that i wanted to read again as the file_open in my ram dump has 4 arguments while it is called with only 3 in launcher.dat.

No. Ours both have 3 arguments.

Code:
Mine : IFile_Open_1 _this, PATH_ADDR1, OPEN_WRITE|OPEN_CREATE
His : r.call(0x1B82AC,[0x279000,Ref("fname"),6],5)
 

Kane49

Well-Known Member
Member
Joined
Nov 4, 2013
Messages
446
Trophies
0
Age
36
XP
343
Country
Gambia, The
No. Ours both have 3 arguments.

Code:
Mine : IFile_Open_1 _this, PATH_ADDR1, OPEN_WRITE|OPEN_CREATE
His : r.call(0x1B82AC,[0x279000,Ref("fname"),6],5)


Thats true but not what i ment, my fault for not knowing how to clearly communicate what I'm confused about ^^

I made a ram dump and right now I'm trying to statically analyse it to get a general picture of whats going on in there, the file open function i found in there
(somewhat identified by how it splits the filename at ':') seems to have 4 arguments instead of the 3 you and him use.

My guess is that I don't understand the arm assembly well enough and it actually only has 3 arguments or less likely that i got the wrong function.
 

mathieulh

Well-Known Member
Member
Joined
Feb 28, 2008
Messages
378
Trophies
0
Website
keybase.io
XP
897
Country
France
Does anyone know who maintains the 3dsbrew website ? It seems like I can't signup using my current nick because it's blacklisted for some reason, I wanted to add some infos in there but I'll wait till I can do it using my nick (or not at all)
 

Kane49

Well-Known Member
Member
Joined
Nov 4, 2013
Messages
446
Trophies
0
Age
36
XP
343
Country
Gambia, The
Does anyone know who maintains the 3dsbrew website ? It seems like I can't signup using my current nick because it's blacklisted for some reason, I wanted to add some infos in there but I'll wait till I can do it using my nick (or not at all)


I'm guessing you checked out yesterdays commit :P ?
3DSBrew has blacklisted the nick /.*/ :)
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • BakerMan
    I rather enjoy a life of taking it easy. I haven't reached that life yet though.
  • BigOnYa
  • Xdqwerty
    what are you looking at?
  • Veho @ Veho:
    Ah, yes, portrait mode, surely the best way to film a row of people. If only there were some way to fit a wider shot, at the expense of height... if only...
    +1
  • K3Nv2 @ K3Nv2:
    4k portrait mode?
    +1
  • BigOnYa @ BigOnYa:
    Diddy - "I never touched her, that bitch is crazy." Video is released. Diddy - " Ok I did it, i am remorseful for my actions during my darkest times." Lol
  • SylverReZ @ SylverReZ:
    @BigOnYa, Glad that the Diddler got caught once again.
    +1
  • K3Nv2 @ K3Nv2:
    Iran ran out of options
  • K3Nv2 @ K3Nv2:
    Thought I saw my ex on that new kingdom of the Apes poster
  • BigOnYa @ BigOnYa:
    I thought I saw a puttie snatch...
  • BigOnYa @ BigOnYa:
    I'm so pumped, NCAA football video game is back after a 10 year hiatus, coming to SeriesS/X, PS5 in July.
  • BigOnYa @ BigOnYa:
    Wish they would let us play the NCAA football 14 on newer xbox, its one of the only games I love and own on disc still, that is not back compatible, bs.
  • AdenTheThird @ AdenTheThird:
    @BigOnYa My dad recently bought a spare Series X off of me, got game pass, and saw Madden '24 on Game Pass, decided to try it out.

    ...He was a bit taken aback by the 60GB download size. Poor guy's still living in the 90s!
    +1
  • SylverReZ @ SylverReZ:
    @AdenTheThird, Bro's still in the PS2 age.
  • K3Nv2 @ K3Nv2:
    Lol charging your dad's classic unless he's the type that doesn't like taking things like that
  • AdenTheThird @ AdenTheThird:
    @K3Nv2 He was looking into consoles for his house anyway (for my younger siblings and himself) and I had a spare XSX and Switch I ended up selling him at pretty steep cuts. I would just give them to him, but I did buy them with the intent to sell them... and college is super expensive.
  • BigOnYa @ BigOnYa:
    A little yeah...
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, [insert wut here]
    +1
  • BigOnYa @ BigOnYa:
    I'm a little hi, but bout to fix that.
    +1
  • BigOnYa @ BigOnYa:
    Now I'm low, i was upstairs in my wifeys kitchen, now I'm downstairs in my dungeon.(My basement)
  • BakerMan @ BakerMan:
    do you mind? i snuck in with amiibo and jars, and am trying to do my thing brony style
  • BakerMan @ BakerMan:
    have you ever regretted saying something immediately after saying it?
  • BakerMan @ BakerMan:
    nah what i was doing was trying to cure my ever-so-apparent crabs
    BakerMan @ BakerMan: nah what i was doing was trying to cure my ever-so-apparent crabs