MCPcopy Create free account
hub / github.com/GamerHack/GamerHack.github.io / dump_libwebkit

Function dump_libwebkit

g2all/700/send.js:97–114  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

95
96// dump for libSceNKWebKit.sprx
97function dump_libwebkit() {
98 let addr = js_textarea;
99 // WebCore::HTMLTextAreaElement
100 addr = addr.readp(0x18);
101
102 // vtable for WebCore::HTMLTextAreaElement
103 // in PT_SCE_RELRO segment (p_type = 0x6100_0010)
104 addr = addr.readp(0);
105
106 log(`vtable: ${addr}`);
107 const vtable = make_buffer(addr, 0x400);
108 send(url, vtable, `vtable_${addr}.bin`, () => log("vtable sent"));
109
110 const [lib_base, lib_end] = get_boundaries(addr);
111 dump("libSceNKWebKit", lib_base, lib_end);
112
113 return lib_base;
114}
115
116// dump for libkernel_web.sprx
117function dump_libkernel(libwebkit_base) {

Callers 1

dump_webkitFunction · 0.70

Calls 6

logFunction · 0.90
make_bufferFunction · 0.90
sendFunction · 0.90
get_boundariesFunction · 0.70
dumpFunction · 0.70
readpMethod · 0.45

Tested by

no test coverage detected