How to build a .bin executable for NDS?

  • Thread starter Thread starter jaimin1k
  • Start date Start date
  • Views Views 1,865
  • Replies Replies 1

jaimin1k

New Member
Newbie
Joined
Jan 3, 2015
Messages
3
Reaction score
0
Trophies
0
XP
103
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?
 
[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