diff --git a/utilities/colors.py b/utilities/colors.py deleted file mode 100644 index 517ae35..0000000 --- a/utilities/colors.py +++ /dev/null @@ -1,56 +0,0 @@ -import sys -import platform -from datetime import datetime - -# The Color class is responsible for enabling/disabling colors in OctoSuite -# This class gets called first at start up before any other class/method gets called (makes one think why this is not the firstBlood class) -# Color class is the reason why users get to choose whether to enable/disable colors -# Unfortunately for our friends the 'non-Linux' users, they will not yet have the opportunity to see what OctoSuite looks like with colors enabled lol -class Color: - colors = True - # Colors will be unavailable on non-linux machines - if sys.platform.lower().startswith(("os", "win", "darwin","ios")): - colors = False - - if not colors: - reset = red = white = green = red_bg = "" - - else: - # Printing system information was completely unnecessary (just like most things in this program :D) - # But at least users will get to know things they did not know about their machines ;) - date_time = datetime.now() - sys_info = [("Processor",platform.processor), - ("Node", platform.node), - ("Release", platform.release), - ("Architecture", platform.architecture), - ("Version", platform.version)] - - banner = f""" - OCTOSUITE © 2022 Richard Mwewa - {date_time.strftime('%A %d %B %Y, %H:%M:%S%p')} - - - - {platform.system()}""" - print(banner) - for key, value in sys_info: - print(f"\t├─ {key}: {value()}") - print("\n") - while True: - try: - color_chooser = input(f"[ ? ] Would you like to enable colors for this session? (y/n) ") - if color_chooser.lower() == "y": - white = "\033[97m" - red = "\033[91m" - reset = "\033[0m" - green = "\033[92m" - red_bg = "\033[41;37m" - break - elif color_chooser.lower() == "n": - red = white = green = red_bg = reset = "" - break - else: - print(f"\n[ ! ] Your response ({color_chooser}) is invalid (expected y or n) ") - - except KeyboardInterrupt: - exit(f"[ ! ] Process interrupted with (Ctrl+C).") diff --git a/utilities/helper.py b/utilities/helper.py deleted file mode 100644 index 459bbc7..0000000 --- a/utilities/helper.py +++ /dev/null @@ -1,118 +0,0 @@ -from utilities.colors import Color - -class Help: - usageText = 'Use {} to get started' - def updateCommand(): - print(f''' -{Color.white}Update subcommands{Color.reset} -{'='*18} -{Help.usageText.format('update:')} - - {Color.white}Command Description{Color.reset} - ------- ----------- - check Check for updates - install Download and install updates''') - - - def searchCommand(): - print(f''' -{Color.white}Search subcommands{Color.reset} -{'='*18} -{Help.usageText.format('search:')} - - {Color.white}Command Description{Color.reset} - ------- ----------- - users Search user(s) - repos Search repositor[yies] - topics Search topic(s) - issues Search issue(s) - commits Search commit(s)''') - - - def userCommand(): - print(f''' -{Color.white}User subcommands{Color.reset} -{'='*17} -{Help.usageText.format('user:')} - - {Color.white}Command Description{Color.reset} - ------- ----------- - profile Get a user's profile info - gists Return a users's gists - orgs Return organizations that a user belongs to/owns - repos Return a user's repositories - events Return a user's events - followers Return a user's followers - following Check if user[A] follows user[B] - subscriptions Return a user's subscriptions''') - - - def orgCommand(): - print(f''' -{Color.white}Org subcommands{Color.reset} -{'='*16} -{Help.usageText.format('org:')} - - {Color.white}Command Description{Color.reset} - ------- ----------- - profile Get an organization's info - repos Return an organization's repositories - events Return an organization's events - member Check if a specified user is a public member of the target organization''') - - - def repoCommand(): - print(f''' -{Color.white}Repo subcommands{Color.reset} -{'='*17} -{Help.usageText.format('repo:')} - - {Color.white}Command Description{Color.reset} - ------- ----------- - profile Get a repository's info - forks Return a repository's forks - releases Return a repository's releases - languages Return a repository's languages - stargazers Return a repository's stargazers - pathcontents List contents in a path of a repository''') - - - def logsCommand(): - print(f''' -{Color.white}Logs subcommands{Color.reset} -{'='*17} -{Help.usageText.format('logs:')} - - {Color.white}Command Description{Color.reset} - ------- ----------- - view View logs - read Read log - delete Delete log''') - - - def helpCommand(): - print(f''' -{Color.white}Core commands{Color.reset} -{'='*13} - - {Color.white}Command Description{Color.reset} - ------- ----------- - help Help menu - exit Close session - clear Clear screen - about Program's info - author Developer's info - version Version info - - -{Color.white}Help subcommands{Color.reset} -{'='*16} -{Help.usageText.format('help:')} - - {Color.white}Command Description{Color.reset} - ------- ----------- - logs List all logs management commands - repo List all repository investigation commands - user List all users investigation commands - search List all target discovery commands - update List all program updates managememt commands''') diff --git a/utilities/misc.py b/utilities/misc.py deleted file mode 100644 index 877cbbe..0000000 --- a/utilities/misc.py +++ /dev/null @@ -1,33 +0,0 @@ -import getpass -from utilities.colors import Color - -''' -Banner -This class holds the program's banner logo and version tag -''' -class Banner: - ''' - This is experimental, i might remove it later - If the username is mine (lol), current username string will be set to Admin - ''' - if getpass.getuser() == 'rly0nheart': - currentUser = f'🛡️ {Color.red}Admin{Color.reset}' - else: - currentUser = Color.green + getpass.getuser() + Color.reset - - versionTag = '2.0.1-alpha' - nameLogo = f'''{Color.white} - _______ __ _______ __ __ -| |.----.| |_.-----.| __|.--.--.|__| |_.-----. -| - || __|| _| _ ||__ || | || | _| -__| -|_______||____||____|_____||_______||_____||__|____|_____| - v{versionTag} - {Color.white}— Advanced Github {Color.red}OSINT{Color.white} Framework{Color.reset} - - - -.:{currentUser}:. -- {Color.white}use {Color.green}help{Color.reset}{Color.white} command for usage{Color.reset} -- {Color.white}commands are case insensitive{Color.reset} - {'-'*29} -'''