diff --git a/regexploit/bin/regexploit.py b/regexploit/bin/regexploit.py index 0ad6df7..1749da0 100644 --- a/regexploit/bin/regexploit.py +++ b/regexploit/bin/regexploit.py @@ -29,11 +29,15 @@ def main(): logging.basicConfig(level=logging.DEBUG) sys.argv.remove("-vv") + isatty = sys.stdin.isatty() output = TextOutput() try: for line in fileinput.input(): + found = False for _ in find_redos(line.rstrip("\n"), 0, output): - pass + found = True + if isatty and not found: + print("No REDoS found.") except KeyboardInterrupt: pass