Skip to content

Commit adf1385

Browse files
committed
Fix rapid7#7984, Fix NoMethodError `match' for bavision_cameras.rb
Fix rapid7#7984
1 parent 243ec5f commit adf1385

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/metasploit/framework/login_scanner/bavision_cameras.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def check_setup
1919
login_uri = normalize_uri("#{uri}")
2020
res = send_request({'uri'=> login_uri})
2121

22-
if res && res.headers['WWW-Authenticate'].match(/realm="IPCamera Login"/)
22+
if res && res.headers['WWW-Authenticate'] && res.headers['WWW-Authenticate'].match(/realm="IPCamera Login"/)
2323
return true
2424
end
2525

0 commit comments

Comments
 (0)