Re:The PS5 Has Been Jailbroken
by P5fRxh5kUvp2th on Monday October 03, 2022 @10:06AM
(#33067707)
Well back in my day ... slips in dentures* a gadget was just a generic thing you played around with and did a thing.
Now get the hell off my lawn you whippersnappers, before I throw my teef at you.
> Consequently, modern exploits tend to look like: (1) figure out how memory is laid out, or close enough, (2) calculate where a useful function is, that you can call with arbitrary parameters (aka a gadget), (3) abuse that function to do your bidding by controlling its parameters and the instruction pointer.
This is all correct, but generally a gadget is what a snippet of assembly / machine code that you call to get the CPU into a state to call a function. So its less a function and more a set of instructions (anywhere) that are useful.
So for example, you might have a gadget to set specific registers with values off the stack so you can call malloc with the correct size, etc.