Hi Monks!
I'm working on a buffer overflow example for a course and am trying to translate pre-existing exploit code into perl. Being a bit of a perl noob, I've gotten myself stuck! Is there any way to find the address of the top of the stack in perl (I need to find the address where my environment variables are going)
Update: I'm using perl to exploit another c program that is vulnerable to buffer overflows. My perl program is just constructing the "egg" to feed into my vulnerable program and puts the exploit code into an environment variable. I'm trying to find the address of this variable so I can overflow the buffer in my vulnerable program with it. Thanks for your help!