Advertisement
Guest User

Untitled

a guest
Jan 4th, 2018
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. uint8_t what[] = {0xA8, 0x78, 0x0A, 0x21, 0x6A} ; uint8_t repl[] = {0xE8, 0x78, 0x0A, 0x21, 0x6A};
  2. size_t count;
  3. file=fopen("fw","rb");
  4. fileout=fopen("fw_changed","wb");
  5. count = replace(file, fileout, what, repl, sizeof(what));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement