Just started learning about buffer overflow attacks and had a question regarding something in this https://www.youtube.com/watch?v=EcMCiFwHnjE/ video. Why does the person write jmpesp() function (~1:38)? The function is never called anywhere in main so how does it appear on the objdump (~3:15)? Also, what is the point of the jmp *%esp? Thanks for the help

Note that Daniweb prohibits discussion of hacking. I'll allow this thread because the question is very specific and more about C in general, but take care in asking for details about how the exploit works.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.