Skip to content

Commit 2233067

Browse files
authored
Update check_http.py
1 parent ff144d2 commit 2233067

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

check_http.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
import requests
22
import sys
3+
import warnings
34
from colorama import init, Fore, Style
45

6+
# Suppress InsecureRequestWarning
7+
warnings.filterwarnings("ignore", message="Unverified HTTPS request")
8+
59
# Initialize colorama
610
init(autoreset=True)
711

@@ -25,7 +29,7 @@ def check_subdomains(subdomain_file):
2529
else:
2630
print(Fore.WHITE + f"[{response.status_code}] - {subdomain}")
2731
except requests.exceptions.Timeout:
28-
print(Fore.WHITE + "[TIMEOUT] - " + subdomain)
32+
print(Fore.BLUE + "[TIMEOUT] - " + subdomain)
2933
except requests.exceptions.ConnectionError:
3034
print(Fore.WHITE + "[CONNECTION ERROR] - " + subdomain)
3135
except Exception as e:

0 commit comments

Comments
 (0)