mirror of
https://github.com/bellingcat/octosuite.git
synced 2026-06-11 12:58:34 +03:00
Update colors.py
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import psutil
|
||||
import platform
|
||||
from richt.tree import Tree
|
||||
from datetime import datetime
|
||||
|
||||
|
||||
@@ -8,22 +9,22 @@ from datetime import datetime
|
||||
# colors.py is the reason why users get to choose whether to enable/disable colors
|
||||
# delete this file, the entire program breaks
|
||||
system_info = [("RAM", f"{str(round(psutil.virtual_memory().total / (1024.0 **3)))}GB"),
|
||||
("Processor",platform.processor),
|
||||
("Node", platform.node),
|
||||
("Release", platform.release),
|
||||
("Version", platform.version),
|
||||
("Processor",platform.processor),
|
||||
("Architecture", platform.architecture)
|
||||
]
|
||||
start_banner = f"""
|
||||
OCTOSUITE © 2023 Richard Mwewa
|
||||
("Architecture", platform.architecture),
|
||||
("Version", platform.version)]
|
||||
first_banner = f"""
|
||||
OCTOSUITE © 2022 Richard Mwewa
|
||||
{datetime.now().strftime('%A %d %B %Y, %H:%M:%S%p')}
|
||||
|
||||
"""
|
||||
|
||||
print(start_banner)
|
||||
print(f"{platform.system()}")
|
||||
"""
|
||||
|
||||
print(first_banner)
|
||||
system_tree = Tree(f"{platform.system()}")
|
||||
for system_key, system_value in system_info:
|
||||
print(f"├─ {system_key}: {system_value()}")
|
||||
system_tree.add(f"{system_key}: {system_value()}")
|
||||
xprint(system_tree)
|
||||
print("\n")
|
||||
while True:
|
||||
try:
|
||||
@@ -46,3 +47,4 @@ while True:
|
||||
|
||||
except KeyboardInterrupt:
|
||||
exit(f"[!] Process interrupted with Ctrl+C.")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user