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

Function get_got_addr

restore/702/702.js:124–135  ·  view source on GitHub ↗
(idx)

Source from the content-addressed store, hash-verified

122var plt_ptr = read_ptr_at(fake_vtable) - 10117000;
123
124function get_got_addr(idx)
125{
126 var p = plt_ptr + idx * 16;
127 var q = read_mem(p, 6);
128 if(q[0] != 0xff || q[1] != 0x25)
129 throw "invalid GOT entry";
130 var offset = 0;
131 for(var i = 5; i >= 2; i--)
132 offset = offset * 256 + q[i];
133 offset += p + 6;
134 return read_ptr_at(offset);
135}
136
137//these are not real bases but rather some low addresses
138var webkit_base = read_ptr_at(fake_vtable);

Callers 1

702.jsFile · 0.70

Calls 2

read_memFunction · 0.70
read_ptr_atFunction · 0.70

Tested by

no test coverage detected