Skip to content

Instantly share code, notes, and snippets.

@codekittie
Created November 23, 2020 05:26
Show Gist options
  • Save codekittie/0ad7111b489e19050df2fee1e2ef029a to your computer and use it in GitHub Desktop.
Save codekittie/0ad7111b489e19050df2fee1e2ef029a to your computer and use it in GitHub Desktop.
Use syscalls(!) to create a file and then exit
global _start
section .data
File_Name: db 'WTH just happened',0
File_Mode: dq 063q
section .text
_start:
mov rax, 85
mov rdi, File_Name
mov rsi, File_Mode
syscall
mov rax, 60
mov rdi, 0
syscall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment