Skip to content

Commit

Permalink
fake server: fix screen not initialized, add log terminating statement
Browse files Browse the repository at this point in the history
  • Loading branch information
spameier committed Dec 20, 2022
1 parent f7583f9 commit 5ed64f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyrdp/mitm/FakeServer.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ def set_username(self, username: str):
time.sleep(0.1)
if self.fakeLoginScreen is not None:
self.fakeLoginScreen.set_username(username)
self.check_submit()
self.check_submit()

def set_password(self, password: str):
self.fakeLoginScreen.set_password(password)
Expand All @@ -318,5 +318,6 @@ def terminate(self):
# TODO: the user sees "An internal error has occurred."
for proc in (self.rdp_server_process, self.rdp_client_process):
if not isinstance(proc, subprocess.CompletedProcess):
self.log.info("Killing process %(name)s", {"name": " ".join(proc.args)})
proc.kill()
self.display.stop()

0 comments on commit 5ed64f6

Please sign in to comment.