Fixing SamyGO telnet/SSH/SCP/bash on C/D/E/F series

Here are software that related with Samsung F series TVs.
Please don't create any new topic here unless you have software to post/release.

sectroyer
Official SamyGO Developer
Posts: 6305
Joined: Wed May 04, 2011 5:10 pm

Re: Fixing SamyGO telnet/SSH/SCP/bash on C/D/E/F series

Post by sectroyer »

One more thing:

Code: Select all

cat /mtd_rwarea/passwd
root:saJvQKUdIxRW2:0:0:SamyGO secured Root::/mnt/bin/ash
Your "HOME" is empty (::) I believe this is because there you used NEW_HOME nad never defined it...
Therefore change 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
to this:

Code: Select all

        if [ ! -e /mtd_rwarea/passwd ]; then
                echo "root:saJvQKUdIxRW2:0:0:SamyGO secured Root:$HOME:/mnt/bin/sh" > /mtd_rwarea/passwd
        fi
then

Code: Select all

umount /mtd_rwarea/passwd
rm /mtd_rwarea/passwd
reboot and post the result of this:

Code: Select all

cat /etc/passwd
I do NOT support "latest fw" at ALL. If you have one you should block updates on router and wait for it to STOP being "latest":)
If you want me to help you please paste FULL log(s) to "spoiler"/"code" bbcodes or provide link(s) to pasted file(s) on https://pastebin.com Otherwise "NO HELP"!!!
If you want root DISABLE internet access to your device!!!!
DO NOT EVER INSTALL FIRMWARE UPGRADE !!!!
bobiturboto
SamyGO Project Donor
Posts: 489
Joined: Sun Mar 23, 2014 8:15 pm
Location: Bulgaria

Re: Fixing SamyGO telnet/SSH/SCP/bash on C/D/E/F series

Post by bobiturboto »

Code: Select all

root@tv:/mnt # cat /etc/profile
export PATH="/mnt/opt/privateer/sbin:/mnt/opt/privateer/bin:/mnt/opt/privateer/usr/bin:/mnt/opt/privateer/usr/sbin:/mnt/sbin:/mnt/bin:/mnt/usr/bin:/mnt/usr/sbin:/tmp/bin:/usr/sbin:/usr/bin:/bin:/sbin:/etc/Scripts:/util:/mtd_appdata/Runtime/bin:/usr/sbin:/usr/bin:/bin:/sbin"
export LD_LIBRARY_PATH="/mnt/opt/privateer/lib:/mnt/opt/privateer/usr/lib:/mnt/lib:/mnt/usr/lib:/tmp/bin:/lib:/mtd_cmmlib/lib:/mtd_cmmlib/Comp_LIB:/mtd_exe/lib:/mtd_cmmlib/YWidget_LIB:/mtd_contents:/mtd_cmmlib/InfoLink/lib/plugin/Static:/mtd_appdata/moip:/mtd_cmmlib/GAME_LIB:/mtd_cmmlib/DRM_LIB:/Java/lib:/mtd_cmmlib/InfoLink/lib:/dtv:/mtd_appext/WidgetEngine:/mtd_cmmlib/Webkit:/mtd_exe/WebServerApp/bin:/mtd_cmmlib/CBRE:/mtd_cmmlib/CBRE/bin/lib:/mtd_cmmlib/Runtime/lib/CairoShadow:/mtd_cmmlib/Runtime/lib:/mtd_cmmlib/Runtime/XorgLibs:/mtd_cmmlib/CM_LIB:/mtd_appext/OIPF/lib:/mtd_exe/OIPF/lib:/mtd_cmmlib/flashplayer/libs/"
export SCREENDIR=/dtv/screen
export PS1='# '
ENV=/dtv/.ashrc
export ENV

export PS1='root@tv:\w $ '
ENV=/dtv/.ashrc
export ENV

PS1='root@tv:\w $ '
ENV=/dtv/.ashrc
export ENV

Code: Select all

root@tv:/mnt # ls -l /mnt/opt/privateer/usr/sbin/drop*
-rwxrwxrwx    1 root     0           277252 Jun 11  2012 /mnt/opt/privateer/usr/sbin/dropbear
-rwxrwxrwx    1 root     0           277252 Jun 11  2012 /mnt/opt/privateer/usr/sbin/dropbearconvert
-rwxrwxrwx    1 root     0           277252 Jun 11  2012 /mnt/opt/privateer/usr/sbin/dropbearkey
-rwxrwxrwx    1 root     0           396604 Jun 21 19:11 /mnt/opt/privateer/usr/sbin/dropbearmulti

