Commit 77d769cf authored by PoroCYon's avatar PoroCYon
Browse files

... fix pw code upload for real this time

parent d8d0e68b
......@@ -289,16 +289,17 @@ END:;
uint16_t org = 0xf8f0+0x180;
uint16_t orgBE = ((org&0xff)<<8)|((org>>8)&0xff);
size_t bloboff = 0;
while (blobsize != 0) {
size_t chunk = ((blobsize > 0x7e) ? 0x7e : blobsize);
if (!pw_write_mem(sessid, org, chunk, stuff)) {
if (!pw_write_mem(sessid, org+bloboff, chunk, stuff+bloboff)) {
iprintf("can't install code 0x%x\n", org);
goto LnopL;
}
blobsize -= chunk;
org += chunk;
bloboff += chunk;
}
if (!pw_write_mem(sessid, 0xf7e0, sizeof sploit_trigger,
&orgBE)) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment