-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbanner.py
More file actions
51 lines (40 loc) · 2.42 KB
/
banner.py
File metadata and controls
51 lines (40 loc) · 2.42 KB
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
44
45
46
47
48
49
50
51
#!/usr/bin/env python3
# banner.py - ASCII art banner module for InsPect
ascii_banner = r"""
░ ░░ ░░░ ░░░ ░░░ ░░░ ░░░ ░░░ ░
▒▒▒▒ ▒▒▒▒▒ ▒▒ ▒▒ ▒▒▒▒▒▒▒▒ ▒▒▒▒ ▒▒ ▒▒▒▒▒▒▒▒ ▒▒▒▒ ▒▒▒▒▒ ▒▒▒▒
▓▓▓▓ ▓▓▓▓▓ ▓ ▓ ▓▓▓ ▓▓▓ ▓▓▓ ▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓
████ █████ ██ ████████ ██ ████████ ████████ ████ █████ ████
█ ██ ███ ███ ███ ████████ ███ ██████ ████
IP & Domain Inspection and Intelligence Tool
"""
def print_banner(use_color=True):
"""
Print the InsPect ASCII banner.
Args:
use_color (bool): Whether to use color formatting (requires rich library)
"""
try:
if use_color:
from rich.console import Console
from rich.text import Text
console = Console()
text = Text(ascii_banner)
text.stylize("bold blue")
console.print(text)
else:
raise ImportError("Using plain text mode")
except ImportError:
# Fallback to plain text if rich is not available
print(ascii_banner)
# Execute only if run as a script
if __name__ == "__main__":
print_banner()
print("\nInsPect - IP Address and Domain Investigation Tool")
print("https://github.com/fredycibersec/InsPect")
#
#░ ░░ ░░░ ░░░ ░░░ ░░░ ░░░ ░░░ ░
#▒▒▒▒ ▒▒▒▒▒ ▒▒ ▒▒ ▒▒▒▒▒▒▒▒ ▒▒▒▒ ▒▒ ▒▒▒▒▒▒▒▒ ▒▒▒▒ ▒▒▒▒▒ ▒▒▒▒
#▓▓▓▓ ▓▓▓▓▓ ▓ ▓ ▓▓▓ ▓▓▓ ▓▓▓ ▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓
#████ █████ ██ ████████ ██ ████████ ████████ ████ █████ ████
#█ ██ ███ ███ ███ ████████ ███ ██████ ████