ShellCodeEmulator icon indicating copy to clipboard operation
ShellCodeEmulator copied to clipboard

fails writing shellcode to memory w/ "UC_ERR_WRITE_UNMAPPED"

Open shinmai opened this issue 5 years ago • 0 comments

ShellCodeEmulator fails writing the shellcode memory with the following exception:

INFO:__main__:Writing shellcode to 7ff6f80b4e90 (len=d8)
Writing shellcode to 7ff6f80b4e90 (len=d8)
ERROR:shellcode_emulator.memory:* Error in writing memory: 7ff6f80b4e90 (size: 000000d8)
* Error in writing memory: 7ff6f80b4e90 (size: 000000d8)
Traceback (most recent call last):
  File "\Python37\lib\site-packages\shellcode_emulator\memory.py", line 88, in write_memory
    self.uc.mem_write(address, data)
  File "\Python37\lib\site-packages\unicorn\unicorn.py", line 401, in mem_write
    raise UcError(status)
unicorn.unicorn.UcError: Invalid memory write (UC_ERR_WRITE_UNMAPPED)

This happens with every dump and shellcode I've tested.

shinmai avatar Oct 06 '20 13:10 shinmai