1
0
mirror of https://github.com/calebstewart/pwncat.git synced 2024-11-27 10:54:14 +01:00

fix: Catch PlatformError for none gtfobins writers

See ./pwncat/platform/linux.py:[1307,1336], raise PlatformError("no available gtfobins writers")
This commit is contained in:
Mitul16 2022-02-16 16:05:31 +05:30
parent 0e79b87f56
commit 1f6c82026e
No known key found for this signature in database
GPG Key ID: 5C5BBBE501A9BA25

View File

@ -77,5 +77,5 @@ class Command(CommandDefinition):
f"uploaded [cyan]{human_readable_size(length)}[/cyan] "
f"in [green]{human_readable_delta(elapsed)}[/green]"
)
except (FileNotFoundError, PermissionError, IsADirectoryError) as exc:
except (FileNotFoundError, PermissionError, IsADirectoryError, PlatformError) as exc:
self.parser.error(str(exc))