File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed
modules/auxiliary/scanner/http Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,13 @@ def is_app_carlogavazzi?
69
69
return false
70
70
end
71
71
72
- if ( res && res . code == 200 && ( res . body . include? ( 'Accedi' ) || res . body . include? ( 'Gavazzi' ) || res . body . include? ( 'styleVMUC.css' ) || res . body . include? ( 'VMUC' ) ) )
72
+ good_response = (
73
+ res &&
74
+ res . code == 200 &&
75
+ res . body . include? ( 'Accedi' ) || res . body . include? ( 'Gavazzi' ) || res . body . include? ( 'styleVMUC.css' ) || res . body . include? ( 'VMUC' )
76
+ )
77
+
78
+ if good_response
73
79
vprint_good ( "#{ rhost } :#{ rport } - Running Carlo Gavazzi VMU-C Web Management portal..." )
74
80
return true
75
81
else
@@ -138,7 +144,14 @@ def do_login(user, pass)
138
144
return :abort
139
145
end
140
146
141
- if ( res && ( ( res . code == 200 && ( res . body . include? ( 'Login in progress' ) || res . body . include? ( 'Login in corso' ) ) && res . body . match ( /id="error" value="2"/ ) ) || ( res . code == 302 && res . headers [ 'Location' ] == 'disclaimer.php' ) ) )
147
+ good_response = (
148
+ res &&
149
+ res . code == 200 &&
150
+ res . body . include? ( 'Login in progress' ) || res . body . include? ( 'Login in corso' ) &&
151
+ res . body . match ( /id="error" value="2"/ ) || ( res . code == 302 && res . headers [ 'Location' ] == 'disclaimer.php' )
152
+ )
153
+
154
+ if good_response
142
155
print_good ( "SUCCESSFUL LOGIN - #{ rhost } :#{ rport } - #{ user . inspect } :#{ pass . inspect } " )
143
156
144
157
# Extract firmware version
You can’t perform that action at this time.
0 commit comments