How to build a .bin executable for NDS?

jaimin1k

New Member
OP
Newbie
Joined
Jan 3, 2015
Messages
3
Trophies
0
XP
83
Country
United States
There's this exploit for the NDS I've been interested in trying out myself:



The code being executed is a "code.bin" which is actually compiled into the audio file (source code in the description) but the code.bin used in the demonstration video is not included. How would I go about making my own? I already have devkitPro, could I just use that?
 

Coto

-
Member
Joined
Jun 4, 2010
Messages
2,979
Trophies
2
XP
2,568
Country
Chile
[demo audio WAV,having the arm9.bin embedded into it]
http://web.archive.org/web/20150405014143/http://smealum.net/soundhax.wav

The whole program you linked, seems to exploit a vulnerability in the mic -> readbuffer decompressor code found in that game. Which will then cause the embedded arm9.bin within the audio WAV (signal transferred to the internal DS buffer) to run.

So my guess that would be a binary ARM9 payload. (ARM9 payload having an entrypoint, stack address and program on itself).
Yes you need some toolchain to build an ARM9 binary like that. That would mean building an ordinary NDS homebrew having two folders: arm7 and arm9, and then you'd only copy the arm9.bin one generated from the /arm9 folder. If instead you get an arm9.elf, you need to run "objcopy -S -O binary arm9.elf arm9.bin" to generate a raw executable ARM binary out of said .ELF
 
Last edited by Coto,
  • Like
Reactions: cimo95

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • realtimesave @ realtimesave:
    basement would be a nice place to hide
  • BigOnYa @ BigOnYa:
    You close to @AncientBoi then...he should adopt you and show you the ropes. S&M themed nights.
  • realtimesave @ realtimesave:
    @BigOnYa I'm too old to be adopted now, n not responsible enough to care for @Xdqwerty like u are :)
    +1
  • K3Nv3 @ K3Nv3:
    When ancientboi acts out just push the stop lever works for me
    +1
  • K3Nv3 @ K3Nv3:
    Don't know if it's an age thing but I can kind of tell when I'm in dreamland is werid
  • realtimesave @ realtimesave:
    lucid dream?
  • BigOnYa @ BigOnYa:
    Play Russian Pilloutte with him, mix up his pills n have him take one...is it blood pressure med, or is it Viagra... You will find out.
  • K3Nv3 @ K3Nv3:
    I got REM from eeg reading apparently
  • BigOnYa @ BigOnYa:
    "What's the frequency Kenneth" - REM...ironic
  • K3Nv3 @ K3Nv3:
    Guess they gay moan in my sleep gave it away
    +1
  • BigOnYa @ BigOnYa:
    "Ooh yeah Psi, it puts the lotion on me."
  • K3Nv3 @ K3Nv3:
    Psi didn't even know he was a grandpa
    +1
  • BigOnYa @ BigOnYa:
    I bet most kids in his town look like him, giggity.
  • AngryCinnabon @ AngryCinnabon:
    so burned out tonight lol
  • AngryCinnabon @ AngryCinnabon:
    i need to sleep soon methinks
  • realtimesave @ realtimesave:
    gotta work tomorrow come home n find my packages :)
  • K3Nv3 @ K3Nv3:
    Don't let your packages get stuck in the zipper
  • chrisrlink @ chrisrlink:
    same cin same
  • chrisrlink @ chrisrlink:
    before i forget merry wana
  • chrisrlink @ chrisrlink:
    i still had eh 30 mins to say it
  • chrisrlink @ chrisrlink:
    damn no pot brownies in my easter basket damn it
  • Sicklyboy @ Sicklyboy:
    damn rip
  • Sicklyboy @ Sicklyboy:
    same tho
  • Sicklyboy @ Sicklyboy:
    I did find out today though that my cool aunt smokes weed lmao
    Sicklyboy @ Sicklyboy: I did find out today though that my cool aunt smokes weed lmao