diff --git a/kube-hunter.py b/kube-hunter.py index a1f55f3..bb12489 100755 --- a/kube-hunter.py +++ b/kube-hunter.py @@ -102,6 +102,9 @@ def main(): handler.join() except KeyboardInterrupt: logging.debug("Kube-Hunter stopped by user") + # happens when running a container without interactive option + except EOFError: + logging.error("\033[0;31mPlease run again with -it\033[0m") finally: if hunt_started: handler.publish_event(HuntFinished()) @@ -113,4 +116,4 @@ def main(): while True: time.sleep(5) if __name__ == '__main__': - main() \ No newline at end of file + main()