Code: Select all

root@tv:/mnt # cat /etc/passwd
root:saJvQKUdIxRW2:0:0:SamyGO secured Root:/mnt/:/mnt/bin/sh
Still no ssh

Code: Select all

users-MacBook:~ user$ ssh root@192.168.0.101
root@192.168.0.101's password: 
Permission denied, please try again.
I don't have /mnt/bin/sh in my case is /bin/sh

Code: Select all

root@tv:/mnt # ls -al /mnt/bin/s*
lrwxrwxrwx    1 root     0               41 Jun 21 19:11 /mnt/bin/scp -> /mnt/opt/privateer/usr/sbin/dropbearmulti
lrwxrwxrwx    1 root     0               16 Nov 11  2013 /mnt/bin/script -> /mnt/bin/busybox
lrwxrwxrwx    1 root     0               16 Nov 11  2013 /mnt/bin/scriptreplay -> /mnt/bin/busybox
lrwxrwxrwx    1 root     0               16 Nov 11  2013 /mnt/bin/sed -> /mnt/bin/busybox
lrwxrwxrwx    1 root     0               16 Nov 11  2013 /mnt/bin/sendmail -> /mnt/bin/busybox
lrwxrwxrwx    1 root     0               16 Nov 11  2013 /mnt/bin/seq -> /mnt/bin/busybox
lrwxrwxrwx    1 root     0               16 Nov 11  2013 /mnt/bin/setarch -> /mnt/bin/busybox
lrwxrwxrwx    1 root     0               16 Nov 11  2013 /mnt/bin/setconsole -> /mnt/bin/busybox
lrwxrwxrwx    1 root     0               16 Nov 11  2013 /mnt/bin/setfont -> /mnt/bin/busybox
lrwxrwxrwx    1 root     0               16 Nov 11  2013 /mnt/bin/setkeycodes -> /mnt/bin/busybox
lrwxrwxrwx    1 root     0               16 Nov 11  2013 /mnt/bin/setlogcons -> /mnt/bin/busybox
lrwxrwxrwx    1 root     0               16 Nov 11  2013 /mnt/bin/setserial -> /mnt/bin/busybox
lrwxrwxrwx    1 root     0               16 Nov 11  2013 /mnt/bin/setsid -> /mnt/bin/busybox
lrwxrwxrwx    1 root     0               16 Nov 11  2013 /mnt/bin/setuidgid -> /mnt/bin/busybox
lrwxrwxrwx    1 root     0               16 Nov 11  2013 /mnt/bin/sh -> /mnt/bin/busybox
lrwxrwxrwx    1 root     0               16 Nov 11  2013 /mnt/bin/sha1sum -> /mnt/bin/busybox
lrwxrwxrwx    1 root     0               16 Nov 11  2013 /mnt/bin/sha256sum -> /mnt/bin/busybox
lrwxrwxrwx    1 root     0               16 Nov 11  2013 /mnt/bin/sha512sum -> /mnt/bin/busybox
lrwxrwxrwx    1 root     0               16 Nov 11  2013 /mnt/bin/showkey -> /mnt/bin/busybox
lrwxrwxrwx    1 root     0               16 Nov 11  2013 /mnt/bin/slattach -> /mnt/bin/busybox
lrwxrwxrwx    1 root     0               16 Nov 11  2013 /mnt/bin/sleep -> /mnt/bin/busybox
lrwxrwxrwx    1 root     0               16 Nov 11  2013 /mnt/bin/smemcap -> /mnt/bin/busybox
lrwxrwxrwx    1 root     0               16 Nov 11  2013 /mnt/bin/softlimit -> /mnt/bin/busybox
lrwxrwxrwx    1 root     0               16 Nov 11  2013 /mnt/bin/sort -> /mnt/bin/busybox
lrwxrwxrwx    1 root     0               16 Nov 11  2013 /mnt/bin/split -> /mnt/bin/busybox
lrwxrwxrwx    1 root     0               16 Nov 11  2013 /mnt/bin/start-stop-daemon -> /mnt/bin/busybox
lrwxrwxrwx    1 root     0               16 Nov 11  2013 /mnt/bin/stat -> /mnt/bin/busybox
lrwxrwxrwx    1 root     0               16 Nov 11  2013 /mnt/bin/strings -> /mnt/bin/busybox
lrwxrwxrwx    1 root     0               16 Nov 11  2013 /mnt/bin/stty -> /mnt/bin/busybox
lrwxrwxrwx    1 root     0               16 Nov 11  2013 /mnt/bin/su -> /mnt/bin/busybox
lrwxrwxrwx    1 root     0               16 Nov 11  2013 /mnt/bin/sulogin -> /mnt/bin/busybox
lrwxrwxrwx    1 root     0               16 Nov 11  2013 /mnt/bin/sum -> /mnt/bin/busybox
lrwxrwxrwx    1 root     0               16 Nov 11  2013 /mnt/bin/sv -> /mnt/bin/busybox
lrwxrwxrwx    1 root     0               16 Nov 11  2013 /mnt/bin/svlogd -> /mnt/bin/busybox
lrwxrwxrwx    1 root     0               16 Nov 11  2013 /mnt/bin/swapoff -> /mnt/bin/busybox
lrwxrwxrwx    1 root     0               16 Nov 11  2013 /mnt/bin/swapon -> /mnt/bin/busybox
lrwxrwxrwx    1 root     0               16 Nov 11  2013 /mnt/bin/switch_root -> /mnt/bin/busybox
lrwxrwxrwx    1 root     0               16 Nov 11  2013 /mnt/bin/sync -> /mnt/bin/busybox
lrwxrwxrwx    1 root     0               16 Nov 11  2013 /mnt/bin/sysctl -> /mnt/bin/busybox
lrwxrwxrwx    1 root     0               16 Nov 11  2013 /mnt/bin/syslogd -> /mnt/bin/busybox

