| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Original HTTPS Page] |
Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.
You must be logged in to block users.
Contact GitHub support about this user’s behavior. Learn more about reporting abuse.
Report abuse## Ret2libc
An alternative to using a shellcode is to find the adress of the `system()` function in memory and to complement it with a memory location that contains a shell path string.
This method has the advantage of also working when the NX bit is set (not the case here), NX being a technology that marks certain areas of memory as non-executable, supposedly foiling buffer overflow attacks.
#### The exploit
// Logic
type FizzBuzzOutput = (x: number) => string
const Fizz : FizzBuzzOutput = x => (x % 3 === 0) ? "Fizz" : ""
const Buzz : FizzBuzzOutput = x => (x % 5 === 0) ? "Buzz" : ""
const FizzBuzzPrint : FizzBuzzOutput = x => Fizz(x) + Buzz(x)
| Back | FazBrowse Home | New Git URL |