Update modules/exploits/unix/http/syncovery_linux_rce_2022_36534.rb

Co-authored-by: Christophe De La Fuente <56716719+cdelafuente-r7@users.noreply.github.com>
This commit is contained in:
Jan Rude
2022-12-13 16:05:56 +01:00
committed by GitHub
parent c8e301224b
commit f158cfaadd
@@ -111,10 +111,9 @@ class MetasploitModule < Msf::Exploit::Remote
# After login, the application should give us a new token
# session_token is actually just base64(MM/dd/yyyy HH:mm:ss) at the time of the login
json_res = res.get_json_document
token = json_res['session_token']
if token.present?
@token = json_res['session_token']
if @token.present?
vprint_good("#{peer} - Login successful")
datastore['TOKEN'] = token
else
fail_with(Failure::NoAccess, "#{peer} - Invalid credentials!")
end