Пример #1
0
def show_dump(filename):
	dump = pecore.get_dump(filename)
	print dump
Пример #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()
Пример #3
0
def show_dump(filename):
    dump = pecore.get_dump(filename)
    print dump
Пример #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()