Update autorecon.py

Fixed bug where stdin would get passed to Nmap.
This commit is contained in:
Tib3rius 2021-08-31 11:41:17 -04:00
parent 6ccff4cb39
commit 0b5ef7cf6e
1 changed files with 2 additions and 3 deletions

View File

@ -617,10 +617,9 @@ class AutoRecon(object):
process = await asyncio.create_subprocess_shell(
cmd,
stdin=None,
stdin=open('/dev/null'),
stdout=asyncio.subprocess.PIPE,
stderr=asyncio.subprocess.PIPE,
executable='/bin/bash')
stderr=asyncio.subprocess.PIPE)
cout = CommandStreamReader(process.stdout, target, tag, patterns=combined_patterns, outfile=outfile)
cerr = CommandStreamReader(process.stderr, target, tag, patterns=combined_patterns, outfile=errfile)