From 25e971262c40e2f32b838fcf7a134811ae9659ee Mon Sep 17 00:00:00 2001 From: AndreaF17 Date: Wed, 6 May 2026 11:20:56 +0200 Subject: [PATCH] Refactor banner string to raw format and improve URL cleaning regex --- ctfr.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ctfr.py b/ctfr.py index 36a2ea1..aa8b513 100644 --- a/ctfr.py +++ b/ctfr.py @@ -24,7 +24,7 @@ def parse_args(): def banner(): global version - b = ''' + b = r''' ____ _____ _____ ____ / ___|_ _| ___| _ \ | | | | | |_ | |_) | @@ -37,7 +37,7 @@ def banner(): print(b) def clear_url(target): - return re.sub('.*www\.','',target,1).split('/')[0].strip() + return re.sub(r'.*www\.', '', target, count=1).split('/')[0].strip() def save_subdomains(subdomain,output_file): with open(output_file,"a") as f: