diff --git a/modules/exploits/multi/http/phpldapadmin_query_engine.rb b/modules/exploits/multi/http/phpldapadmin_query_engine.rb index 76504228a3..84aee59d24 100644 --- a/modules/exploits/multi/http/phpldapadmin_query_engine.rb +++ b/modules/exploits/multi/http/phpldapadmin_query_engine.rb @@ -89,7 +89,7 @@ class Metasploit3 < Msf::Exploit::Remote 'uri' => uri, }, 3) - if (not res.headers['Set-Cookie']) + if (res.nil? or not res.headers['Set-Cookie']) print_error("Could not generate a valid session") return end