File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
lib/metasploit/framework/login_scanner Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -14,13 +14,13 @@ class BavisionCameras < HTTP
14
14
15
15
# Checks if the target is BAVision Camera's web server. The login module should call this.
16
16
#
17
- # @return [Boolean] TrueClass if target is SWG , otherwise FalseClass
17
+ # @return [String] Error message if target is not a BAVision camera , otherwise FalseClass
18
18
def check_setup
19
19
login_uri = normalize_uri ( "#{ uri } " )
20
20
res = send_request ( { 'uri' => login_uri } )
21
21
22
- if res && res . headers [ 'WWW-Authenticate' ] . match ( /realm="IPCamera Login"/ )
23
- return true
22
+ unless res && res . headers [ 'WWW-Authenticate' ] && res . headers [ 'WWW-Authenticate' ] . match ( /realm="IPCamera Login"/ )
23
+ return "Unable to locate \" realm=IPCamera Login \" in headers. (Is this really a BAVision camera?)"
24
24
end
25
25
26
26
false
You can’t perform that action at this time.
0 commit comments