"bin/sh: can't access tty; job control turned off” error when running shellcode"
Just remove /dev/console
cd /dev
rm -f console
ln -s ttyS0 console
edit/change the /etc/inittab
content
::askfirst:/bin/sh
to:
ttyS0::askfirst:/bin/sh
If you can change the command of the shell, try:sh +m
instead of sh
. That worked perfectly for me.