Skip to content

Commit 9db951c

Browse files
committed
Add sane defaults for HTTP method and path.
1 parent ed1ed5d commit 9db951c

File tree

1 file changed

+2
-0
lines changed
  • lib/metasploit/framework/login_scanner

1 file changed

+2
-0
lines changed

lib/metasploit/framework/login_scanner/http.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ def set_sane_defaults
9696
self.connection_timeout ||= 20
9797
self.max_send_size = 0 if self.max_send_size.nil?
9898
self.send_delay = 0 if self.send_delay.nil?
99+
self.uri = '/' if self.uri.blank?
100+
self.method = 'GET' if self.method.blank?
99101

100102
# Note that this doesn't cover the case where ssl is unset and
101103
# port is something other than a default. In that situtation,

0 commit comments

Comments
 (0)