Hi @bramble,
Thanks for reading my tutorial hope you enjoyed it and find it somehow useful.
This is just a XOR that will be 0 whenever both values v
and pat
are equal. It is just a way to check if you have found the pattern you are looking for.
That is probably the case. The best way to find out is just to debug your patched program and see what is going on. Actually that’s the best way to fully understand this kind of stuff.
Go run the debugger, find the problem and fix it!
I’d used dynamic binaries while writing the tutorial, so, I believe the real reason behind this behaviour is something else… Verify your binaries are not PIE, for instance.
Take a look to this other thread
Hope this helps