Had a question about this tutorial:
I’ve tried double-checking the code several times. Even tried pulling it off this github to ensure I wasn’t missing anything:
Every time I try to run it I get the following though:
mprotect:: Cannot allocate memory
At first I thought this may be some security feature on my device that was preventing that. However, I was able to execute the code in the link below that also calls mprotect without issue:
I was very far from running low on memory with my device, so I do not think this was due to low resources. I suspect that as I’m using x86_64, maybe some of the offsets and code in polycrypt.c were to be used with i386?
That’s just a guess, but I’m interested on anyone’s thoughts on this.