Skip to content

Instantly share code, notes, and snippets.

@nfalliere
Created July 20, 2021 21:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nfalliere/5c905b6678176f4879ef2495ba38b870 to your computer and use it in GitHub Desktop.
Save nfalliere/5c905b6678176f4879ef2495ba38b870 to your computer and use it in GitHub Desktop.
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