Skip to content

Commit 3ff11e9

Browse files
jvazquez-r7swtornio
authored andcommitted
Fix indentation
1 parent 14b94b0 commit 3ff11e9

File tree

1 file changed

+14
-15
lines changed

1 file changed

+14
-15
lines changed

modules/auxiliary/scanner/http/infovista_enum.rb

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -56,21 +56,20 @@ def run_host(ip)
5656
# What's the point of running this module if the app actually isn't InfoVista?
5757
#
5858
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
7473
end
7574

7675
#

0 commit comments

Comments
 (0)