You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
print_error("Couldn't find token and can't continue without it. Is URI set correctly?")
159
-
returnExploit::CheckCode::Safe
155
+
returnExploit::CheckCode::Safe("Couldn't find token and can't continue without it. Is URI set correctly?")
160
156
elsif(response.body =~ /Cannot load or save configuration/)
161
-
print_error("'config' folder permissions may not be setup correctly (writable!)")
162
-
returnExploit::CheckCode::Safe
157
+
returnExploit::CheckCode::Detected("'config' folder permissions may not be setup correctly (not writable!)")
163
158
elsif(response.body =~ /Please create web server writable folder/)# Full message: Please create web server writable folder config in phpMyAdmin top level directory as described in documentation. Otherwise you will be only able to download or display it.
164
-
print_error("'config' folder permissions may not be setup correctly (writable! - Error: 2)")
165
-
returnExploit::CheckCode::Safe
159
+
returnExploit::CheckCode::Detected("'config' folder permissions may not be setup correctly (not writable! - Error: 2)")
print_good("Target version is in range! (#{version})")
175
-
returnExploit::CheckCode::Appears
168
+
returnExploit::CheckCode::Appears("Target version is in range! (#{version})")
176
169
else
177
-
print_status("Target version is not in range (#{version})")
170
+
print_status"Target version is not in range (#{version})"
178
171
end
179
172
else
180
-
print_error('Could not determine version')
173
+
print_error'Could not determine version'
181
174
end
182
175
183
176
returnExploit::CheckCode::Safe
@@ -215,14 +208,14 @@ def exploit
215
208
uri=response.request[/^GET\s+(\S+)/,1]
216
209
217
210
# Find the CSRF token and session cookie
218
-
fail_with(Failure::NotFound,"Couldn't find token and can't continue without it. Is URI set correctly?")if(response.body !~ /"token"\s*value="([^"]*)"/)
211
+
fail_with(Failure::NotFound,"Couldn't find token and can't continue without it. Is URI set correctly?")if(response.body !~ /"token"\s*value="([^"]+)"/)
0 commit comments