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:
parent
3ee1f47471
commit
9ed174f5f0
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user