Skip to content

Instantly share code, notes, and snippets.

@b1tninja
Created November 5, 2020 17:46
Show Gist options
  • Save b1tninja/ba058530a32c2c8014be309bcadf6b3f to your computer and use it in GitHub Desktop.
Save b1tninja/ba058530a32c2c8014be309bcadf6b3f to your computer and use it in GitHub Desktop.
peek last ret
int private(void) {
return 42;
}
void public(void) {
volatile int sec_ret;
sec_ret = private();
// Do not return sec_ret!!1one.
}
int main(void) {
// peek last ret
return ((int (*)(void))public)();
}
@b1tninja
Copy link
Author

b1tninja commented Nov 6, 2020

Someone said voids don't have a return value, bs!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment