Skip to content

Instantly share code, notes, and snippets.

@ahh
Created February 24, 2017 03:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahh/d766f9ab30e2739fbedeaf002d681d2f to your computer and use it in GitHub Desktop.
Save ahh/d766f9ab30e2739fbedeaf002d681d2f to your computer and use it in GitHub Desktop.
stack alignment detector
.globl _start
.section .text
_start:
movq $0x3c, %rax
movq %rsp, %rdi
andq $63, %rdi
syscall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment