Skip to content

Instantly share code, notes, and snippets.

@k3170makan
Created October 23, 2018 01:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save k3170makan/c7712b7aa14f1c2e7c0e7ae725f2fac1 to your computer and use it in GitHub Desktop.
Save k3170makan/c7712b7aa14f1c2e7c0e7ae725f2fac1 to your computer and use it in GitHub Desktop.
Target binary for studying the ELF format
#include <stdio.h>
void never_call(void){
printf("[*] success!! call to function never_call!!!\n\n");
}
void foo(void){
printf("[*] call to function foo\n");
return;
}
int main(int argc, char **argv){
printf("[*] call to main function\n");
printf(" ");
printf(" ");
foo();
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment