MCPcopy Create free account
hub / github.com/clienthax/Ps3GhidraScripts / findPs3ProgramType

Method findPs3ProgramType

ghidra_scripts/Ps3ElfUtils.java:60–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58 }
59
60 public short findPs3ProgramType() throws Exception {
61 if(getElfHeader() == null) {
62 script.printerr("Couldn't find Elf64_Ehdr\n");
63 return -1;
64 }
65
66 return script.getDataAt(elfHeader.getStart()).getComponent(8).getShort(0);// e_type
67 }
68
69 public boolean loadingExec() throws Exception {
70 return programType == ET_EXEC;

Callers 2

Ps3ElfUtilsMethod · 0.95
processMethod · 0.80

Calls 1

getElfHeaderMethod · 0.95

Tested by

no test coverage detected