clienthax / Ps3GhidraScripts

Various scripts for ghidra for parsing ps3 binarys
90 stars 17 forks source link

NullPointerException:the return value of "ghidra.program.model.listing.Data.getComponent(int)" is null #24

Open Lantern-r opened 1 year ago

Lantern-r commented 1 year ago

Whenever i try to run the script, it gives me this error:

Cannot invoke "ghidra.program.model.listing.Data.getLong(int)" because the return value of "ghidra.program.model.listing.Data.getComponent(int)" is null
java.lang.NullPointerException: Cannot invoke "ghidra.program.model.listing.Data.getLong(int)" because the return value of "ghidra.program.model.listing.Data.getComponent(int)" is null
    at Ps3ElfUtils.parseSections(Ps3ElfUtils.java:124)
    at Ps3ElfUtils.<init>(Ps3ElfUtils.java:40)
    at AnalyzePs3Binary.run(AnalyzePs3Binary.java:28)
    at ghidra.app.script.GhidraScript.executeNormal(GhidraScript.java:395)
    at ghidra.app.script.GhidraScript.doExecute(GhidraScript.java:250)
    at ghidra.app.script.GhidraScript.execute(GhidraScript.java:228)
    at ghidra.app.plugin.core.script.RunScriptTask.run(RunScriptTask.java:47)
    at ghidra.util.task.Task.monitoredRun(Task.java:134)
    at ghidra.util.task.TaskRunner.lambda$startTaskThread$0(TaskRunner.java:106)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
    at java.base/java.lang.Thread.run(Thread.java:833)

---------------------------------------------------
Build Date: 2023-Feb-08 1242 EST
Ghidra Version: 10.2.3
Java Home: C:\Program Files\Java\jdk-17
JVM Version: Oracle Corporation 17.0.6
OS: Windows 11 10.0 amd64
Workstation: 

Script Version: ghidra_10.2.3_PUBLIC_20230303_Ps3GhidraScripts.zip

clienthax commented 1 year ago

Need the elf

Lantern-r commented 1 year ago

EBOOT.zip

clienthax commented 1 year ago

What is this eboot from?, it seems non compliant with some assumptions the script has.

Lantern-r commented 1 year ago

This is a game in a CTF competition.

Hasster1 commented 1 month ago

Were you using small endian or big endian when selecting a language?