Fix Python syntax warnings and escape sequences
This commit is contained in:
parent
4692fefb4f
commit
16512d32eb
|
@ -102,7 +102,7 @@ def banner():
|
||||||
print("""%s
|
print("""%s
|
||||||
____ _ _ _ _ _____
|
____ _ _ _ _ _____
|
||||||
/ ___| _ _| |__ | (_)___| |_|___ / _ __
|
/ ___| _ _| |__ | (_)___| |_|___ / _ __
|
||||||
\\\___ \\| | | | '_ \\| | / __| __| |_ \\| '__|
|
\\___ \\| | | | '_ \\| | / __| __| |_ \\| '__|
|
||||||
___) | |_| | |_) | | \\__ \\ |_ ___) | |
|
___) | |_| | |_) | | \\__ \\ |_ ___) | |
|
||||||
|____/ \\__,_|_.__/|_|_|___/\\__|____/|_|%s%s
|
|____/ \\__,_|_.__/|_|_|___/\\__|____/|_|%s%s
|
||||||
|
|
||||||
|
@ -1040,7 +1040,7 @@ def main(domain, threads, savefile, ports, silent, verbose, enable_bruteforce, e
|
||||||
enable_bruteforce = True
|
enable_bruteforce = True
|
||||||
|
|
||||||
# Validate domain
|
# Validate domain
|
||||||
domain_check = re.compile("^(http|https)?[a-zA-Z0-9]+([\-\.]{1}[a-zA-Z0-9]+)*\.[a-zA-Z]{2,}$")
|
domain_check = re.compile(r"^(http|https)?[a-zA-Z0-9]+([-.]{1}[a-zA-Z0-9]+)*\.[a-zA-Z]{2,}$")
|
||||||
if not domain_check.match(domain):
|
if not domain_check.match(domain):
|
||||||
if not silent:
|
if not silent:
|
||||||
print(R + "Error: Please enter a valid domain" + W)
|
print(R + "Error: Please enter a valid domain" + W)
|
||||||
|
|
Loading…
Reference in New Issue