misc-code
misc-code copied to clipboard
Error Jeb -> DartBytes.py
When i load DartBytes.py in JEB , i get this error
Script execution error: com.pnfsoftware.jeb.client.script.ScriptExecutionException: Traceback (most recent call last): File "/[REDACTED]/DartBytes.py", line 15, in run fragment = ctx.getFocusedView().getActiveFragment() AttributeError: 'NoneType' object has no attribute 'getActiveFragment'
That means that getFocusedView is returning None. Have you selected a view?
Sorry for the late reply (didnt get the notification)
In the above example, I tried it for a AOT Compiled Program , thats why didnt work ig.
In JEB,
- Disassemble the Dart AOT snapshot. It must have been processed before you can run the script, i.e you should have a x86_64 image/Disassembly window (or for another platform).
- Go to a function which is loading Small Integers. You need to put your pointer in the function. If there is no function where your current address is, you'll get an error "Please selection a method".
- Run the script. It will attempt to show you each character the SMI is really representing, or if not a printable character, then it's hex value.