#NEWLINE# def main( ) : #NEWLINE# #INDENT# parser = argparse . ArgumentParser ( description = 'Search github for github dorks' , epilog = 'Use responsibly, Enjoy pentesting' ) #NEWLINE# parser . add_argument ( '-v' , '--version' , action = 'version' , version = '%(prog)s 0.1.0' ) #NEWLINE# group = parser . add_mutually_exclusive_group ( required = True ) #NEWLINE# group . add_argument ( '-u' , '--user' , dest = 'user_to_search' , action = 'store' , help = 'Github user/org to search within. Eg: techgaun' ) #NEWLINE# group . add_argument ( '-r' , '--repo' , dest = 'repo_to_search' , action = 'store' , help = 'Github repo to search within. Eg: techgaun/github-dorks' ) #NEWLINE# parser . add_argument ( '-d' , '--dork' , dest = 'gh_dorks_file' , action = 'store' , help = 'Github dorks file. Eg: github-dorks.txt' ) #NEWLINE# args = parser . parse_args ( ) #NEWLINE# search ( repo_to_search = args . repo_to_search , user_to_search = args . user_to_search , gh_dorks_file = args . gh_dorks_file )