Exemple #1
0
def logo():
    print("""
 _______ _____  ______ _______ _     _ _____ _______
 |         |   |_____/    |    |____/    |      |
 |_____  __|__ |    \_    |    |    \_ __|__    |   v0.1-dev
 ---------------------------------------------------
 DFIR Framework - Forked from Viper
    """)

    db = Database()
    file_count = db.get_sample_count()
    case_count = db.get_investigation_count()

    if __project__.name:
        name = __project__.name
    else:
        name = 'default'

    print_info(str(db.engine).split(':')[0] + ')')
    print ''
    print("---------------{ " + green("STATS") + " }---------------")
    print_info("You have " + bold(green(file_count)) +
         (" files in your repository"))
    print("---[ INVESTIGATIONS: " + yellow(case_count) + " ]")
    print("---[ INTEGRATIONS: " + yellow(len(__integrations__)) + " ]")
    print("---[ MODULES: " + yellow(len(__modules__)) + " ]")
    print("---[ SCRIPTS: " + yellow(len(__scripts__)) + " ]")
    print("")