Here is an exciting new library by famous 3ds homebrew developer Steveice10! (WorldOf3dSand, FBI, bannertool, 3DSGBA) https://github.com/Steveice10/ctr9 It comes with an included example. However, it produces a bare payload that can't run without being injected into an exploit binary. These things will be ironed out in time I'm sure, the library was only released yesterday. It's been fixed.