I have done the same thing I have 1 application A that just prints a one liner each 7 seconds and another code that has a function with another print, injection.o. When I get to the step to open my object file injection.o and trying to map it in the memory I get several errors.
When I first do "call open("injection.o", 2)" it always return -1. I then did "call open("injection.o", "O_RDWR")". Then it returned a fd = 3.
When I then do mmap(1, 2504, 1|2|4, 1, 3, 0), 2504 is my objects file size, it again only returned -1.
I have no clue on what to do. Can anyone help me?
Br
Hung