Exemplo n.º 1
0
def run():
    analyser = Analyser()
    if analyser.valid:
        analyser.print_all()
        analyser.analyse_all()
        if len(analyser.Protocols["All"]):
            wind = ProtsWindow("Protocols", analyser, nb=10)
            wind.show()
Exemplo n.º 2
0
def run():
    analyser = Analyser()
    if analyser.valid:
        analyser.print_all()
        analyser.analyse_all()
    if not analyser.valid:
        analyser.arch = idaapi.askstr(
            0, "x86 / x64", "Set architecture manually (x86 or x64)")
        if not (analyser.arch == "x86" or analyser.arch == "x64"):
            return False
        if (analyser.arch == "x86"):
            analyser.BOOT_SERVICES_OFFSET = BOOT_SERVICES_OFFSET_x86
        if (analyser.arch == "x64"):
            analyser.BOOT_SERVICES_OFFSET = BOOT_SERVICES_OFFSET_x64
        analyser.print_all()
        analyser.analyse_all()
    if len(analyser.Protocols["All"]):
        wind = ProtsWindow("Protocols", analyser, nb=10)
        wind.show()
    return True