In my home directory, I created a new directory called "echotest" and put in a echo.c file and compiled it. The echo.c file just prints out "Exploited!!". I also changed my PATH environment variable to include $HOME/echotest.

Now, when I run vulnerable it should print out "Exploited!" but its not. What am I missing here?

I did a similar test with "cat" and it worked but no luck with echo.
Any help would be appreciated.