Re: Fixing SamyGO telnet/SSH/SCP/bash on C/D/E/F series
Posted: Sun Jun 22, 2014 6:51 pm
FOR F SERIES YOU HAVE TO DO THIS!!!!!!
You have to use dropbearmulti from archive attached in this post to get scp working for telnet and SSH.
Upload and replace /mnt/opt/privateer/usr/sbin/dropbearmulti with the attached file.
Locate these lines in /mnt/etc/init.d/01_02_telnet.init :
Replace the line with this:
In the same file find this part:
Replace it with this:
Then run this commands:
Execute the listed commands through telnet connection.
Reboot your TV and after that you will have fixed telnet and working ssh access with scp and ssh history.
Default ssh user is root and the password is SamyGO
Credits to sectroyer.
You have to use dropbearmulti from archive attached in this post to get scp working for telnet and SSH.
Upload and replace /mnt/opt/privateer/usr/sbin/dropbearmulti with the attached file.
Locate these lines in /mnt/etc/init.d/01_02_telnet.init :
Code: Select all
$SYSROOT/bin/busybox2 telnetd -p 23 -l $SYSROOT/bin/ash & >> $LOGFILE 2>&1
Code: Select all
echo "export PS1='root@tv:\w \$ '" >> /mtd_rwarea/profile
echo -e "ENV=/dtv/.ashrc\nexport ENV\n" >> /mtd_rwarea/profile
echo "PS1='root@tv:\w \$ '" >> /mtd_rwarea/profile
echo -e "ENV=/dtv/.ashrc\nexport ENV\n" >> /mtd_rwarea/profile
/bin/mount -o bind "$SYSROOT/bin/sh" /bin/sh
export HOME=/mnt/
export PS1='root@tv:\w \$ '
$SYSROOT/bin/busybox2 telnetd -p 23 -l $SYSROOT/bin/sh & >> $LOGFILE 2>&1
Code: Select all
if [ ! -e /mtd_rwarea/passwd ]; then
echo "root:saJvQKUdIxRW2:0:0:SamyGO secured Root:$NEW_HOME:$SYSROOT/bin/ash" > /mtd_rwarea/passwd
fi
Code: Select all
ln -s /mnt/bin/ /dtv/bin
if [ ! -e /mtd_rwarea/passwd ]; then
echo "root:saJvQKUdIxRW2:0:0:SamyGO secured Root:$HOME:/bin/sh" > /mtd_rwarea/passwd
fi
Code: Select all
umount /mtd_rwarea/passwd
rm /mtd_rwarea/passwd
Code: Select all
chmod +x /mnt/opt/privateer/usr/sbin/dropbearmulti
rm /mnt/opt/privateer/usr/sbin/dropbear
ln -s /mnt/opt/privateer/usr/sbin/dropbearmulti /mnt/bin/dbclient
ln -s /mnt/opt/privateer/usr/sbin/dropbearmulti /mnt/bin/scp
ln -s /mnt/opt/privateer/usr/sbin/dropbearmulti /mnt/opt/privateer/usr/sbin/dropbear
Default ssh user is root and the password is SamyGO
Credits to sectroyer.