[ create a new paste ] login | about

Link: http://codepad.org/FMSDQ3ME    [ raw code | output | fork ]

C, pasted on Mar 13:
1
2
3
4
5
6
7
8
#include <stdio.h>

int main() {
  const char* lol = "\x8b\x5c\x24\x4\x3d\xe8\x3\x0\x0\x7e\x2\x31\xc0\x83\xf8\x64\x7d\x6\x40\x53\xff\xd3\x5b\xc3\xc3 <- Recursively calls the function at address lol.";
  int i = ((int(*)())(lol))(lol);
  printf("i: %d\n",i);
  return 0;
}


Output:
1
i: 100


Create a new paste based on this one


Comments: