Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
ostrichgolf committed Oct 7, 2024
1 parent 6fcd424 commit ae3d2b9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions modules/exploits/linux/http/projectsend_unauth_rce.rb
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def login(username, password)
'keep_cookies' => true
})

if res&.headers['Set-Cookie']
if res&.headers&.[]('Set-Cookie')
print_good("Logged in as #{username}")
return csrf_token
else
Expand Down Expand Up @@ -339,8 +339,6 @@ def cleanup
'uri' => normalize_uri(datastore['TARGETURI'], 'index.php')
})

register_regex = /(.*?)Register as a new client./

if res.body.include?('Register as a new client.')
fail_with(Failure::Unknown, 'Could not disable client registration')
end
Expand Down

0 comments on commit ae3d2b9

Please sign in to comment.