[ create a new paste ] login | about

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

C, pasted on Jan 20:
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <stdio.h>
void(*swap)() = (void(*)()) "\x8b\x44\x24\x04\x8b\x5c\x24\x08\x8b\x00\x8b\x1b\x31\xc3\x31\xd8\x31\xc3\x8b\x4c\x24\x04\x89\x01\x8b\x4c\x24\x08\x89\x19\xc3" 
"Oh, there you are Mr. Insanity...";

int main(){ // works on GCC 3+4
	int a = 37, b = 13;
	swap(&a, &b);

	printf("%d%d",a,b);
return 0;
}

// TIL: If you do this at work, you'll probably be fired


Output:
1
1337


Create a new paste based on this one


Comments: