1
0
mirror of https://github.com/calebstewart/pwncat.git synced 2024-11-24 01:25:37 +01:00

Passwords used for ssh connections are now stored in the database

This commit is contained in:
Caleb Stewart 2020-11-06 00:42:03 -05:00
parent 3ee1f47471
commit 9ed174f5f0

View File

@ -340,5 +340,12 @@ class Command(CommandDefinition):
# Initialize the session!
pwncat.victim.connect(chan)
if user in pwncat.victim.users and password is not None:
console.log(f"storing user password")
pwncat.victim.users[user].password = password
else:
console.log("user not found in database; not storing password")
else:
console.log(f"[red]error[/red]: {args.action}: invalid action")