Skip to content

Instantly share code, notes, and snippets.

@codekittie
Created November 27, 2020 05:41
Show Gist options
  • Save codekittie/ebf599ee1cd23e093f9f18116949589a to your computer and use it in GitHub Desktop.
Save codekittie/ebf599ee1cd23e093f9f18116949589a to your computer and use it in GitHub Desktop.
Reboot machine via syscall
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