Created
November 27, 2020 05:41
-
-
Save codekittie/ebf599ee1cd23e093f9f18116949589a to your computer and use it in GitHub Desktop.
Reboot machine via syscall
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
section .text | |
global _start | |
_start: | |
; 169 = reboot | |
; Followed by magic numbers (see `man reboot.2`) | |
mov rax, 169 | |
mov rdi, 0fee1deadh | |
mov rsi, 672274793 | |
mov rdx, 001234567h | |
syscall | |
; what's below will never be executed | |
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