Code: Select all

root@tv:/mnt # ls -al /bin/s*
lrwxrwxrwx    1 root     0                7 Sep 10  2013 /bin/sed -> busybox
lrwxrwxrwx    1 root     0                7 Sep 10  2013 /bin/sh -> busybox
lrwxrwxrwx    1 root     0                7 Sep 10  2013 /bin/sleep -> busybox
lrwxrwxrwx    1 root     0                7 Sep 10  2013 /bin/stty -> busybox
lrwxrwxrwx    1 root     0                7 Sep 10  2013 /bin/sync -> busybox
sectroyer
Official SamyGO Developer
Posts: 6305
Joined: Wed May 04, 2011 5:10 pm

Re: Fixing SamyGO telnet/SSH/SCP/bash on C/D/E/F series

Post by sectroyer »

First of all you have /mnt/bin/sh:

Code: Select all

lrwxrwxrwx    1 root     0               16 Nov 11  2013 /mnt/bin/sh -> /mnt/bin/busybox
. Always use this. Don't use /bin/sh!!!
Secondly you didn't run and/or didn't inform me that this command failed:

Code: Select all

ln -s /mnt/opt/privateer/usr/sbin/dropbearmulti /mnt/opt/privateer/usr/sbin/dropbear
If you keep on giving me wrong information and not doing what I ask we won't get far... Fix it!!!
I do NOT support "latest fw" at ALL. If you have one you should block updates on router and wait for it to STOP being "latest":)
If you want me to help you please paste FULL log(s) to "spoiler"/"code" bbcodes or provide link(s) to pasted file(s) on https://pastebin.com Otherwise "NO HELP"!!!
If you want root DISABLE internet access to your device!!!!
DO NOT EVER INSTALL FIRMWARE UPGRADE !!!!
bobiturboto
SamyGO Project Donor
Posts: 489
Joined: Sun Mar 23, 2014 8:15 pm
Location: Bulgaria

Re: Fixing SamyGO telnet/SSH/SCP/bash on C/D/E/F series

Post by bobiturboto »

sectroyer wrote:First of all you have /mnt/bin/sh:

Code: Select all

lrwxrwxrwx    1 root     0               16 Nov 11  2013 /mnt/bin/sh -> /mnt/bin/busybox
. Always use this. Don't use /bin/sh!!!
Secondly you didn't run and/or didn't inform me that this command failed:

Code: Select all

ln -s /mnt/opt/privateer/usr/sbin/dropbearmulti /mnt/opt/privateer/usr/sbin/dropbear
If you keep on giving me wrong information and not doing what I ask we won't get far... Fix it!!!

Code: Select all

