Created
May 15, 2021 11:18
-
-
Save kohnakagawa/0a93869538b8bf832dd5a21ca946767c to your computer and use it in GitHub Desktop.
M1 Mac execve.s
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 _main | |
.p2align 4 | |
_main: | |
adr x0, shell | |
mov x1, 0 | |
mov x2, 0 | |
mov x16,#0x3b | |
svc #0x80 | |
ret | |
shell: | |
.asciz "/bin/sh" |
Author
kohnakagawa
commented
May 15, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment