Esempio n. 1
0
                + colors.RESET)

            for n in check_imports_result:
                n = n.split(":")
                print('\t' + colors.LIGHT_RED + n[0] + colors.RESET + " - " +
                      n[1])
            print()
            print(
                "================================================================================"
            )
            if input("Continue? [Y/n] ") is 'n':
                exit()
            print()
    else:
        print(colors.BOLD + colors.YELLOW + "File Details: " + colors.RESET)
        for n in file_info(args.filename):
            print('\t', n)
        print()
        print(
            "================================================================================"
        )
        if input("Continue? [Y/n] ") is 'n':
            exit()
        print()
    if args.api_key and internet_connection:
        virus_check = virustotal(args.filename, args.api_key)
        if virus_check[0] == "scan_result":
            print(colors.BOLD + colors.YELLOW + "Virustotal:" + colors.RESET)
            for n in virus_check[1]:
                n = n.split("-")
                print('\t' + colors.CYAN + n[0] + colors.RESET + "-" +
Esempio n. 2
0
                print(
                    "================================================================================"
                )
                if args.Flush == "off":
                    if input("Continue? [Y/n] ") is 'n':
                        exit()
                print()

        if args.report:
            if not os.path.exists("analysis_report"):
                os.mkdir("analysis_report")
            file_report = elf_report(elf, args.report)

    else:
        print(colors.BOLD + colors.YELLOW + "File Details: " + colors.RESET)
        for n in file_info(args.filename):
            print('\t', n)
        print()
        print(
            "================================================================================"
        )
        if args.Flush == "off":
            if input("Continue? [Y/n] ") is 'n':
                exit()
            print()

        if args.report:
            if not os.path.exists("analysis_report"):
                os.mkdir("analysis_report")
            file_report = others_report(file_info(args.filename))
Esempio n. 3
0
                      colors.RESET)
                for key, value in checksec.items():
                    print(key + ": " + str(value))
                print()
                print(
                    "================================================================================"
                )

        if args.report:
            if not os.path.exists("analysis_report"):
                os.mkdir("analysis_report")
            file_report = (elf, args.report, args.strings)

    else:
        print(colors.BOLD + colors.YELLOW + "File Details: " + colors.RESET)
        for n in file_info(args.filename):
            print('\t', n)
        print()
        print(
            "================================================================================"
        )

        if args.report:
            if not os.path.exists("analysis_report"):
                os.mkdir("analysis_report")
            file_report = others_report(file_info(args.filename), args.strings)

    if args.api_key and internet_connection:
        virus_check = virustotal(args.filename, args.api_key)
        if virus_check[0] == "scan_result":
            print(colors.BOLD + colors.YELLOW + "Virustotal:" + colors.RESET)