[23 / 4 / ?]
Need help with the assignment in pic related, the code is at https://pastebin.com/ukp9BrvS
If you just run the code as-is, you'll get "ERROR: Invalid memory read (UC_ERR_READ_UNMAPPED)"
I changed the start_address_memory (commented out atm to show the change I made) b/c my hunch was that the address 0x31337 wasn't mapped. When I run it now, I get "ERROR: Invalid memory write (UC_ERR_WRITE_UNMAPPED)", so I guess that's some progress.
I added print statements to the hook_code function to print the registers after every instruction, I'm stuck now and don't know how to proceed, information on unicorn engine is a bit sparse and my assembly knowledge could also use some polishing.
If you just run the code as-is, you'll get "ERROR: Invalid memory read (UC_ERR_READ_UNMAPPED)"
I changed the start_address_memory (commented out atm to show the change I made) b/c my hunch was that the address 0x31337 wasn't mapped. When I run it now, I get "ERROR: Invalid memory write (UC_ERR_WRITE_UNMAPPED)", so I guess that's some progress.
I added print statements to the hook_code function to print the registers after every instruction, I'm stuck now and don't know how to proceed, information on unicorn engine is a bit sparse and my assembly knowledge could also use some polishing.