root@tv:/mnt # ln -s /mnt/opt/privateer/usr/sbin/dropbearmulti /mnt/opt/privatee
r/usr/sbin/dropbear
ln: /mnt/opt/privateer/usr/sbin/dropbear: File exists
Ok I need to fix this

Code: Select all

ls -al /mnt/opt/privateer/usr/sbin/dropbear
-rwxrwxrwx    1 root     0           277252 Jun 11  2012 /mnt/opt/privateer/usr/sbin/dropbear
Last edited by bobiturboto on Sun Jun 22, 2014 2:35 pm, edited 1 time in total.
sectroyer
Official SamyGO Developer
Posts: 6305
Joined: Wed May 04, 2011 5:10 pm

Re: Fixing SamyGO telnet/SSH/SCP/bash on C/D/E/F series

Post by sectroyer »

bobiturboto wrote:
sectroyer wrote:First of all you have /mnt/bin/sh:

Code: Select all

root@tv:/mnt # ln -s /mnt/opt/privateer/usr/sbin/dropbearmulti /mnt/opt/privatee
r/usr/sbin/dropbear
ln: /mnt/opt/privateer/usr/sbin/dropbear: File exists
Yeah now I know... But If you would have done it at beginning we would already finished... Run this:

Code: Select all

rm /mnt/opt/privateer/usr/sbin/dropbear
ln -s /mnt/opt/privateer/usr/sbin/dropbearmulti /mnt/opt/privateer/usr/sbin/dropbear
ls -l /mnt/opt/privateer/usr/sbin/dropbear*
dropbear --help
ls /mnt/etc/init.d/
Post the results.
I do NOT support "latest fw" at ALL. If you have one you should block updates on router and wait for it to STOP being "latest":)
If you want me to help you please paste FULL log(s) to "spoiler"/"code" bbcodes or provide link(s) to pasted file(s) on https://pastebin.com Otherwise "NO HELP"!!!
If you want root DISABLE internet access to your device!!!!
DO NOT EVER INSTALL FIRMWARE UPGRADE !!!!
bobiturboto
SamyGO Project Donor
Posts: 489
Joined: Sun Mar 23, 2014 8:15 pm
Location: Bulgaria

Re: Fixing SamyGO telnet/SSH/SCP/bash on C/D/E/F series

Post by bobiturboto »

Code: Select all

root@tv:/mnt # ls -l /mnt/opt/privateer/usr/sbin/dropbear*
lrwxrwxrwx    1 root     0               41 Jun 22 13:38 /mnt/opt/privateer/usr/sbin/dropbear -> /mnt/opt/privateer/usr/sbin/dropbearmulti
-rwxrwxrwx    1 root     0           277252 Jun 11  2012 /mnt/opt/privateer/usr/sbin/dropbearconvert
-rwxrwxrwx    1 root     0           277252 Jun 11  2012 /mnt/opt/privateer/usr/sbin/dropbearkey
-rwxrwxrwx    1 root     0           396604 Jun 21 19:11 /mnt/opt/privateer/usr/sbin/dropbearmulti

Code: Select all

root@tv:/mnt # dropbear --help
Unknown argument --help
Dropbear sshd v2011.54
Usage: dropbear [options]
Options are:
-b bannerfile   Display the contents of bannerfile before user login
                (default: none)
-d dsskeyfile   Use dsskeyfile for the DSS host key
                (default: /etc/dropbear/dropbear_dss_host_key)
-r rsakeyfile   Use rsakeyfile for the RSA host key
                (default: /mtd_rwarea/./dropbear_rsa_host_key)
-F              Don't fork into background
-E              Log to stderr rather than syslog
-m              Don't display the motd on login
-w              Disallow root logins
-s              Disable password logins
-g              Disable password logins for root
-j              Disable local port forwarding
-k              Disable remote port forwarding
-a              Allow connections to forwarded ports from any host
-p [address:]port
                Listen on specified tcp port (and optionally address),
                up to 10 can be specified
                (default port is 22 if none specified)
-P PidFile      Create pid file PidFile
                (default /dtv/././dropbear.pid)
-i              Start for inetd
-W <receive_window_buffer> (default 24576, larger may be faster, max 1MB)
-K <keepalive>  (0 is never, default 0, in seconds)
-I <idle_timeout>  (0 is never, default 0, in seconds)

Code: Select all

