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
1 changed files with 1 additions and 1 deletions

View File

@ -77,5 +77,5 @@ class Command(CommandDefinition):
f"uploaded [cyan]{human_readable_size(length)}[/cyan] " f"uploaded [cyan]{human_readable_size(length)}[/cyan] "
f"in [green]{human_readable_delta(elapsed)}[/green]" 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)) self.parser.error(str(exc))