From b8d7876a9779c2c7796a9a29110d3f1cda721dff Mon Sep 17 00:00:00 2001 From: Caleb Stewart Date: Sun, 28 Nov 2021 21:19:03 -0500 Subject: [PATCH] Fix `--version` output As noted by @DanaEpp in #217, `--version` is outputting the wrong version number. This is due to it passing the old package name to ``importlib.metadata.version()``. This actually causes an unhandled exception if you don't also have the `pwncat` package installed. --- pwncat/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pwncat/__main__.py b/pwncat/__main__.py index 6c8b5a7..6d34813 100644 --- a/pwncat/__main__.py +++ b/pwncat/__main__.py @@ -101,7 +101,7 @@ def main(): # Print the version number and exit. if args.version: - print(importlib.metadata.version("pwncat")) + print(importlib.metadata.version("pwncat-cs")) return # Create the session manager