Skip to content

Commit 874fec4

Browse files
authored
Update zabbix_toggleids_sqli.rb
1 parent d433803 commit 874fec4

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

modules/auxiliary/gather/zabbix_toggleids_sqli.rb

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ def check
6060
end
6161

6262
match = /#{left_marker}(.*)#{right_marker}/.match(res.body)
63-
63+
6464
unless match
6565
fail_with(Failure::Unknown, 'Server did not respond in an expected way')
6666
end
67-
67+
6868
if match[1] == flag
6969
return Msf::Exploit::CheckCode::Vulnerable
7070
end
@@ -94,7 +94,7 @@ def run
9494
unless match
9595
fail_with(Failure::Unknown, 'Server did not respond in an expected way')
9696
end
97-
97+
9898
count = match[1].to_i
9999

100100
dbs = []
@@ -112,11 +112,11 @@ def run
112112
end
113113

114114
match = /#{left_marker}(.*)#{right_marker}/.match(res.body)
115-
115+
116116
unless match
117117
fail_with(Failure::Unknown, 'Server did not respond in an expected way')
118118
end
119-
119+
120120
dbs << match[1]
121121
end
122122

@@ -162,11 +162,11 @@ def run
162162
end
163163

164164
match = /#{left_marker}(.*)#{right_marker}/.match(res.body)
165-
165+
166166
unless match
167167
fail_with(Failure::Unknown, 'Server did not respond in an expected way')
168168
end
169-
169+
170170
user[col] = match[1]
171171
end
172172
users << user
@@ -191,11 +191,11 @@ def authenticate
191191
cookies = res.get_cookies
192192

193193
match = /name="sid" value="(.*?)">/.match(res.body)
194-
194+
195195
unless match
196196
fail_with(Failure::Unknown, 'Server did not respond in an expected way')
197197
end
198-
198+
199199
sid = match[1]
200200

201201
if datastore['REQUIREAUTH']
@@ -235,11 +235,11 @@ def authenticate
235235

236236
cookies = res.get_cookies
237237
match = /name="sid" value="(.*?)">/.match(res.body)
238-
238+
239239
unless match
240240
fail_with(Failure::Unknown, 'Server did not respond in an expected way')
241241
end
242-
242+
243243
sid = match[1]
244244
elsif
245245
fail_with(Failure::Unknown, 'Server did not respond in an expected way')

0 commit comments

Comments
 (0)