Update autorecon.py
Fixed bug where stdin would get passed to Nmap.
This commit is contained in:
parent
6ccff4cb39
commit
0b5ef7cf6e
|
@ -617,10 +617,9 @@ class AutoRecon(object):
|
||||||
|
|
||||||
process = await asyncio.create_subprocess_shell(
|
process = await asyncio.create_subprocess_shell(
|
||||||
cmd,
|
cmd,
|
||||||
stdin=None,
|
stdin=open('/dev/null'),
|
||||||
stdout=asyncio.subprocess.PIPE,
|
stdout=asyncio.subprocess.PIPE,
|
||||||
stderr=asyncio.subprocess.PIPE,
|
stderr=asyncio.subprocess.PIPE)
|
||||||
executable='/bin/bash')
|
|
||||||
|
|
||||||
cout = CommandStreamReader(process.stdout, target, tag, patterns=combined_patterns, outfile=outfile)
|
cout = CommandStreamReader(process.stdout, target, tag, patterns=combined_patterns, outfile=outfile)
|
||||||
cerr = CommandStreamReader(process.stderr, target, tag, patterns=combined_patterns, outfile=errfile)
|
cerr = CommandStreamReader(process.stderr, target, tag, patterns=combined_patterns, outfile=errfile)
|
||||||
|
|
Loading…
Reference in New Issue