File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
modules/exploits/multi/http Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -117,12 +117,11 @@ def check
117
117
# It allows the user to specify a URL via the FORM_PAGE option (e.g., spip.php?article1).
118
118
# We need to check multiple pages because the configuration of SPIP can vary.
119
119
def get_form_data
120
- pages = [ ]
120
+ pages = %w[ login spip_pass contact ]
121
121
122
- form_page = datastore [ 'FORM_PAGE' ]
123
- pages << form_page if form_page &.downcase != 'auto'
124
-
125
- pages . concat ( %w[ login spip_pass contact ] ) if pages . empty?
122
+ if datastore [ 'FORM_PAGE' ] &.downcase != 'auto'
123
+ pages = [ datastore [ 'FORM_PAGE' ] ]
124
+ end
126
125
127
126
pages . each do |page |
128
127
url = normalize_uri ( target_uri . path , page . start_with? ( '/' ) ? page : "spip.php?page=#{ page } " )
You can’t perform that action at this time.
0 commit comments