root@tv:/mnt # ls /mnt/etc/init.d/
01_01_catch_crap.init                  04_04_samba.init
01_02_telnet.init                      04_04_samba.init.dis.orig
01_03_hotplug.init.dis                 04_04_sshfs.init.dis
01_04_server_replacement.init.dis      04_09_rar2fs.init.dis
01_05_framebuffer.init.dis             06_05_apache.init
01_05_hiddev.init.dis                  06_05_bb_httpd.init.dis
02_04_replace_wifi_mod.init.dis        06_05_samba-server.init
02_04_vusb.init                        06_05_vsftp.init.dis
02_04_vusb.init.remi71                 06_06_obexpush.init.dis
02_06_crypto_load.init                 07_11_ntpclient.init.dis
02_10_wakelan.init.dis                 30_09_xserver.init.dis
03_01_fuse.init                        70_70_arfix-sh.init.dis
03_01_libOSCAM.init                    80_80_record_to_nwshare.init.kayaweed
03_01_libOSCAM.init.dis                80_80_record_to_nwshare.init.remi71
03_03_djmount.init.dis                 90_90_injectso.init.dis
03_03_nfsmount.init.dis                90_90_loadGameMains.init.dis
03_03_nfsmount.init.remi71             999_999_skeleton.init.dis
03_03_sshd.init                        99_98_transmissionbt.init
03_03_sshd.init.dis                    99_98_transmissionbt.init.dis
03_03_udpxy.init.dis                   99_99_ChannInfoON.init
03_04_xupnpd.init.dis                  99_99_InfoBannerDuration.init
04_04_curlftp.init.dis                 99_99_PVRAnyDev.init
04_04_fusesmb.init.dis                 99_99_RCremap.init.dis
04_04_httpfs.init.dis                  99_99_SleepTimer.init
sectroyer
Official SamyGO Developer
Posts: 6305
Joined: Wed May 04, 2011 5:10 pm

Re: Fixing SamyGO telnet/SSH/SCP/bash on C/D/E/F series

Post by sectroyer »

Reboot and check if ssh works :)
I do NOT support "latest fw" at ALL. If you have one you should block updates on router and wait for it to STOP being "latest":)
If you want me to help you please paste FULL log(s) to "spoiler"/"code" bbcodes or provide link(s) to pasted file(s) on https://pastebin.com Otherwise "NO HELP"!!!
If you want root DISABLE internet access to your device!!!!
DO NOT EVER INSTALL FIRMWARE UPGRADE !!!!
bobiturboto
SamyGO Project Donor
Posts: 489
Joined: Sun Mar 23, 2014 8:15 pm
Location: Bulgaria

Re: Fixing SamyGO telnet/SSH/SCP/bash on C/D/E/F series

Post by bobiturboto »

sectroyer wrote:Reboot and check if ssh works :)
Still doesn't work.

Code: Select all

users-MacBook:~ user$ ssh root@192.168.0.101
root@192.168.0.101's password: 
Permission denied, please try again.
sectroyer
Official SamyGO Developer
Posts: 6305
Joined: Wed May 04, 2011 5:10 pm

Re: Fixing SamyGO telnet/SSH/SCP/bash on C/D/E/F series

Post by sectroyer »

bobiturboto wrote:
sectroyer wrote:Reboot and check if ssh works :)
Still doesn't work.

Code: Select all

users-MacBook:~ user$ ssh root@192.168.0.101
root@192.168.0.101's password: 
Permission denied, please try again.

Code: Select all

ps aux | dropbear
You are doing something wrong... You had this error previously and no drop bear was even running... What do you use for password?
I do NOT support "latest fw" at ALL. If you have one you should block updates on router and wait for it to STOP being "latest":)
If you want me to help you please paste FULL log(s) to "spoiler"/"code" bbcodes or provide link(s) to pasted file(s) on https://pastebin.com Otherwise "NO HELP"!!!
If you want root DISABLE internet access to your device!!!!
DO NOT EVER INSTALL FIRMWARE UPGRADE !!!!
bobiturboto
SamyGO Project Donor
Posts: 489
Joined: Sun Mar 23, 2014 8:15 pm
Location: Bulgaria

Re: Fixing SamyGO telnet/SSH/SCP/bash on C/D/E/F series

Post by bobiturboto »

Code: Select all

root@tv:/mnt # ps aux | dropbear
root@tv:/mnt #
I am using for the password: SamyGO

Code: Select all

root@tv:/mnt # login root
Password: 
root@tv:/mnt $ 

Post Reply

Return to “[F] Software”