From 5d41e07bc2669adb9846b9577af94d632b97fc8d Mon Sep 17 00:00:00 2001 From: Richard Mwewa <74001397+rly0nheart@users.noreply.github.com> Date: Fri, 23 Dec 2022 12:17:48 +0200 Subject: [PATCH] Update main.py --- octosuite/main.py | 60 +---------------------------------------------- 1 file changed, 1 insertion(+), 59 deletions(-) diff --git a/octosuite/main.py b/octosuite/main.py index 1aab2bf..d39b38b 100644 --- a/octosuite/main.py +++ b/octosuite/main.py @@ -1,65 +1,7 @@ # import everything from the octosuite.py file -import argparse from octosuite.octosuite import * # I drifted away from the 'pythonic way' here -def usage(): - return """ - Basic usage - ----------- - # Get user profile info - octosuite --module user_profile --username - - # Get organization profile info - octosuite --module org_profile --organization - - # Get repo profile info - octosuite --module repo_profile --username --repository - - - - Searching - --------- - # Search users - octosuite --module users_search --query - - # Search issues - octosuite --module issues_search --query - - # Search commits - octosuite --module commits_search --query - - # Search topics - octosuite --module topics_search --query - - # Search repositories - octosuite --module repos_search --query - """ - - -def create_parser(): - parser = argparse.ArgumentParser(description='OCTOSUITE: Advanced GitHub osint framework — by Richard Mwewa | https://about.me/rly0nheart', usage=usage()) - parser.add_argument('-m', '--module', help='module', choices=['user_profile', 'user_repos', 'user_gists', 'user_orgs', 'user_events', - 'user_subscriptions', 'user_following', 'user_followers', 'user_follows', - 'org_profile', 'org_repos', 'org_events', 'org_member', - 'repo_profile', 'repo_contributors', 'repo_stargazers', 'repo_forks', - 'repo_issues', 'repo_releases', 'repo_path_contents', 'users_search', 'issues_search', - 'commits_search', 'topics_search', 'repos_search']) - parser.add_argument('-u', '--username', help='username') - parser.add_argument('-uB', '--username_b', help='username_B (used with user_follows)') - parser.add_argument('-org', '--organization', help='organization name') - parser.add_argument('-repo', '--repository', help='repository name') - parser.add_argument('-pn', '--path_name', help='path name (used with repo_path_contents)') - parser.add_argument('-q', '--query', help='query (used with search modules)') - parser.add_argument('-l', '--limit', help='output limit (used with modules that return results in bulk) (default: %(default)s)', default=10) - parser.add_argument('--colors', help='enable or disable colors (default: %(default)s)', type=bool, default=True) - return parser - - -parser = create_parser() -args = parser.parse_args() - - def octosuite(): try: run = Octosuite(args) @@ -67,7 +9,7 @@ def octosuite(): clear_screen() configure_logging() check_updates() - xprint(ascii_banner()[1], ascii_banner()[0]) + xprint(banner()[0], banner()[1]) if args.module == "user_profile": run.user_profile() elif args.module == "user_repos":