Running compiled code sh: [10665: 4] tcsetattr: Invalid argument error

Compiling exploit and getting the sh: [10665: 4] tcsetattr: Invalid argument error?

It helps to compile on a similar box. Find what linux runs your same kernel version+arch and compile there. Centos 4.4 is a cool one for kernel 2.6.9. That is all.