cryptax / misc-code

Miscellaneous code
97 stars 25 forks source link

Error Jeb -> DartBytes.py #3

Open xk0m1 opened 6 months ago

xk0m1 commented 6 months ago

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'

cryptax commented 6 months ago

That means that getFocusedView is returning None. Have you selected a view?

xk0m1 commented 5 months ago

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.

cryptax commented 5 months ago

In JEB,

  1. 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).
  2. 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".
  3. 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.

screenshot