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,303
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
  • K3Nv2 @ K3Nv2:
    Insurance is a thing adults have to blow off
  • BigOnYa @ BigOnYa:
    Insurance is one those things you pay all your life for, no questions asked, all is fine, they take your money. And as soon as you make a claim or something happens, they never want to payout or help, just fight you on everything if it cost them any of your money.
  • BigOnYa @ BigOnYa:
    I've never had a car accident, but I bet I've paid thousands/ million into car insurance that ill never see a dime of prob. Is crazy, but its the law.
  • K3Nv2 @ K3Nv2:
    Liability, drive a old car fuck all that over priced fancy crap
  • BigOnYa @ BigOnYa:
    When you buy a new car, or have a bank loan on it, you have to have full coverage, but yea its a racket
  • realtimesave @ realtimesave:
    u guys on crack? I got in auto accident and insurance paid $6500 to fix my car. they don't pay? whatever.
  • BigOnYa @ BigOnYa:
    But think about how much you have paid them over the years, prob way more than 6500, but that's life, not like we have a choice. Gotta have to cover your ass.
  • K3Nv2 @ K3Nv2:
    You probably drive some fancy dandy electric car that the salesman told you would get you bitches
  • BigOnYa @ BigOnYa:
    He drives a BMW or Benz I think I remember him talking about a $500 oil change
  • Psionic Roshambo @ Psionic Roshambo:
    The secret sauce is, they raise your rates after an accident. You get to pay them back lol
    +1
  • realtimesave @ realtimesave:
    volkswagen beetle
  • SylverReZ @ SylverReZ:
    Psi couldn't pay hospital bills lol.
  • Psionic Roshambo @ Psionic Roshambo:
    He found out how much the ambulance ride was going to cost lol
    +2
  • K3Nv2 @ K3Nv2:
    @BigOnYa, so one the salesman told him would get him bitches
    +2
  • Psionic Roshambo @ Psionic Roshambo:
    In my experience women like a big shift stick with lots of power.
  • Psionic Roshambo @ Psionic Roshambo:
    Something that really burns rubbers
  • BigOnYa @ BigOnYa:
    Only thing a nice car will get you is a gold digger. What happened to falling in love, no matter if I'm on a bus, or driving a nice car. No offense tho, I do like nice cars.
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Nothing like tearing ass up on a back road
  • Psionic Roshambo @ Psionic Roshambo:
    BigOnYa I think narcissism has all but killed love
    +2
  • SylverReZ @ SylverReZ:
    @Psionic Roshambo, I think I can agree on that.
    +1
  • K3Nv2 @ K3Nv2:
    People tend to think look at everything I have gains attention but ends up making them look worse for what it is
    +1
  • BigOnYa @ BigOnYa:
    It would be funny to pick up a girl in a real expensive car, then next date show up in a piece o shit car just to see her reaction.
  • Psionic Roshambo @ Psionic Roshambo:
    Everyone is disposable and replaceable, lies and deception are the coin of the realm. I have never felt so alone and so at odds with the world.
    Psionic Roshambo @ Psionic Roshambo: Everyone is disposable and replaceable, lies and deception are the coin of the realm. I have...