@@ -60,11 +60,11 @@ def check
60
60
end
61
61
62
62
match = /#{ left_marker } (.*)#{ right_marker } / . match ( res . body )
63
-
63
+
64
64
unless match
65
65
fail_with ( Failure ::Unknown , 'Server did not respond in an expected way' )
66
66
end
67
-
67
+
68
68
if match [ 1 ] == flag
69
69
return Msf ::Exploit ::CheckCode ::Vulnerable
70
70
end
@@ -94,7 +94,7 @@ def run
94
94
unless match
95
95
fail_with ( Failure ::Unknown , 'Server did not respond in an expected way' )
96
96
end
97
-
97
+
98
98
count = match [ 1 ] . to_i
99
99
100
100
dbs = [ ]
@@ -112,11 +112,11 @@ def run
112
112
end
113
113
114
114
match = /#{ left_marker } (.*)#{ right_marker } / . match ( res . body )
115
-
115
+
116
116
unless match
117
117
fail_with ( Failure ::Unknown , 'Server did not respond in an expected way' )
118
118
end
119
-
119
+
120
120
dbs << match [ 1 ]
121
121
end
122
122
@@ -162,11 +162,11 @@ def run
162
162
end
163
163
164
164
match = /#{ left_marker } (.*)#{ right_marker } / . match ( res . body )
165
-
165
+
166
166
unless match
167
167
fail_with ( Failure ::Unknown , 'Server did not respond in an expected way' )
168
168
end
169
-
169
+
170
170
user [ col ] = match [ 1 ]
171
171
end
172
172
users << user
@@ -191,11 +191,11 @@ def authenticate
191
191
cookies = res . get_cookies
192
192
193
193
match = /name="sid" value="(.*?)">/ . match ( res . body )
194
-
194
+
195
195
unless match
196
196
fail_with ( Failure ::Unknown , 'Server did not respond in an expected way' )
197
197
end
198
-
198
+
199
199
sid = match [ 1 ]
200
200
201
201
if datastore [ 'REQUIREAUTH' ]
@@ -235,11 +235,11 @@ def authenticate
235
235
236
236
cookies = res . get_cookies
237
237
match = /name="sid" value="(.*?)">/ . match ( res . body )
238
-
238
+
239
239
unless match
240
240
fail_with ( Failure ::Unknown , 'Server did not respond in an expected way' )
241
241
end
242
-
242
+
243
243
sid = match [ 1 ]
244
244
elsif
245
245
fail_with ( Failure ::Unknown , 'Server did not respond in an expected way' )
0 commit comments