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,566
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
  • crafthp434 @ crafthp434:
    like i searched all folders
  • NinStar @ NinStar:
    are you using haxchi, tiramisu or aroma?
  • crafthp434 @ crafthp434:
    yeah
  • NinStar @ NinStar:
    no, I'm asking which one of them you are using
  • crafthp434 @ crafthp434:
    aroma
  • NinStar @ NinStar:
    in that case, there is no such thing as homebrew launcher for aroma
  • NinStar @ NinStar:
    you have to launch your homebrews directly from the wii u menu
  • NinStar @ NinStar:
    there is a plugin that display them on the wii u menu, pretty sure it is enabled by default
  • crafthp434 @ crafthp434:
    so like it doesnt exist
  • crafthp434 @ crafthp434:
    yeah
    ?
  • NinStar @ NinStar:
    it doesn't exist, at least not for aroma
  • crafthp434 @ crafthp434:
    ohhhhh
  • NinStar @ NinStar:
    on tiramisu you can access it by opening mii maker
  • crafthp434 @ crafthp434:
    okay
  • NinStar @ NinStar:
    I don't have a wii u anymore to test it myself, but if homebrews are not visible on the wii u menu I think you can press L + R + minus to open the plugin menu, there should be an option called "homebrews on wii u menu" or something similar
  • crafthp434 @ crafthp434:
    nope
  • crafthp434 @ crafthp434:
    it is L+dpad down+ select
  • crafthp434 @ crafthp434:
    but homebrew is appearing in the home menu btw
  • NinStar @ NinStar:
    yes, now I remember it
  • NinStar @ NinStar:
    then it is working, I also don't like that they did this but it is the only option you have if you are using aroma
  • crafthp434 @ crafthp434:
    i just didint know the homebrew launcher didint exist in aroma
  • crafthp434 @ crafthp434:
    thanks btw
  • Xdqwerty @ Xdqwerty:
    Im downloading fallout 3 goty edition
    +1
  • BigOnYa @ BigOnYa:
    I'm downloading more ram for my hamster pc
    BigOnYa @ BigOnYa: I'm downloading more ram for my hamster pc