Permalink
Browse files

Have the remove passwords code ignore blank lines

  • Loading branch information...
1 parent e435504 commit e58a1d70e01318ec0e7756ca5d5037cb2db04379 dhubbard committed Jul 24, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 sshmap/sshmap.py
View
@@ -391,7 +391,7 @@ def run_command(host, command="uname -a", username=None, password=None,
for el in result.err:
if check_prompt:
if password in el or 'assword:' in el or \
- '[sudo] password' in el:
+ '[sudo] password' in el or el.strip() == '':
skip = True
else:
check_prompt = False

0 comments on commit e58a1d7

Please sign in to comment.