mirror of
https://github.com/calebstewart/pwncat.git
synced 2024-11-24 01:25:37 +01:00
Added 'PlatformError' to PrivateKey implant 'trigger' method
This commit is contained in:
parent
5477cfac66
commit
dfb2f28f90
@ -17,6 +17,7 @@ import pwncat
|
||||
from pwncat.db import Fact
|
||||
from pwncat.channel import ChannelError
|
||||
from pwncat.modules import ModuleFailed
|
||||
from pwncat.platform import PlatformError
|
||||
from pwncat.facts.tamper import ( # noqa: F401
|
||||
Tamper,
|
||||
CreatedFile,
|
||||
@ -369,7 +370,7 @@ class PrivateKey(Implant):
|
||||
user=user.name,
|
||||
identity=filp.name,
|
||||
)
|
||||
except ChannelError as exc:
|
||||
except (ChannelError, PlatformError) as exc:
|
||||
manager.log(
|
||||
f"[yellow]warning[/yellow]: {self.source} implant failed; removing implant types."
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user