Created
July 20, 2021 21:07
-
-
Save nfalliere/5c905b6678176f4879ef2495ba38b870 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from com.pnfsoftware.jeb.client.api import IScript | |
from com.pnfsoftware.jeb.core.units import INativeCodeUnit | |
from com.pnfsoftware.jeb.core.units.code import ICodeUnit | |
class RenameRoutines(IScript): | |
def run(self, ctx): | |
prj = ctx.getMainProject() | |
code = prj.findUnit(INativeCodeUnit) | |
code.getInternalMethod(0x401000).setName('foo') | |
# ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment