"bin/sh: can't access tty; job control turned off” error when running shellcode"

Posted by Nosrettap on Super User See other posts from Super User or by Nosrettap
Published on 2012-04-09T19:51:37Z Indexed on 2012/06/01 4:43 UTC
Read the original article Hit count: 172

Filed under:
|
|
|

I'm writing shellcode to exploit a buffer overflow vulnerability on a server. To do so I have port binding shellcode that I send to the server and then I run (from a linux terminal) the command telnet serverAdress 4444 where 4444 is the port which I have opened up. The hope is that I will receive a shell back that I can use to execute commands. However, I always end up with the command

bin/sh: can't access tty; job control turned off

I can't change any of the server code, and I believe the shellcode is correct because I got it from this website (http://www.tsirogiannis.com/exploits-vulnerabilities-videos-papers-shellcode/linuxx86-port-binding-shellcode-xor-encoded-152-bytes/). From my research, it appears that this may have to do with the mode that my terminal is running in (something called interactive mode...or something like that).

All computers involved are linux machines and the machine that I am on is running the latest version of Ubuntu.

Any ideas what this job control error means and how I can fix it?

© Super User or respective owner

Related posts about linux

Related posts about ubuntu