Merge branch 'dev' of https://github.com/retro-engineer/Empire into retro-engineer-dev

php_fix
xorrior 2018-01-27 18:38:51 -05:00
commit 184208c964
2 changed files with 2 additions and 2 deletions

View File

@ -107,7 +107,7 @@ def wall(host, pw):
while True:
try:
data = os.read(fd, 1024)
if data == "Password:":
if data[:8] == "Password" and data[-1:] == ":":
os.write(fd, pw + '\\n')
except OSError:

View File

@ -121,7 +121,7 @@ def wall(host, pw):
while True:
try:
data = os.read(fd, 1024)
if data == "Password:":
if data[:8] == "Password" and data[-1:] == ":":
os.write(fd, pw + '\\n')
except OSError: