From 0b5ef7cf6e370e1c55a1cead956df8e20117f63a Mon Sep 17 00:00:00 2001 From: Tib3rius <48113936+Tib3rius@users.noreply.github.com> Date: Tue, 31 Aug 2021 11:41:17 -0400 Subject: [PATCH] Update autorecon.py Fixed bug where stdin would get passed to Nmap. --- autorecon.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/autorecon.py b/autorecon.py index 4a7d5e8..8d17069 100644 --- a/autorecon.py +++ b/autorecon.py @@ -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)