Skip to content

Commit

Permalink
Fix required USERNAME and PASSWORD
Browse files Browse the repository at this point in the history
Somehow I forgot to commit this? Strange.
  • Loading branch information
wvu committed Mar 6, 2019
1 parent 4e76eec commit 4e31f53
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/exploits/linux/http/imperva_securesphere_exec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ def initialize(info = {})
register_options(
[
Opt::RPORT(443),
OptString.new('USERNAME', [true, 'Agent registration username', 'imperva']),
OptString.new('PASSWORD', [true, 'Agent registration password', '']),
OptString.new('USERNAME', [false, 'Agent registration username', 'imperva']),
OptString.new('PASSWORD', [false, 'Agent registration password', '']),
OptString.new('TARGETURI', [false, 'The URI path to impcli', '/pws/impcli']),
OptInt.new('TIMEOUT', [false, 'HTTP connection timeout', 15])
])
Expand Down Expand Up @@ -119,7 +119,7 @@ def send_request(data)
'data' => data.to_json
}

if datastore['USERNAME'] && datastore['PASSWORD']
if !datastore['USERNAME'].blank? && !datastore['PASSWORD'].blank?
unless @cookie
res = send_request_cgi({
'method' => 'GET',
Expand Down

0 comments on commit 4e31f53

Please sign in to comment.