Skip to content

Instantly share code, notes, and snippets.

@orleika
Last active November 9, 2018 01:55
Show Gist options
  • Save orleika/7e89ebbce3281db30d5e219feb0832a8 to your computer and use it in GitHub Desktop.
Save orleika/7e89ebbce3281db30d5e219feb0832a8 to your computer and use it in GitHub Desktop.
x86-64 Quine
mov $m, %rsi
mov $280, %rdx
mov $1, %rdi
mov $1, %rax
syscall
push $34
mov %rsp, %rsi
mov $1, %rdx
mov $1, %rax
syscall
mov $m, %rsi
mov $280, %rdx
mov $1, %rax
syscall
push $0x00000a22
mov %rsp, %rsi
mov $2, %rdx
mov $1, %rax
syscall
xor %rdi, %rdi
mov $60, %rax
syscall
m:.ascii"mov $m, %rsi
mov $280, %rdx
mov $1, %rdi
mov $1, %rax
syscall
push $34
mov %rsp, %rsi
mov $1, %rdx
mov $1, %rax
syscall
mov $m, %rsi
mov $280, %rdx
mov $1, %rax
syscall
push $0x00000a22
mov %rsp, %rsi
mov $2, %rdx
mov $1, %rax
syscall
xor %rdi, %rdi
mov $60, %rax
syscall
m:.ascii"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment