Created
November 23, 2020 05:26
-
-
Save codekittie/0ad7111b489e19050df2fee1e2ef029a to your computer and use it in GitHub Desktop.
Use syscalls(!) to create a file and then exit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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