DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2008-05-31 00:34:05

jrusso
Member
Registered: 2008-05-30
Posts: 19

After installing Twonky can i then disable the fun plug telnet service

I installed twonky but no longer need the telnet service started by fun plug... how can i stop telnet and only keep twonky going????

Offline

 

#2 2008-05-31 00:37:27

bq041
Member
From: USA
Registered: 2008-03-19
Posts: 709

Re: After installing Twonky can i then disable the fun plug telnet service

telnet in and:

Code:

/ # chmod 644 /ffp/start/telnetd.sh

Then reboot.


DNS-323     F/W: 1.04b84  H/W: A1  ffp: 0.5  Drives: 2X 400 GB Seagate SATA-300
DNS-323     F/W: 1.05b28  H/W: B1  ffp: 0.5  Drives: 2X 1 TB  WD SATA-300
DSM-G600   F/W: 1.02       H/W: B                Drive:  500 GB WD ATA

Offline

 

#3 2008-05-31 00:42:31

jrusso
Member
Registered: 2008-05-30
Posts: 19

Re: After installing Twonky can i then disable the fun plug telnet service

i entered that line of code

no confirmation message came up just another / #

does this mean it worked.... i rebooted can i check to see if it's shut off... and if i need to re-activate how do i do that????

Offline

 

#4 2008-05-31 00:46:01

KyleK
Member
From: Dresden, Germany
Registered: 2007-12-05
Posts: 1178

Re: After installing Twonky can i then disable the fun plug telnet service

