Skip to content

Commit

Permalink
fix enumeration handling
Browse files Browse the repository at this point in the history
  • Loading branch information
busterb committed Dec 26, 2019
1 parent 8576a78 commit 3dac95e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions modules/auxiliary/dos/http/metasploit_httphandler_dos.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def initialize(info = {})

register_options(
[
OptString.new('DOSTYPE', [true, 'GENTLE|SOFT|HARD', 'HARD'])
OptEnum.new('DOSTYPE', [true, 'Type of DoS to trigger', 'HARD', %w[GENTLE SOFT HARD]])
])
end

Expand Down Expand Up @@ -126,7 +126,7 @@ def dos
end

else
bla = ""
fail_with Failure::BadConfig, 'Invalid DOSTYPE selected'
end

print_status("DOS request sent")
Expand All @@ -146,7 +146,6 @@ def is_alive?
def run
print_status("#{rhost}:#{rport} - Sending DoS packet...")
dos

end

end

0 comments on commit 3dac95e

Please sign in to comment.