Skip to content

Instantly share code, notes, and snippets.

@mame

mame/42.c Secret

Created March 2, 2015 14:28
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 mame/522eea07dd1799445ebb to your computer and use it in GitHub Desktop.
Save mame/522eea07dd1799445ebb to your computer and use it in GitHub Desktop.
char P[999],*p=P;
f(x,y,w){asm("syscall;movl 0(%%rsi),%%eax"::"a"(x),"D"(y),"S"(p),"d"(w));}
_start()
{
f(0,0,998);
for(;f(1,1,1)-171062282;p++);
f(60,0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment