panda-re / panda

Platform for Architecture-Neutral Dynamic Analysis
https://panda.re
Other
2.5k stars 479 forks source link

MIPS OSI doesn't autoload correctly from pypanda #990

Closed AndrewFasano closed 2 years ago

AndrewFasano commented 3 years ago

For architectures other than mips, this script will print a non-null proc object regardless if the bug flag is set. However, for mips, it will only print a valid value if bug is false.

from pandare import Panda

bug = True
arch = "mips"
panda = Panda(generic=arch)

@panda.queue_blocking
def driver():
    panda.revert_sync("root")

    if not bug:
        panda.load_plugin("osi")

    @panda.cb_before_block_exec
    def bbe(cpu, tb):
        proc = panda.plugins['osi'].get_current_process(cpu)
        print(proc)
        if proc != panda.ffi.NULL:
            panda.disable_callback("bbe")

panda.run()
github-actions[bot] commented 3 years ago

Stale issue message

github-actions[bot] commented 3 years ago

This issue has gone stale! If you believe it is still a problem, please comment on this issue or it will be closed in 30 days

AndrewFasano commented 3 years ago

I believe this is still a bug