Ejemplo n.º 1
0
# Mostra as informações que o usuário passou como argumento.
print("\n INFO:")
print(" -----------------------------------")
print(" Command:", app.args.command)
print(" Expected Exit Code:", app.args.code)
print(" Show:", app.args.show)
print(" Length:", app.args.min, "-", app.args.max)
print(" -----------------------------------")

print('\n Press "q" to finish.')

if app.args.show != "true": print(" Running...")

try:
    # Inicializa o Brute Force.
    app.run_brute_force()

except Exception as error:

    # Informa que houve um erro.
    print("\n\n Oops, it looks like there was an error during the process.")
    print(" Error:", error)

finally:

    # Obtém os dados do Brute Force e os imprime.
    pwd = app.bruteForce.found_password
    attempts = app.bruteForce.attempts

    print("\n -----------------------------------")
    print(" Password:"******"Not Found")