Skip to content

Commit 947cefe

Browse files
committed
Fixed get_cookies
Fixed get_cookies
1 parent 765e9b9 commit 947cefe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/auxiliary/admin/http/ivanti_vtm_admin.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def run
107107
'data' => form.to_s
108108
}
109109
)
110-
if res && res.code == 302 && res.headers.key?('Set-Cookie') && res.headers['Set-Cookie'].include?('ZeusTMZAUTH_')
110+
if res && res.code == 302 && res.get_cookies.include?('ZeusTMZAUTH_')
111111
store_valid_credential(user: datastore['NEW_USERNAME'], private: datastore['NEW_PASSWORD'], proof: html)
112112
print_good("New admin user was successfully added:\n\t#{datastore['NEW_USERNAME']}:#{datastore['NEW_PASSWORD']}")
113113
print_good("Login at: https://#{datastore['RHOSTS']}:#{datastore['RPORT']}#{datastore['TARGETURI']}apps/zxtm/login.cgi")

0 commit comments

Comments
 (0)