From 1f6485b6438bad2bd8e32a6ff75e53054e7add40 Mon Sep 17 00:00:00 2001 From: Ben Date: Fri, 28 Jul 2017 00:40:07 +1000 Subject: [PATCH] Make red color if expired --- HTTPy.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/HTTPy.py b/HTTPy.py index 171b82e..a00f001 100755 --- a/HTTPy.py +++ b/HTTPy.py @@ -117,7 +117,10 @@ def parseWhois(whioisInfo): else: print bcolors.RED + str + bcolors.RESET else: - print str + if "Expired" in str or "expired" in str: + print bcolors.RED + str + bcolors.RESET + else: + print str def whois(inDomain): lookup = subprocess.check_output(["whois", inDomain])