parser.add_option_group(mandatory) parser.add_option_group(manipulation) parser.add_option_group(specifics) parser.add_option_group(misc) # Pay no attention to the _ it's required.. opt, _ = parser.parse_args() verify_python_version() required_args = [ "-c", "--crack", "-l", "--hash-list", "-v", "--verify", "--download" ] args_in_params = 0 show_banner() if opt.hideBanner is not True else show_hidden_banner() if len(sys.argv) <= 1: LOGGER.fatal( "You have failed to provide a flag for to the application and have been " "redirected to the help menu.") time.sleep(1.7) subprocess.call("python dagon.py --help") else: try: # Check that you provided a mandatory argument for i, _ in enumerate(sys.argv): if sys.argv[i] in required_args: args_in_params += 1 # If you provided an argument continue.. if args_in_params > 0:
parser.add_option_group(dictionary_attack_opts) parser.add_option_group(tech) parser.add_option_group(misc) # Pay no attention to the _ it's required.. opt, _ = parser.parse_args() verify_python_version(verbose=opt.runInVerbose) # need this again :| required_args = [ "-c", "--crack", "-l", "--hash-list", "-v", "--verify", "-V", "--verify-list" ] args_in_params = 0 show_banner() if opt.hideBanner else show_hidden_banner() integrity_check() if len(sys.argv) <= 1: LOGGER.fatal( "You have failed to provide a flag to the application and have been redirected to the help menu." ) time.sleep(1.7) subprocess.call("python dagon.py --help", shell=True) else: try: # Download a random wordlist if opt.downloadWordList or opt.downloadMultiple: download_rand_wordlist(verbose=opt.runInVerbose, multi=opt.downloadMultiple if