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-01-25 20:25:07

marcbidon
New member
Registered: 2008-01-25
Posts: 3

shell for DNS-313

Hi everybody,

I'm searching a shell for this NAS. By default, the shell associated to my user is /bin/sh wich is busybox. But when I try to telnet to it, I've the busybox banner, but I never obtain a prompt. Could someone have a compiled version of busybox (or another shell) for this NAS?

Many thanks indvance for your help.

Offline

 

#2 2008-01-26 12:33:36

trasgu
Member
Registered: 2007-11-22
Posts: 12

Re: shell for DNS-313

Type 5784468 and you'll get a prompt.

Offline

 

#3 2008-01-26 22:16:40

marcbidon
New member
Registered: 2008-01-25
Posts: 3

Re: shell for DNS-313

Youpiiii!!! Many thanks for help. It works fine now.
If it interest someone, I can explain how to start automatically a process with this NAS.

Thanks again.

Regards.

Last edited by marcbidon (2008-01-26 22:35:37)

Offline

 

#4 2008-01-27 08:25:25

jako
Member
Registered: 2008-01-27
Posts: 8

Re: shell for DNS-313

Yes, please do!

Offline

 

#5 2008-01-28 01:00:33

lothalev
Member
Registered: 2007-12-09
Posts: 14

Re: shell for DNS-313

...but if You upgrade 313's firmware to 1.01, telnet becomes disabled, so you can't just log in. Telnet can be, however, re-enabled using fun_plug smile

Unfortunately, 1.01 still doesn't bring power management (disk spindown) to DNS-313...

Offline

 

#6 2008-01-28 01:11:49

trasgu
Member
Registered: 2007-11-22
Posts: 12

Re: shell for DNS-313

Hi lothalev,

have you a DNS-313 fun_plug version like fonz's one? It will be great.

Regards,

Trasgu

Offline

 

#7 2008-01-28 10:23:45

jako
Member
Registered: 2008-01-27
Posts: 8

Re: shell for DNS-313

This will fix the telnet problem and give you some boot up info. Just put it in an executable file named fun_plug in the root of your attached drive:

#!/bin/sh
#
# Simple fun_plug
#
dmesg > /mnt/HD_a2/dmesg.out
/usr/sbin/xinetd -stayalive -reuse -pidfile /tmp/xinetd.pid &

Offline

 

#8 2008-01-28 10:44:40

marcbidon
New member
Registered: 2008-01-25
Posts: 3

Re: shell for DNS-313

Hi,
I have a DNS-313 with firmware 1.01b6. My problematic was to have a telnet access wich has been removed by Dlink on the firmware version I have (with the original firmware, this access was possible). I've tryed more times to use a file called fun_plug with the launch of xinetd but without any success.
So, I've found an alternative solution :
-on the Maintenance/System page of the web configuration interface, on the "configuration settings" area save the current config.
-On the saved file, you can find a lot of interestings things and precisely I've added the line
     "/usr/sbin/xinetd -stayalive -reuse -pidfile /tmp/xinetd.pid &" after the DHCP launch.
-After that, simply upload the modified file and now, you've a telnet access (sure after the reboot ;-) .

Hope it helps.

Offline

 

#9 2008-01-29 23:58:00

lothalev
Member
Registered: 2007-12-09
Posts: 14

Re: shell for DNS-313

@marcbidon:
I tried this method on 1.00 to mount an ext2 partition instead of NTFS by default. It worked, but adding a line to configuration file broke DNS-313 configuration in several places (eg. device would not set its name, statistics page would display errors and so on).

Does modifying this configuration on 1.01 work correctly? This would enable us to do a whole bunch of system modifications even _before_ the main hard disk partition gets mounted!

I'm gonna just try it smile

Offline

 

#10 2008-01-30 21:55:51

naffarin
Member
Registered: 2008-01-28
Posts: 47

Re: shell for DNS-313

i would suppose that it depends on where you enter the line, lothalev smile

e.g. placing the xinetd line is best IMHO in the section after nameserver

Code:

;nameserver 192.168.0.1
;#!/bin/sh

/sbin/ifconfig egiga0 192.168.0.6  netmask 255.255.255.0
route add default gw 192.168.0.1
HOSTNAME='daten_extern'
echo "Setting hostname .... $HOSTNAME"
/bin/hostname $HOSTNAME
/usr/sbin/xinetd -stayalive -reuse -pidfile /tmp/xinetd.pid &

But the partitions are mounted before that script runs. Anyway you can easily change the fiel /etc/mtab to mount something else than the default ufsd filesystem for the main data partition when you have enabled telnet access.

Offline

 

#11 2008-01-30 23:29:15

Alind
Member
Registered: 2008-01-01
Posts: 6

Re: shell for DNS-313

The problem is that I don't know how to Telnet from a Windows XP computer?


Since I run 1.01 firmware, I have added the fun_plug file according to Jako above and restarted the NAS.
I use the HyperTerminal of Windows XP and write the IP-address of my DNS-313. Port number defaults to 23.
I just get "Unable to connect to 192.168.0.8 port 23" response back.

What am I doing wrong?

Offline

 

#12 2008-01-31 16:31:27

craft
Member
From: Budapest, Hungary
Registered: 2007-06-14
Posts: 122
Website

Re: shell for DNS-313

I'm using the 1.01b06 fw

try to open in browser :
http://"dns-313_ipaddress"/web/telnetd.asp


-------------------------------------------------------------------------------------------------------------------------------------------
2 x DNS-320
1 x DNS-325

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB