Mercurial > repo
changeset 2858:ef59a4fc14b8
<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 %esi;""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:00:38 +0000 |
parents | 07384bffe528 |
children | d46868c954a7 |
files | hi.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/hi.c Sun May 05 16:00:38 2013 +0000 @@ -0,0 +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;");}