def show_strings(filename):
	strings = pecore.get_strings(filename)
	if(strings):
		for string in strings:
			print string
Beispiel #2
0
        stdoutput.show_export(pe)
        exit(0)

    elif option == "--dir-import":
        stdoutput.show_directory(pe, "import")
        exit(0)
    elif option == "--dir-export":
        stdoutput.show_directory(pe, "export")
        exit(0)
    elif option == "--dir-resource":
        stdoutput.show_directory(pe, "resource")
        exit(0)
    elif option == "--dir-debug":
        stdoutput.show_directory(pe, "debug")
        exit(0)
    elif option == "--dir-tls":
        stdoutput.show_directory(pe, "tls")
        exit(0)

    elif option == "--strings":
        print pecore.get_strings(filename)
        sys.exit(0)
    elif option == "--sections":
        print pecore.get_sections(pe)
        sys.exit(0)
    elif option == "--dump":
        print pecore.get_dump(pe)
        sys.exit(0)
    else:
        help.help()
Beispiel #3
0
def show_strings(filename):
    strings = pecore.get_strings(filename)
    if (strings):
        for string in strings:
            print string
Beispiel #4
0
	is_pe(filename)

	if option == "--json":
		autoanalysis(pe, filename, json=True); exit(0)
		
	elif option == "--import":
		stdoutput.show_import(pe); exit(0)
	elif option == "--export":
		stdoutput.show_export(pe); exit(0)
		
	elif option == "--dir-import":
		stdoutput.show_directory(pe, "import"); exit(0)
	elif option == "--dir-export":
		stdoutput.show_directory(pe, "export"); exit(0)
	elif option == "--dir-resource":
		stdoutput.show_directory(pe, "resource"); exit(0)
	elif option == "--dir-debug":
		stdoutput.show_directory(pe, "debug"); exit(0)
	elif option == "--dir-tls":
		stdoutput.show_directory(pe, "tls"); exit(0)
		
	elif option == "--strings":
		print pecore.get_strings(filename); sys.exit(0)
	elif option == "--sections":
		print pecore.get_sections(pe); sys.exit(0)
	elif option == "--dump":
		print pecore.get_dump(pe); sys.exit(0)
	else:
		help.help()