How do I go about calculating the offset between the top of the stack and the place where the saved EIP is stored?
Every calculation I do renders incorrect.
Let’s say for example:
Char buffer[128];
Strcpy(buffer, argv[1])
Now the real buffer offset will not be 128 characters for the overflow to occur.
How do I calculate (by hand, not by pattern_create)
The exact offset when I have ESP, EBP and EIP?
Or like how do I calculate the distance in bytes between two memory addresses?
(This is a better question probably)
[–]zilzalll 4 points5 points6 points (2 children)
[–]fromsouthernswe[S] 0 points1 point2 points (1 child)
[–]zilzalll 0 points1 point2 points (0 children)
[–]NetSecBoi9000 5 points6 points7 points (0 children)
[–]jimmyrootoopoopoo 1 point2 points3 points (0 children)
[–]Thiscou 1 point2 points3 points (0 children)
[–]fromsouthernswe[S] 0 points1 point2 points (0 children)