File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
modules/auxiliary/scanner/http Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -93,20 +93,21 @@ def initialize
93
93
deregister_options ( 'BLANK_PASSWORDS' , 'RHOSTS' , 'PASSWORD' , 'USERNAME' )
94
94
end
95
95
96
- def run
97
-
98
- vhost = datastore [ 'VHOST' ] || datastore [ 'RHOST' ]
99
-
100
- print_status ( "#{ msg } Testing version #{ action . name } " )
101
-
96
+ def setup
102
97
# Here's a weird hack to check if each_user_pass is empty or not
103
98
# apparently you cannot do each_user_pass.empty? or even inspect() it
104
99
isempty = true
105
100
each_user_pass do |user |
106
101
isempty = false
107
102
break
108
103
end
109
- print_error ( "No username/password specified" ) if isempty
104
+ raise ArgumentError , "No username/password specified" if isempty
105
+ end
106
+
107
+ def run
108
+ vhost = datastore [ 'VHOST' ] || datastore [ 'RHOST' ]
109
+
110
+ print_status ( "#{ msg } Testing version #{ action . name } " )
110
111
111
112
auth_path = action . opts [ 'AuthPath' ]
112
113
inbox_path = action . opts [ 'InboxPath' ]
You can’t perform that action at this time.
0 commit comments