changeset 2861:a723dd94cd8f

<Jafet> echo \'int main(void) {asm("xor %eax, %eax;""mov %eax, %edx;""inc %eax;""mov %eax, %edi;""call x;"".ascii \\"Hello, world!\\\\n\\";""x: pop %rsi;""mov $14, %dl;""syscall;""mov $60, %al;""xor %edi, %edi;""syscall;");}\' >hi.c && gcc hi.c -o hi && ./hi
author HackBot
date Sun, 05 May 2013 16:02:17 +0000
parents 732dad497525
children 812b352bcd61
files hi.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hi.c	Sun May 05 16:02:03 2013 +0000
+++ b/hi.c	Sun May 05 16:02:17 2013 +0000
@@ -1,1 +1,1 @@
-int main(void) {asm("xor %eax, %eax;""mov %eax, %edx;""inc %eax;""mov %eax, %edi;""call x;"".ascii \"Hello, world!\\n\";""x: pop %esi;""mov $14, %dl;""syscall;""mov $60, %al;""xor %edi, %edi;""syscall;");}
+int main(void) {asm("xor %eax, %eax;""mov %eax, %edx;""inc %eax;""mov %eax, %edi;""call x;"".ascii \"Hello, world!\\n\";""x: pop %rsi;""mov $14, %dl;""syscall;""mov $60, %al;""xor %edi, %edi;""syscall;");}