-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsuzaku.py
43 lines (35 loc) · 1.86 KB
/
suzaku.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import DDoSGuardCheckerAPI, CloudflareCheckerAPI
import sys, socket
from colorama import Fore, Back, Style
def printout(x):
print(f"[Suzaku] {x}")
def checker(domain):
try:
printout(f"{Fore.GREEN}{Style.BRIGHT}Target Domain:{Fore.RESET} {domain}{Style.RESET_ALL}")
printout(f"{Fore.GREEN}{Style.BRIGHT}Target IP{Fore.RESET}: {socket.gethostbyname(domain)}{Style.RESET_ALL}")
except:
printout(f"{Fore.RED}{Style.BRIGHT}Failed to Host name resolution.{Fore.RESET}")
sys.exit(0)
printout(f"{Fore.CYAN}Checking IP With Cloudflare Networks...{Fore.RESET}")
cloudflare = CloudflareCheckerAPI.check(domain)
if cloudflare:
printout(f"{Fore.GREEN}{domain} was protected by Cloudflare!{Fore.RESET}")
sys.exit(1)
printout(f"{Fore.CYAN}Checking IP With DDoS-Guard Networks...{Fore.RESET}")
ddosguard = DDoSGuardCheckerAPI.check(domain)
if ddosguard:
printout(f"{Fore.GREEN}{domain} was protected by DDos-Guard!{Fore.RESET}")
sys.exit(1)
printout(f"{Fore.LIGHTRED_EX}{domain} is Not Protected!{Fore.RESET}")
logo = """
░░ ░░ ░░░░ ░ ░░ ░░ ░░░░ ░ ░░░░ ░
▒ ▒▒▒▒▒▒▒ ▒▒▒▒ ▒▒▒▒▒▒ ▒▒ ▒▒▒▒ ▒ ▒▒▒ ▒▒ ▒▒▒▒ ▒
▓▓ ▓▓ ▓▓▓▓ ▓▓▓▓ ▓▓▓▓ ▓▓▓▓ ▓ ▓▓▓▓ ▓▓▓▓ ▓
███████ █ ████ ██ ██████ █ ███ ██ ████ █
██ ███ ██ █ ████ █ ████ ██ ██
v1.0 by GNUWood
"""
print(Fore.LIGHTRED_EX + Style.BRIGHT + logo + Style.RESET_ALL + Fore.RESET)
printout("Input target domain of website.")
url = input("[Suzaku] >")
checker(url)