x64dbg / x64dbgpy

Automating x64dbg using Python, Snapshots:
https://ci.appveyor.com/project/mrexodia/x64dbg-python/build/artifacts
MIT License
1.47k stars 70 forks source link

Is there a API to get "FileOffset" of RVA ? #50

Closed nevinhappy closed 4 years ago

nevinhappy commented 4 years ago

Just like the command : mod.offset(addr) to get the fileoffset , But I can't find any function can do this. Anyone know how to make this ?

mrexodia commented 4 years ago

You can call DbgValFromString and evaluate any expression you want

nevinhappy commented 4 years ago

Thand you for your quick support . This function is powerful.

     x64dbg.DbgValFromString('mod.offset(0x%X)' % find_ret)

Note: the arg of mod.offset should be hex format .