Update and rename banners.py to banner.py

This commit is contained in:
Richard Mwewa
2022-12-23 12:16:39 +02:00
committed by GitHub
parent e3c151e2d3
commit 331c81ac46
2 changed files with 24 additions and 44 deletions

24
octosuite/banner.py Normal file
View File

@@ -0,0 +1,24 @@
import getpass
from rich.tree import Tree
from octosuite.config import red, white, green, reset
# banner.py
# This file holds the program's banner and version tag
version_tag = "3.0.0"
def banner():
banner_tree = Tree(getpass.getuser())
banner_tree.add(f"use {green}help{reset} command for usage")
banner_tree.add(f"commands are case insensitive\n")
return f"""
_______ __ _______ __ __
| |.----.| |_.-----.| __|.--.--.|__| |_.-----.
| - || __|| _| _ ||__ || | || | _| -__|
|_______||____||____|_____||_______||_____||__|____|_____|
v{version_tag}#dev
{white}— Advanced Github {red}OSINT{white} Framework
""", banner_tree

View File

@@ -1,44 +0,0 @@
import random
import getpass
from rich.tree import Tree
from octosuite.colors import red, white, green, reset
# banners.py
# This file holds the program's banners and version tag
version_tag = "3.0.0"
def ascii_banner():
banner_tree = Tree(getpass.getuser())
banner_tree.add(f"use {green}help{reset} command for usage")
banner_tree.add(f"commands are case insensitive\n")
ascii_banners = [
"""
_______ __ _______ __ __
| |.----.| |_.-----.| __|.--.--.|__| |_.-----.
| - || __|| _| _ ||__ || | || | _| -__|
|_______||____||____|_____||_______||_____||__|____|_____|
""",
"""
╔═╗┌─┐┌┬┐┌─┐╔═╗┬ ┬┬┌┬┐┌─┐
║ ║│ │ │ │╚═╗│ ││ │ ├┤
╚═╝└─┘ ┴ └─┘╚═╝└─┘┴ ┴ └─┘
""",
"""
░▒█▀▀▀█░█▀▄░▀█▀░▄▀▀▄░▒█▀▀▀█░█░▒█░░▀░░▀█▀░█▀▀
░▒█░░▒█░█░░░░█░░█░░█░░▀▀▀▄▄░█░▒█░░█▀░░█░░█▀▀
░▒█▄▄▄█░▀▀▀░░▀░░░▀▀░░▒█▄▄▄█░░▀▀▀░▀▀▀░░▀░░▀▀▀
""",
"""
▄▀▄ ▄▀▀ ▀█▀ ▄▀▄ ▄▀▀ █ █ █ ▀█▀ ██▀
▀▄▀ ▀▄▄ █ ▀▄▀ ▄██ ▀▄█ █ █ █▄▄
"""]
ascii_banner = random.choice(ascii_banners)
return banner_tree, f"""{ascii_banner} v{version_tag}#dev
{white}— Advanced Github {red}OSINT{white} Framework
"""