mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-26 03:23:48 +03:00
minor fix to distinguish stdout from stderr
This commit is contained in:
parent
ef40779ad3
commit
ccc3c3d1a3
|
@ -178,9 +178,10 @@ def recv_some(p, t=.1, e=1, tr=5, stderr=0):
|
||||||
x = time.time()+t
|
x = time.time()+t
|
||||||
y = []
|
y = []
|
||||||
r = ''
|
r = ''
|
||||||
pr = p.recv
|
|
||||||
if stderr:
|
if stderr:
|
||||||
pr = p.recv_err
|
pr = p.recv_err
|
||||||
|
else:
|
||||||
|
pr = p.recv
|
||||||
while time.time() < x or r:
|
while time.time() < x or r:
|
||||||
r = pr()
|
r = pr()
|
||||||
if r is None:
|
if r is None:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user