Re: Fixing SamyGO telnet/SSH/SCP/bash on C/D/E/F series
Posted: Thu May 14, 2015 9:38 am
Did you apply FULL fix ? 

Samsung TV Firmware on the GO
http://forum.samygo.tv/
Code: Select all
export HOME=/mnt/
export PS1='root@tv:\w \$ '
Code: Select all
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
If you apply "parts" don't expect ANYTHING to be working correctlymiazza wrote:No. I only updated 01_02_telnet.init as discussed above.
Shall I apply also for the rest in order to have telnet working as I want ?
You should ALWAYS cross your fingersmiazza wrote:(is it safe or shall I cross finger after upload ?)
If you can't find it look in other files. if it's NOT there put it where you put rest to "telnet stuff"miazza wrote: For the 01_02_telnet.init we have already discussed and should be ok even if I cannot find reference to this mod in my init:Code: Select all
export HOME=/mnt/ export PS1='root@tv:\w \$ '
You don't add it anywhere. You just simply run these commands in telnetmiazza wrote: For scp (I do not need it but why not..) I have to change dropbearmulti with your but it is not clear where I have to add this:Code: Select all
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
If you keep on asking about EVERY single line whether you should add it I will stop helpingmiazza wrote:Finally I also have to modify my busybox with yours in /mnt/bin/busybox ?
bobiturboto wrote: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:Code: Select all
$SYSROOT/bin/busybox2 telnetd -p 23 -l $SYSROOT/bin/ash & >> $LOGFILE 2>&1
In the same file find this part: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
Replace it with this: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
Then run this commands: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
Execute the listed commands through telnet connection.Code: Select all
umount /mtd_rwarea/passwd rm /mtd_rwarea/passwd
Reboot your TV and after that you will have fixed telnet and working ssh access with scp and ssh history.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.
Code: Select all
root@tv:/mnt # umount /mtd_rwarea/passwd
umount: can't umount /mtd_rwarea/passwd: Invalid argument
root@tv:/mnt #
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
Code: Select all
root@tv:/mnt # umount /mtd_rwarea/passwd
umount: can't umount /mtd_rwarea/passwd: Invalid argument
root@tv:/mnt # alias alert="samyGOso -A -B -l /mnt/opt/privateer/usr/libso/libAl
ert.so"
root@tv:/mnt # alert MSGBOX:"blub"
root@tv:/mnt #
Code: Select all
login as: root
root@192.168.1.30's password:
Access denied
root@192.168.1.30's password:
Access denied
root@192.168.1.30's password:
Code: Select all
rm /mtd_rwarea/passwd
sectroyer wrote:Well simply run:and rebootCode: Select all
rm /mtd_rwarea/passwd
You keep on NOT doing ALL the steps
Code: Select all
root@tv:/mnt # rm /mtd_rwarea/passwd
rm: can't remove '/mtd_rwarea/passwd': Device or resource busy
root@tv:/mnt #
Code: Select all
umount /mtd_rwarea/passwd
That's what I did the first time:sectroyer wrote:Ehh you don't get itIf rm fails run:
and THEN try rm once againCode: Select all
umount /mtd_rwarea/passwd
![]()
If you would try BOTH commands you will have no problems
Code: Select all
root@tv:/mnt # umount /mtd_rwarea/passwd
umount: can't umount /mtd_rwarea/passwd: Invalid argument
root@tv:/mnt # rm -f /mtd_rwarea/passwd
rm: can't remove '/mtd_rwarea/passwd': Device or resource busy
root@tv:/mnt # umount /mtd_rwarea/passwd
umount: can't umount /mtd_rwarea/passwd: Invalid argument
root@tv:/mnt # rm /mtd_rwarea/passwd
rm: can't remove '/mtd_rwarea/passwd': Device or resource busy
root@tv:/mnt #
Code: Select all
cat /etc/passwd
Code: Select all
cat /mtd_rwarea/passwd