2008-11-02, 07:36 PM
psycik Wrote:Yeah I created another script.cgi and put your code in it, and then added a new line to telnet.html to call the new script.
All I got when I ran it was /opt/sybash/local.... on the screen
Script as follows.
Code:#!/bin/sh
echo "Content-Length: 29";
echo "Content-type: text/html";
echo "";
cd ~
echo "";
if [ -f /etc/mvpmc/mvpmcx2 ]; then
echo "Already Connected!";
else
echo "Connecting to telnet";
mkdir /etc/mvpmc
mount -t cifs //pvr/mvpmc /etc/mvpmc/ -o username=guest,rw;
cp /etc/mvpmc/utelnetd /usr/bin;
utelnetd -l /bin/sh -p 23 &
ln -s /lib/librmjpeg.so /lib/libjpeg.so.62
ln -s /lib/librmzlib.so /lib/libz.so
ln -s /lib/librmzlib.so /lib/libz.so.1
ln -s /lib/librmzlib.so /lib/libz.so.123
echo "Telnetd started on port 23............";
fi
killall gaya
sh -c /etc/mvpmc/startmeup 2>/dev/null >/dev/null &
change content length to 80
[SIZE="1"]SuperMicro PDSME+ Core2Duo 2.40GHz 6.0GB Ram | HD Homerun | (4) NMT | GB-PVR v1.5.21 | Windows 7 Enterprise x64[/SIZE]