From afd3563fc42dde007e373255bf2f2561c15fc26b Mon Sep 17 00:00:00 2001 From: Liz Rice Date: Tue, 21 Aug 2018 09:57:09 +0100 Subject: [PATCH] =?UTF-8?q?Shouldn=E2=80=99t=20rely=20on=20the=20order=20o?= =?UTF-8?q?f=20a=20dictionary?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kube-hunter.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/kube-hunter.py b/kube-hunter.py index 1c2ce4a..592f231 100755 --- a/kube-hunter.py +++ b/kube-hunter.py @@ -48,14 +48,12 @@ import src def interactive_set_config(): """Sets config manually, returns True for success""" - options = { - "Remote scanning": "scans one or more specific IPs or DNS names", - "Subnet scanning": "scans subnets on all local network interfaces", - "IP range scanning": "scans a given IP range" - } # maps between option and its explanation + options = [("Remote scanning", "scans one or more specific IPs or DNS names"), + ("Subnet scanning","scans subnets on all local network interfaces"), + ("IP range scanning","scans a given IP range")] print("Choose one of the options below:") - for i, (option, explanation) in enumerate(options.items()): + for i, (option, explanation) in enumerate(options): print("{}. {} ({})".format(i+1, option.ljust(20), explanation)) choice = raw_input("Your choice: ") if choice == '1':