From 44069b34efb830c15c7c93f6d0305651a58a5e0d Mon Sep 17 00:00:00 2001 From: Caleb Stewart Date: Sun, 4 Oct 2020 17:48:37 -0400 Subject: [PATCH] Ensured help was printed with no arguments --- pwncat/commands/connect.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pwncat/commands/connect.py b/pwncat/commands/connect.py index 1a3daa5..64bc8d7 100644 --- a/pwncat/commands/connect.py +++ b/pwncat/commands/connect.py @@ -180,6 +180,9 @@ class Command(CommandDefinition): try_reconnect = True elif host == "" or host == "0.0.0.0": protocol = "bind://" + elif args.connection_string is None: + self.parser.print_help() + return else: protocol = "connect://" try_reconnect = True