No confirmation means it worked. Next time you reboot Telnet will not be started.
Reactivation is quite difficult though (it's possible either via a special php page if you have lighttpd installed, or you need to put the fun_plug.tgz back on the device)

Why do you want to disable telnet anyway? If its for security reasons, I suggest enabling ssh instead (needs a bit of setup) and then disabling telnet.

Offline

 

#5 2008-05-31 00:48:51

bq041
Member
From: USA
Registered: 2008-03-19
Posts: 709

Re: After installing Twonky can i then disable the fun plug telnet service

You can reactivate it really easy via ftp.  chmod is a command that ftp can send.

From command line ftp:

Code:

quote chmod 755 /ffp/start/telnetd.sh

assuming that the ftp root is set to Volume_1.

Last edited by bq041 (2008-05-31 00:51:42)


DNS-323     F/W: 1.04b84  H/W: A1  ffp: 0.5  Drives: 2X 400 GB Seagate SATA-300
DNS-323     F/W: 1.05b28  H/W: B1  ffp: 0.5  Drives: 2X 1 TB  WD SATA-300
DSM-G600   F/W: 1.02       H/W: B                Drive:  500 GB WD ATA

Offline

 

#6 2008-05-31 00:49:27

jrusso
Member
Registered: 2008-05-30
Posts: 19

Re: After installing Twonky can i then disable the fun plug telnet service

well it was for security reasons, but i already turned it off... i only really cared about twonky working for streaming to my xbox... don't know much about the possibilities of telnet or ssh, is there any real reason i would need telnet if my main use for the nas is streaming and storing media???

Offline

 

#7 2008-05-31 00:51:16

jrusso
Member
Registered: 2008-05-30
Posts: 19

Re: After installing Twonky can i then disable the fun plug telnet service

i use flash fxp to ftp to the nas how do i send the chmod code and what is the actual code???

Offline

 

#8 2008-05-31 00:54:32

bq041
Member
From: USA
Registered: 2008-03-19
Posts: 709

Re: After installing Twonky can i then disable the fun plug telnet service

I don't use flash fxp, so I do not know.  What OS are you using.  Most come with a command line ftp that is easy for this.


DNS-323     F/W: 1.04b84  H/W: A1  ffp: 0.5  Drives: 2X 400 GB Seagate SATA-300
DNS-323     F/W: 1.05b28  H/W: B1  ffp: 0.5  Drives: 2X 1 TB  WD SATA-300
DSM-G600   F/W: 1.02       H/W: B                Drive:  500 GB WD ATA

Offline

 

#9 2008-05-31 00:56:19

jrusso
Member
Registered: 2008-05-30
Posts: 19

Re: After installing Twonky can i then disable the fun plug telnet service

windows xp.... do i just use the ftp command in run...

Offline

 

#10 2008-05-31 01:06:02

bq041
Member
From: USA
Registered: 2008-03-19
Posts: 709

Re: After installing Twonky can i then disable the fun plug telnet service

No.  At run type cmd and hit enter.  This will open a command shell for XP.  At the command prompt do the following:
type: ftp <ip-address-of-DNS>  -- Do not include the <>
enter a valid login name
enter a valid password
type: ls and hit enter  -- This will list the contents.  You should see the ffp directory if this user's root directory is Volume_1.
type: quote chmod 755 /ffp/start/telnetd.sh
type: quit
type: exit

Just make sure you set up a user on the ftp to have a root of Volume_1 first.


DNS-323     F/W: 1.04b84  H/W: A1  ffp: 0.5  Drives: 2X 400 GB Seagate SATA-300
DNS-323     F/W: 1.05b28  H/W: B1  ffp: 0.5  Drives: 2X 1 TB  WD SATA-300
DSM-G600   F/W: 1.02       H/W: B                Drive:  500 GB WD ATA

Offline

 

#11 2008-05-31 01:15:50

jrusso
Member
Registered: 2008-05-30
Posts: 19

Re: After installing Twonky can i then disable the fun plug telnet service

everything works up to chmod request says "could not change perms on ffp/start/telnetd.sh operation not permitted" my user has read write permission to volume 1 so i don't know why i'm getting that???

Offline

 

#12 2008-05-31 01:40:33

bq041
Member
From: USA
Registered: 2008-03-19
Posts: 709

Re: After installing Twonky can i then disable the fun plug telnet service

Sorry about that.  From your first post, I didn't know you were going to turn it back on, so I left out a step.  No problem, though.  Here is what you need to do.  Drop the attached file on your Volume_1 and reboot.  This is a special fun_plug.tgz that will put in only the telnet.  Let me know what happens.  Once this is done, telnet in and do this before disabling telnet

Code:

 chown <valid-user-name> /ffp/start/telnetd.sh

Then you can chmod it off and will be able to turn it back on via ftp.


Attachments:
Attachment Icon fun_plug.tgz, Size: 227 bytes, Downloads: 3,317

DNS-323     F/W: 1.04b84  H/W: A1  ffp: 0.5  Drives: 2X 400 GB Seagate SATA-300
DNS-323     F/W: 1.05b28  H/W: B1  ffp: 0.5  Drives: 2X 1 TB  WD SATA-300
DSM-G600   F/W: 1.02       H/W: B                Drive:  500 GB WD ATA

Offline

 

#13 2008-05-31 06:38:50

jrusso
Member
Registered: 2008-05-30
Posts: 19

Re: After installing Twonky can i then disable the fun plug telnet service

will this affect or conflict with the fun plug i already installed... or will it just add a line to the already existing fun plug file to re open telnet... in my mind i see the new tgz file unpacking upon reboot and messing with the existing ffp directory... but i'm probably wrong... just to be sure i just drop the attatched file into volume_1 reboot and everything will still be the same only telnet will be re-activated??? i don't want to have to reinstall twonky or anything...

Offline

 

#14 2008-05-31 07:52:58

bq041
Member
From: USA
Registered: 2008-03-19
Posts: 709

Re: After installing Twonky can i then disable the fun plug telnet service

Not exactly.  Inside this .tgz file is 1 file, telnetd.sh.  When fun_plug sees the .tgz file, it will overwrite the telnet script with an active one.  It does nothing more.


DNS-323     F/W: 1.04b84  H/W: A1  ffp: 0.5  Drives: 2X 400 GB Seagate SATA-300
DNS-323     F/W: 1.05b28  H/W: B1  ffp: 0.5  Drives: 2X 1 TB  WD SATA-300
DSM-G600   F/W: 1.02       H/W: B                Drive:  500 GB WD ATA

Offline

 

#15 2008-08-13 23:03:41

jrusso
Member
Registered: 2008-05-30
Posts: 19

Re: After installing Twonky can i then disable the fun plug telnet service

This did not work.... when i go to putty click telnet put my dns ip address and try and open a telnet connection a blank dos prompt looking window opens followed by the usual windows error sound and instantly closes...

Offline

 

#16 2008-08-13 23:21:07

jrusso
Member
Registered: 2008-05-30
Posts: 19

Re: After installing Twonky can i then disable the fun plug telnet service

I was able to get the message for closing.... when i try to connect it says "connection closed by remote host"  then "Network Error: connection refused" ...

Offline

 

#17 2008-08-13 23:25:25

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: After installing Twonky can i then disable the fun plug telnet service

bq041 wrote:

the attached file

... is a really good idea, and a perfect recovery tool.

Offline

 

#18 2008-08-13 23:47:24

jrusso
Member
Registered: 2008-05-30
Posts: 19

Re: After installing Twonky can i then disable the fun plug telnet service

I've dropped your attached file into volume 1 on my 323 then reboot it... next i go to putty and try to connect and get the connection refused error... am i missing a step somewhere??? thanks for your help

Offline

 

#19 2008-08-14 00:08:13

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: After installing Twonky can i then disable the fun plug telnet service

jrusso wrote:

I've dropped your attached file into volume 1 on my 323 then reboot it... next i go to putty and try to connect and get the connection refused error... am i missing a step somewhere??? thanks for your help

Please check the ffp.log file. Post the lines at the end of the file, starting from '* Running /ffp/etc/rc ...'.

Offline

 

#20 2008-08-14 00:19:50

jrusso
Member
Registered: 2008-05-30
Posts: 19

Re: After installing Twonky can i then disable the fun plug telnet service

sorry my find tool in notepad gave me the first running and no others so i posted from there.... i see now you only need the end...

Offline

 

#21 2008-08-14 00:21:48

jrusso
Member
Registered: 2008-05-30
Posts: 19

Re: After installing Twonky can i then disable the fun plug telnet service

* Running /ffp/etc/rc ...
* /ffp/start/rcS.sh ...
utmp:x:22:
* /ffp/start/adjtimex.sh inactive
* /ffp/start/passwd.sh ...
Saving /etc/passwd to /etc/passwd.orig ...
Changing shells: /bin/sh -> /ffp/bin/sh ...
Updating /etc/shadow ...
* /ffp/start/shells.sh ...
* /ffp/start/syslogd.sh inactive
* /ffp/start/SERVERS.sh inactive
* /ffp/start/usbdisk.sh inactive
* /ffp/start/portmap.sh inactive
* /ffp/start/unfsd.sh inactive
* /ffp/start/nfsd.sh inactive
* /ffp/start/ntpd.sh inactive
* /ffp/start/LOGIN.sh inactive
* /ffp/start/telnetd.sh inactive
* /ffp/start/sshd.sh inactive
* /ffp/start/rsyncd.sh inactive
* /ffp/start/mediatomb.sh inactive
* /ffp/start/kickwebs.sh inactive
* /ffp/start/lighttpd.sh inactive
* /ffp/start/inetd.sh inactive
*  OK
killall: No such file or directory
killall: No such file or directory
TwonkyMedia Version 4.4.5
**** fun_plug script for DNS-323 (2008-04-13 tp@fonz.de) ****
Wed Aug 13 15:04:24 GMT 2008
ln -snf /mnt/HD_a2/ffp /ffp
* Installing /mnt/HD_a2/fun_plug.tgz ...
mnt/HD_a2/ffp/start/telnetd.sh
tar: Unrecognised file type
* Running /ffp/etc/rc ...
* /ffp/start/rcS.sh ...
utmp:x:22:
* /ffp/start/adjtimex.sh inactive
* /ffp/start/passwd.sh ...
Saving /etc/passwd to /etc/passwd.orig ...
Changing shells: /bin/sh -> /ffp/bin/sh ...
Updating /etc/shadow ...
* /ffp/start/shells.sh ...
* /ffp/start/syslogd.sh inactive
* /ffp/start/SERVERS.sh inactive
* /ffp/start/usbdisk.sh inactive
* /ffp/start/portmap.sh inactive
* /ffp/start/unfsd.sh inactive
* /ffp/start/nfsd.sh inactive
* /ffp/start/ntpd.sh inactive
* /ffp/start/LOGIN.sh inactive
* /ffp/start/telnetd.sh inactive
* /ffp/start/sshd.sh inactive
* /ffp/start/rsyncd.sh inactive
* /ffp/start/mediatomb.sh inactive
* /ffp/start/kickwebs.sh inactive
* /ffp/start/lighttpd.sh inactive
* /ffp/start/inetd.sh inactive
*  OK

Offline

 

#22 2008-08-14 00:27:18

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: After installing Twonky can i then disable the fun plug telnet service

jrusso wrote:

**** fun_plug script for DNS-323 (2008-04-13 tp@fonz.de) ****
Wed Aug 13 15:04:24 GMT 2008
ln -snf /mnt/HD_a2/ffp /ffp
* Installing /mnt/HD_a2/fun_plug.tgz ...
mnt/HD_a2/ffp/start/telnetd.sh
tar: Unrecognised file type

Try the attached fun_plug.tgz. bq041 made a small mistake. fun_plug.tgz must not contain the full path /mnt/HD_a2/..., but only subdirectories of /ffp. Also it should be packed with a sufficiently old version of tar (e.g. tar-1.13) for compatibility with the firmware tar.

Code:

$ tar tzvf fun_plug.tgz 
drwxr-xr-x root/root         0 2008-08-13 22:27 start/
-rwxr-xr-x root/root       169 2008-04-19 14:26 start/telnetd.sh

Attachments:
Attachment Icon fun_plug.tgz, Size: 252 bytes, Downloads: 6,029

Offline

 

#23 2008-08-14 00:34:52

jrusso
Member
Registered: 2008-05-30
Posts: 19

Re: After installing Twonky can i then disable the fun plug telnet service

tried with your file still getting same error...

Offline

 

#24 2008-08-14 00:40:10

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: After installing Twonky can i then disable the fun plug telnet service

jrusso wrote:

tried with your file still getting same error...

Sorry, please try again. I've replaced the attached tarball above with a new version.

Offline

 

#25 2008-08-14 00:46:28

jrusso
Member
Registered: 2008-05-30
Posts: 19

Re: After installing Twonky can i then disable the fun plug telnet service

Worked like a charm thanks a lot... is it a big security risk to leave telnet enabled... or is it not such a big deal??? also one other question i just ordered the new model of popcorn hour and was wondering if you knew whether it will simply pick up the dns 323 shared folders over the network or are there steps to be taken??? thanks again for your help

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB