Hint for HELP

Whenever I upload the exploit and compile it, I get an invalid argument error. I can run it fine from my webshell, but it does not work from the actual pty shell.