File tree Expand file tree Collapse file tree 1 file changed +14
-15
lines changed
modules/auxiliary/scanner/http Expand file tree Collapse file tree 1 file changed +14
-15
lines changed Original file line number Diff line number Diff line change @@ -56,21 +56,20 @@ def run_host(ip)
56
56
# What's the point of running this module if the app actually isn't InfoVista?
57
57
#
58
58
def is_app_infovista?
59
-
60
- res = send_request_cgi (
61
- {
62
- 'uri' => '/VPortal/' ,
63
- 'method' => 'GET'
64
- } )
65
-
66
- if ( res and res . code == 200 and res . body =~ /InfoVista.*VistaPortal/ )
67
- version_key = /PORTAL_VERSION = (.+)./
68
- version = res . body . scan ( version_key ) . flatten [ 0 ] . gsub ( '"' , '' )
69
- print_good ( "#{ rhost } :#{ rport } - Application version is #{ version } " )
70
- return true
71
- else
72
- return false
73
- end
59
+ res = send_request_cgi (
60
+ {
61
+ 'uri' => '/VPortal/' ,
62
+ 'method' => 'GET'
63
+ } )
64
+
65
+ if ( res and res . code == 200 and res . body =~ /InfoVista.*VistaPortal/ )
66
+ version_key = /PORTAL_VERSION = (.+)./
67
+ version = res . body . scan ( version_key ) . flatten [ 0 ] . gsub ( '"' , '' )
68
+ print_good ( "#{ rhost } :#{ rport } - Application version is #{ version } " )
69
+ return true
70
+ else
71
+ return false
72
+ end
74
73
end
75
74
76
75
#
You can’t perform that action at this time.
0 commit comments