mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-23 01:56:36 +03:00
Fix for an Issue #329
This commit is contained in:
parent
304e52cb4d
commit
cb15fcc8af
|
@ -513,13 +513,10 @@ class Metasploit:
|
||||||
pollProcess(process)
|
pollProcess(process)
|
||||||
payloadStderr = process.communicate()[1]
|
payloadStderr = process.communicate()[1]
|
||||||
|
|
||||||
if Backend.isOs(OS.WINDOWS) or extra == "BufferRegister=EAX":
|
match = re.search("(Total size:|Length:|succeeded with size) ([\d]+)", payloadStderr)
|
||||||
payloadSize = re.search("size ([\d]+)", payloadStderr, re.I)
|
|
||||||
else:
|
|
||||||
payloadSize = re.search("Length\:\s([\d]+)", payloadStderr, re.I)
|
|
||||||
|
|
||||||
if payloadSize:
|
if match:
|
||||||
payloadSize = int(payloadSize.group(1))
|
payloadSize = int(match.group(2))
|
||||||
|
|
||||||
if extra == "BufferRegister=EAX":
|
if extra == "BufferRegister=EAX":
|
||||||
payloadSize = payloadSize / 2
|
payloadSize = payloadSize / 2
|
||||||
|
|
Loading…
Reference in New Issue
Block a user