Skip to content

Instantly share code, notes, and snippets.

@SafeEval
Created August 24, 2015 07:22
Show Gist options
  • Select an option

  • Save SafeEval/0db795b18318b22a0f00 to your computer and use it in GitHub Desktop.

Select an option

Save SafeEval/0db795b18318b22a0f00 to your computer and use it in GitHub Desktop.
#exit_x86-linux-att.s
.text
.globl _start
_start:
xor %eax,%eax #zero out eax, no null
xor %ebx,%ebx #zero out ebx, no null
mov $42,%bl #return code is 42
mov $1,%al #exit is syscall 1
int $0x80 #syscall interrupt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment