Merge branch 'dev' of https://github.com/retro-engineer/Empire into retro-engineer-dev
commit
184208c964
|
@ -107,7 +107,7 @@ def wall(host, pw):
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
data = os.read(fd, 1024)
|
data = os.read(fd, 1024)
|
||||||
if data == "Password:":
|
if data[:8] == "Password" and data[-1:] == ":":
|
||||||
os.write(fd, pw + '\\n')
|
os.write(fd, pw + '\\n')
|
||||||
|
|
||||||
except OSError:
|
except OSError:
|
||||||
|
|
|
@ -121,7 +121,7 @@ def wall(host, pw):
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
data = os.read(fd, 1024)
|
data = os.read(fd, 1024)
|
||||||
if data == "Password:":
|
if data[:8] == "Password" and data[-1:] == ":":
|
||||||
os.write(fd, pw + '\\n')
|
os.write(fd, pw + '\\n')
|
||||||
|
|
||||||
except OSError:
|
except OSError:
|
||||||
|
|
Loading…
Reference in New Issue