From ddc6fee31c5501c9078949677114af7c90af7222 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mehmet=20Ali=20KER=C4=B0MO=C4=9ELU?= <42123683+CYB3RMX@users.noreply.github.com> Date: Tue, 16 Nov 2021 10:15:57 +0000 Subject: [PATCH] Syntax warnings are fixed. --- cloudfail.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cloudfail.py b/cloudfail.py index ba0edde..eecc704 100644 --- a/cloudfail.py +++ b/cloudfail.py @@ -177,9 +177,9 @@ def check_for_wildcard(target): answer = resolver.query('*.' + target) #If found, ask user if continue as long until valid answer choice = '' - while choice is not 'y' and choice is not 'n': + while choice != 'y' and choice != 'n': choice = input("A wildcard DNS entry was found. This will result in all subdomains returning an IP. Do you want to scan subdomains anyway? (y/n): ") - if choice is 'y': + if choice == 'y': return False else: return True