fixed bug: empty remote option

This commit is contained in:
daniel_sagi
2018-06-10 20:10:26 +03:00
parent a2e37927bd
commit 70ea40367b

View File

@@ -7,7 +7,7 @@ import time
parser = argparse.ArgumentParser(description='Kube-Hunter, Hunter for weak Kubernetes cluster')
parser.add_argument('--pod', action="store_true", help="set hunter as an insider pod")
parser.add_argument('--remote', nargs='+', metavar="HOST", help="one or more remote ip/dns to hunt")
parser.add_argument('--remote', nargs='+', metavar="HOST", default=list(), help="one or more remote ip/dns to hunt")
parser.add_argument('--active', action="store_true", help="enables active hunting")
parser.add_argument('--log', type=str, metavar="LOGLEVEL", default='INFO', help="set log level, options are:\nDEBUG INFO WARNING")
args = parser.parse_args()