Jump to content

CyberCat

Member
  • Posts

    71
  • Joined

  • Last visited

Everything posted by CyberCat

  1. I don't know why people prefer integers type for this purpose which forces you to deal with endianness. I just simplified yours too. void inject(uint64_t offset, const void *bytes, size_t bytes_len) { MSHookMemory((void *)getRealOffset(offset), bytes, bytes_len); } Usage: //offset & bytes literal & bytes length /* mov w0, #1 ret */ inject(0x100299DC4, "\x20\x00\x80\x52\xC0\x03\x5F\xD6", 8); You can write as many bytes as you want with this.
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines