mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-03-14 15:14:31 +03:00
Update for an Issue #287 regarding read_output returning values
This commit is contained in:
parent
76eb894bc7
commit
b78b56d782
|
@ -54,14 +54,13 @@ class XMLRPCServer:
|
|||
return kb.get("busyFlag")
|
||||
|
||||
def read_output(self):
|
||||
retval = []
|
||||
for _ in ("stdout", "stderr"):
|
||||
stream = getattr(sys, _)
|
||||
stream.seek(0)
|
||||
retval.append(stream.read())
|
||||
stream.truncate(0)
|
||||
if not filter(None, retval) and not self.is_busy():
|
||||
sys.stdout.seek(0)
|
||||
retval = sys.stdout.read()
|
||||
sys.stdout.truncate(0)
|
||||
|
||||
if not retval and not self.is_busy():
|
||||
retval = None
|
||||
|
||||
return retval
|
||||
|
||||
def run(self):
|
||||
|
|
Loading…
Reference in New Issue
Block a user