Beispiel #1
0
        dest="hideBanner",
        help="Hide the application banner and show a mini version of it")
    misc.add_option("--download",
                    dest="downloadWordList",
                    action="store_true",
                    help="Download a random wordlist")

    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:
Beispiel #2
0
                    help="Run in batch and skip the questions")
    misc.add_option("--verbose",
                    action="store_true",
                    dest="runInVerbose",
                    help="Run the application verbosely")

    parser.add_option_group(mandatory)
    parser.add_option_group(manipulation)
    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."
        )