How do I make an exploit run my own code?

jaimin1k

New Member
OP
Newbie
Joined
Jan 3, 2015
Messages
3
Trophies
0
XP
73
Country
United States
I’m not new to the homebrew scene but I’m just starting to learn more about how this exploit stuff actually works. I just recently found my 3DS in storage and got homebrew set up on it. After watching a bunch of videos of different exploits (soundhax, browserhax, pichaxx, ninjhax, etc.) I’m very interested in learning how it actually works; using a software vulnerability to execute unsigned code. I used the devkit to write a simple “hello world” program in C++ which I can execute via the homebrew launcher but I want to execute it directly via one of the existing exploits on a stock firmware. How would I go about doing this? I want to learn as much as I can about software vulnerabilities and see how far I can go with it, perhaps on a different system in the future, using the 3DS as a way to learn more. I know this stuff isn’t simple so if you guys could send me as many resources as possible that would be awesome. I hope I can give you guys back something great in the future. Thanks!

Edit: The exploit that intrigued me the most is the buffer overflow in the Nintendo DS profile settings. It honestly amazes me how tiny little errors like that on the developers end can leave wide open doors for hackers to crack the system wide open.
 

FAST6191

Techromancer
Editorial Team
Joined
Nov 21, 2005
Messages
36,798
Trophies
3
XP
28,373
Country
United Kingdom
I did cover some basics quite a few years ago now
https://gbatemp.net/threads/some-hacking-concepts-and-links.287721/

More generally then many of the devs of such exploits will hold talks (usually at the C3 conferences) as to how they did it. If you wanted to follow along, maybe adapt such things for later games/firmwares/whatever after replicating the same things, then that will probably be a start.

In addition to the above then

Not the best thing I have ever seen but might help in some ways.
 

ghjfdtg

Well-Known Member
Member
Joined
Jul 13, 2014
Messages
1,366
Trophies
1
XP
3,304
Country
Things are... complicated. To write your own code ran by the exploit you jeed to understand how it works and how the whole system works. Usually it goes like this:
First a flaw of a game is getting exploited to take control of execution. Since we can't execute our code directly (execute never or XN) we have to resort to tricks. Namely ROP or return oriented programming. From there you can abuse gspwn (GPU overwrites existing code via DMA) to actually execute own code. It's a rough overview and there are many more details to it.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • RedColoredStars @ RedColoredStars:
    Walmart is an 60 mile round trip for me, and yes, I still spend less even after the gas cost. :) I dont go there just for milk. I do 2 big hauls a month, fill the cart up.
    +1
  • K3Nv2 @ K3Nv2:
    Gay Ride™ at a Walmart near you
    +1
  • Sicklyboy @ Sicklyboy:
    lol GBAtemp mentioned in the latest Bringus Studios video
  • NinStar @ NinStar:
    never heard of that developer
  • K3Nv2 @ K3Nv2:
    @Sicklyboy, was my anti hate trolling shitbox messages recorded
  • AncientBoi @ AncientBoi:
    :O Holy Cow 60 Miles !
  • NinStar @ NinStar:
    why people use miles
  • K3Nv2 @ K3Nv2:
    At 60 miles I'd just use instacart
    +1
  • K3Nv2 @ K3Nv2:
    @NinStar, cause 8 miles and runnin
  • RedColoredStars @ RedColoredStars:
    LOL! I'd lmao if they put a gay ride in the little arcade section they have in this walmart. It could be like the horses rides you put quarters in, except it would be like the ambiguously gay duo cartoon & you sit on top of the other guy thats in a "flying" position. LMAO!
    +1
  • K3Nv2 @ K3Nv2:
    I'm pretty sure parents would have an issue with gay rides
    +1
  • RedColoredStars @ RedColoredStars:
    There is zero instacart delivery to here. No door dash. No Uber. Notta. Its a small farming community
    +1
  • Sicklyboy @ Sicklyboy:
    eagerly awaiting 4x 8TB HDDs to get delivered today
  • RedColoredStars @ RedColoredStars:
    So I drive the 30 miles there, spend $100-$150 on groceries, and drive back home. Still saved $$$ after gas over shopping locally.
    +1
  • K3Nv2 @ K3Nv2:
    You'd think you could make deals with local farmers
  • AncientBoi @ AncientBoi:
    :unsure::unsure::unsure: I could make a killing there doing instcart there :D @RedColoredStars
  • RedColoredStars @ RedColoredStars:
    It makes the trip even more worth it if I'm out of my medication and need to stop by the medical dispensary. I try to line the two up to avoid extra trips.
    +1
  • RedColoredStars @ RedColoredStars:
    @AncientBoi, Except the town is pretty MAGA infested. People still flying TRUMP 2016 flags all over. They didnt get the memo the year changed since then. lol.
    +1
  • RedColoredStars @ RedColoredStars:
    They passed a city ordinance last month. No smoking cannabis in public. Not even eating gummies. $300 fine and misdemeanor charge if caught. People can walk down the street smoking cigs and tossing the butts all over, but God forbit someone take a couple puffs of their medication.
    +1
  • RedColoredStars @ RedColoredStars:
    First off, it's recreationally legal here. Secondly, I have a prescription from my doctor and approved by the state. But still a fucking criminal.
    +1
  • RedColoredStars @ RedColoredStars:
    Like at bars. Cant sit outside even in the smoking section and take a few puffs. Yet I have to breath the cig smoke from 20 people chain smoking all night in every direction around me.
  • K3Nv2 @ K3Nv2:
    Honestly I feel like Trump is going to crush Biden just because of the trial
  • RedColoredStars @ RedColoredStars:
    They cite
    public health and safety concerns" LMAO!!! Yet they do nothing about the poison drinking water quality.
  • K3Nv2 @ K3Nv2:
    The look at how they treated me card is powerful within dumb voters
  • RedColoredStars @ RedColoredStars:
    A Trump win is certainly a possibility. If he's reelected, 4 more years then no one has to worry about him being president ever again. I survived last time, I'll survive it if there's a next time. Don't know how anyone could vote for the guy, but I'm also not anyone else but me.
    RedColoredStars @ RedColoredStars: A Trump win is certainly a possibility. If he's reelected, 4 more years then no one has to worry...