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 2006-12-19 22:16:15

gkaufman
Member
Registered: 2006-12-13
Posts: 6

Telnet

Has anyone achieved Telnet access to the DNS-323?

If so, I'd like to  learn now!

- Gary

Offline

 

#2 2006-12-19 22:27:43

levring
Member
From: Denmark
Registered: 2006-12-16
Posts: 30
Website

Re: Telnet

Agree..

I have followed the guide for the DSM-G600, but used the files on http://dns323.info/.

The telnet starts.. I can connect.. but drops the connection right after. No chance to enter username and password.

/Jonas

Offline

 

#3 2006-12-19 22:50:04

KRH
Member
From: Denmark
Registered: 2006-10-27
Posts: 219
Website

Re: Telnet

i have just moved and have some files on my workstation somewhere i have to find then and try to upload it whit some info.

where hoping i got the unit before i moved budt did not get it.... sad


First user to fun_plug the dns-323.

Offline

 

#4 2006-12-21 12:37:49

hahel
New member
From: Luleå, Sweden
Registered: 2006-12-21
Posts: 3

Re: Telnet

Has any one managed to get fun_plug stuff executing at all ?

I've copied the DNS-323 fun_plug script to HD_a2/ using filezilla(FTP) and set the permissions to 777.
Also copied created HD_a2/lnx_bin and extracted the utelnetd archive here.

In an attempt to analyze things iv'e modified the fun_plug to write a primitive log to a file

-----------------------Snip-----------------------
cd $directory
for file in $( find $directory -type f -name '*.startup' | sort )
do
  echo "Starting "$file >./fun_plug.log 
   $file
  # Run the file
done 
---------------------Snap--------------------------

After reboot i get no telnet, and no logfile.

Any suggestions ?

Offline

 

#5 2006-12-21 13:24:20

KRH
Member
From: Denmark
Registered: 2006-10-27
Posts: 219
Website

Re: Telnet

here is the files i have been using
http://sconk.se/dns323/dns-323.rar

it starts a telnetd whit no password and only allows on connection there is also netcat to windows i the rar.


First user to fun_plug the dns-323.

Offline

 

#6 2006-12-21 16:11:53

hahel
New member
From: Luleå, Sweden
Registered: 2006-12-21
Posts: 3

Re: Telnet

Thanks KRH!

That worked, i'm logged in on the box right now. :-)

Has any one tried to join a Windows domain with this box? it should be possible since it's using samba??

Offline

 

#7 2006-12-31 00:51:14

gkaufman
Member
Registered: 2006-12-13
Posts: 6

Re: Telnet

I haven't been able to establish a telnet session to the DNS-323.  Can anyone give me some specific instructions.  Many thanks!

- Gary

Offline

 

#8 2006-12-31 14:15:32

sala
Member / Site Admin
From: Estonia
Registered: 2006-07-28
Posts: 731
Website

Re: Telnet

KRH wrote:

here is the files i have been using
http://sconk.se/dns323/dns-323.rar

it starts a telnetd whit no password and only allows on connection there is also netcat to windows i the rar.

You can also write some wiki pages, when one is done I create wiki's DNS-323 section.


DSM-G600 - NetBSD hdd-boot - 80GB Samsung SP0802N
NSA-220 - Gentoo armv5tel 20110121 hdd-boot - 2x 2TB WD WD20EADS

Offline

 

#9 2007-01-31 23:43:35

lsarrat
Member
Registered: 2007-01-31
Posts: 16

Re: Telnet

Hello,

Sorry about posting another telnet question...
I can get fun_plug script to work
I downloaded in the download section the utelnetd
I chmod 777 utelnetd
When I telnet the dns 323, it hangs up and drop the connection when I type any key ?

Do I have the right utelnet binary ?

Rgds,

Laurent

Offline

 

#10 2007-02-01 00:02:35

lsarrat
Member
Registered: 2007-01-31
Posts: 16

Re: Telnet

Pb resolved by downloading http://home.sconk.se:8080/dns323/dns-323.rar
I read the posts on the forum, but I was unable to get the file with Firefox...done with ie ;-)

Laurent

Offline

 

#11 2007-02-01 00:17:22

someguy
Member
Registered: 2007-01-17
Posts: 47

Re: Telnet

Hi, like @gkaufman and @levring above, I, too was having trouble with telnet dropping (using the original dns323.info files).  Everything works great for me when I use the script that calls "nc".

But I still am curious why the original files from dns323.info didn't work.. thanks everyone!

Last edited by someguy (2007-02-02 21:30:54)

Offline

 

#12 2007-02-02 22:22:23

odelsteken
Member
From: Stockholm, Sweden
Registered: 2007-02-02
Posts: 6

Re: Telnet

OK, I'm new to this and I'm so close, but at the same time, so far away. sad

I've installed the fun_plug and it seems to be working, but the problem starts when I try to login with the root user.

This is what I get:

stdin, stdout, etderr: 0 1 2

BusyBox v1.2.1 (2006.10.30-10:27+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

# login

FILSERVER login:
FILSERVER login: root

Password:

BusyBox v1.00-pre1 (2006.10.27-12:29+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

After that line I can't get anything to work. Isn't it weird that I get a older version of BusyBox when I login?

Offline

 

#13 2007-02-03 08:21:42

Apskaft
Member
From: Karlskrona, Sweden
Registered: 2007-01-09
Posts: 165

Re: Telnet

Actually, you're already there. When you see the firts '#', you're in. No login needed. Just ls -l ....;-)

Offline

 

#14 2007-02-03 16:20:43

odelsteken
Member
From: Stockholm, Sweden
Registered: 2007-02-02
Posts: 6

Re: Telnet

Aha! smile Then this brings me to another question; I need to add some IP address in ftpaccess. How can I do this?

Offline

 

#15 2007-02-03 19:04:36

joisey04
Member
Registered: 2007-01-25
Posts: 7

Re: Telnet

Hello,
there is no ha_a2 directory on my dns-323
I ftp in with terminal ftp from my mac and can only see the same as from a normal windows share...
could anyone please help me how to get the funplug with telnet installed?
Thanks
Martin

Offline

 

#16 2007-02-03 22:07:28

Apskaft
Member
From: Karlskrona, Sweden
Registered: 2007-01-09
Posts: 165

Re: Telnet

odelsteken wrote:

Aha! smile Then this brings me to another question; I need to add some IP address in ftpaccess. How can I do this?

Either by using vi, which is quite hard for the noob. Or, copy the file /mnt/HD_a2/. and edit it using a proper editor on your windows system (e.g. UltraEdit) and then copy the file back.
And; I must warn you - if you've never used vi, please read some before using it. Some claims vi to be the one and only editor - others just hate it. The thing about vi is stat it's ALWAYS presenten.

And, joisey04, /mnt/HD_a2 is what you seen when you have the fun_plug installed and telnet to the unit. It represents \\Volume_1 on a 1.02 unit and HDD_1 on a 1.01 unit.

/Apan

Offline

 

#17 2007-02-04 00:30:06

KRH
Member
From: Denmark
Registered: 2006-10-27
Posts: 219
Website

Re: Telnet

kind off topic

dont use UltraEdit use notepad++ its free and much better.

Last edited by KRH (2007-02-04 00:30:30)


First user to fun_plug the dns-323.

Offline

 

#18 2007-02-04 01:39:45

skydreamer
Member
From: At the Atlantic Coast
Registered: 2007-01-06
Posts: 232

Re: Telnet

KRH: Thanks for the off topic tip, Notepad++ rocks!!! I was using UltraEdit for more than 5 years and switched to Notepad ++ in 5 minutes...!

Offline

 

#19 2007-02-06 15:37:49

Ethereal_Dragon
Member
From: USA
Registered: 2007-02-05
Posts: 55

Re: Telnet

Hi all, I am having a problem similar to some other users... (saw at least one in the telnet thread for the DMS-G600 with this issue. I tried their resolutions, but to no avail. Here is what I have gotten so far... can anyone give me a little direction here?



Here are the contents of my "fun_plug" file

#!/bin/sh
if [ ! -e /mnt/HD_a2/ash ]
then
  ln -s /mnt/HD_a2/busybox /mnt/HD_a2/ash
fi
if [ ! `grep root /etc/shadow` ]
then
  echo kontroll.`grep admin /etc/shadow` >> /etc/shadow
  /mnt/HD_a2/sed -i -e 's/kontroll.admin/root/' /etc/shadow
fi
/mnt/HD_a2/sed -i -e 's/root:.*/root:x:0:0:Linux User,,,:\/:\/mnt\/HD_a2\/ash/' /etc/passwd
cd /dev && /mnt/HD_a2/busybox makedevs ptyp c 2 0 0 9
cd /dev && /mnt/HD_a2/busybox makedevs ttyp c 3 0 0 9
/mnt/HD_a2/busybox telnetd &

dmesg > /mnt/HD_a2/dmesg.out
/mnt/HD_a2/nc -l -p 10000 -e /bin/sh &

mkdir /mnt/HD_a2/lnx_bin/
cd /mnt/HD_a2/lnx_bin/

/mnt/HD_a2/starttelnet.sh

export PATH=$PATH:/mnt/HD_a2/lnx_bin/

Here is the output of a dir command when I am FTP'd to the NAS

(lnx_bin) directory is empty, and I cannot put anything in there, I get access denied, and I don't know how to change its permissions.

ftp> dir
200 PORT command successful.
150 Opening ASCII mode data connection for directory listing.
total 1410
drwxrwxrwx  12 root root     4096 Feb  6  2007 .
drwxr-xr-x   4 root root     1024 Feb  6  2007 ..
drwxrwxrwx   2 root root     4096 Feb  6  2007 .lpd
drwx------   5 root root     4096 Feb  6  2007 .systemfile
drwxrwxrwx   2 root root     4096 Jan 10  2007 Documents
drwxrwxrwx   2 root root     4096 Feb  2  2007 FTP
drwxrwxrwx   3 root root     4096 Feb  5  2007 Installation Files
drwxrwxrwx   3 root root     4096 Jan 10  2007 Movies
drwxrwxrwx   4 root root     4096 Jan 17  2007 Music
drwxrwxrwx   4 root root     4096 Jan 10  2007 Pictures
drwxrwxrwx   2 root root     4096 Jan 26  2007 Unsorted
lrwxr-xr-x   1 root root       18 Feb  6 00:36 ash -> /mnt/HD_a2/busybox
-rwxrwxrwx   1 root root   515228 Aug 18  2006 busybox
-rw-r--r--   1 root root     5785 Feb  6  2007 dmesg.out
-rwxrwxrwx   1 root root      657 Feb  6  2007 fun_plug
drwxr-xr-x   2 root root     4096 Feb  6  2007 lnx_bin
-rwxrwxrwx   1 root root   133630 Oct 13  2006 sed
-rwxrwxrwx   1 root root       67 Oct 30  2006 utelnetd.out
226 Transfer complete.
ftp: 1040 bytes received in 0.06Seconds 16.51Kbytes/sec.
ftp>

Lastly, this is what I get when I try to telnet to the DNS-323. It gives the same result when I use the LAN or WAN IP address, wethere port 23 is forwarded to it or not, and whether or not it is in the DMZ in the router.

C:\>telnet 10.10.5.30
Connecting To 10.10.5.30...Could not open connection to the host, on port 23: Co
nnect failed


Gaming Rig: ASUS Z87-PRO (V EDITION), Intel Core i5-4590 Haswell, HyperX FURY 8GB DDR3 1866,
XFX Radeon HD 4870, SILVERSTONE DA700, Samsung 840 500Gig SSD MZ-7TD500BW, 3x WD20EARS 2 TB Green,
ASUS DRW-2014L1T (DVD), LG WH14NS40 (Blu Ray), Dell 2709W, Sony SDM-HS95P, Windows 10 Pro
The NAS Box: D-Link DNS-323, 0.1RC3 Alt-F firmware, 2x 7200.14 ST3000DM001 3TB EXT4 - NO RAID - 6 TB

Offline

 

#20 2007-02-06 16:16:06

Apskaft
Member
From: Karlskrona, Sweden
Registered: 2007-01-09
Posts: 165

Re: Telnet

Ethereal_Dragon wrote:

Can anyone give me a little direction here?

Sure, first download KRH's files. For a minimum setup, edit the fun_plug to be:

Code:

#
# Minimal fun_plug, only enables telnet
#
# Requires: /mnt/HD_a2/starttelnet.sh
#           /mnt/HD_a2/lnx_bin/busybox3
#           /mnt/HD_a2/lnx_bin/utelnetd
#

#
# Uncomment next line of you want "proof of concept". A filem dmesg.out will be located on \\NAS\HDD_1 or \\NAS\Volume_1
#

# dmesg > /mnt/HD_a2/dmesg.out
/mnt/HD_a2/starttelnet.sh

Then, copy only the following files from the KRH rar-archive to your disc:

./fun_plug
./starttelnet.sh
./lnx_bin/utelnetd
./lnx_bin/busybox3

Make sure the files are executable, and now... for something completely different:
Number 1 ... The Larch


HTH/Apan

Offline

 

#21 2007-02-07 17:19:37

Ethereal_Dragon
Member
From: USA
Registered: 2007-02-05
Posts: 55

Re: Telnet

Cool, thanks Apskaft.... I now have telnet access.... Not too sure what I will use it for, but it is there if I need it.

stdin, stdout, etderr: 0 1 2


BusyBox v1.2.1 (2006.10.30-10:27+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

#


Gaming Rig: ASUS Z87-PRO (V EDITION), Intel Core i5-4590 Haswell, HyperX FURY 8GB DDR3 1866,
XFX Radeon HD 4870, SILVERSTONE DA700, Samsung 840 500Gig SSD MZ-7TD500BW, 3x WD20EARS 2 TB Green,
ASUS DRW-2014L1T (DVD), LG WH14NS40 (Blu Ray), Dell 2709W, Sony SDM-HS95P, Windows 10 Pro
The NAS Box: D-Link DNS-323, 0.1RC3 Alt-F firmware, 2x 7200.14 ST3000DM001 3TB EXT4 - NO RAID - 6 TB

Offline

 

#22 2007-02-09 13:34:26

materofdi
Member
Registered: 2007-02-09
Posts: 10

Re: Telnet

Hi,
I already read the wiki for telnet but I don't understand what I ahve to do.smile
I downloaded the "busybox" from KRH. Extracted on  2. HDD of the DNS-323.
What is the next step? What programm do I have to run? And enter the script:

pushd /tmp
wget -N http://home.sconk.se:8080/dns323/dns-323.rar
rar x dns-323.rar
cp -rf "/tmp/dns-323/Ny mappe/lnx_bin" /mnt/lnx_bin
cp -f "/tmp/dns-323/Ny mappe/starttelnet.sh" /mnt
popd


?

In the busybox folder is a programm called nc.exe. I started this one, but everytime I enter the first line of "pushd /tmp" the programm closes itselfs. :-(

I have a little experience with command line, I knew there was a function to let the cmd line run without closing the whole time.  This was to start it in the "compatibility" mode for e.g. Windows 95. But this doesnt help, I dont know why.

And yeah I'm using windows xp prof. blame on me. smile

Offline

 

#23 2007-02-09 14:06:48

Apskaft
Member
From: Karlskrona, Sweden
Registered: 2007-01-09
Posts: 165

Re: Telnet

materofdi wrote:

I already read the wiki for telnet but I don't understand what I ahve to do.smile

The wiki is currently quite hard to follow and will most likely be updated. I think this post might make it easier for you.

However, keeping it as technical as it is has its points too. When inside the box using telnet you can very easily brick your unit.

The 'script' you're referring to is not a script but rather a set of commands to be used from a Linux machine after HDD_1/Volume_1 has been mounted on the local /mnt.


edit Whatever. I updated the Wiki. If the description there is to hard to follow I cannot reccomend you to continue. And please, please, please remember that using telnet to the DNS-323 you can easliy brick/destroy your unit. Even the slightes mistake will make it unusable. Ctrl-Z will not work wink


/Apan

Last edited by Apskaft (2007-02-09 14:40:40)

Offline

 

#24 2007-02-28 00:37:28

Gonzo.T.Durden
Member
Registered: 2007-02-22
Posts: 11

Re: Telnet

Hi,

thanks to the infos in the wiki/forum and KRHs files i got telnet running (because i want to run rsync as posted in another thread).

But I would like to learn "what's going on" and have some questions regarding the starttelnet script:

"#!/bin/sh
/mnt/HD_a2/lnx_bin/busybox3 mknod /dev/ptyp0 c 2 0
/mnt/HD_a2/lnx_bin/busybox3 chmod 0666 /dev/ptyp0
/mnt/HD_a2/lnx_bin/busybox3 mknod /dev/ttyp0 c 3 0
/mnt/HD_a2/lnx_bin/busybox3 chmod 0666 /dev/ttyp0

rm /mnt/HD_a2/lnx_bin/sh
ln -s /mnt/HD_a2/lnx_bin/busybox3  /mnt/HD_a2/lnx_bin/sh

/mnt/HD_a2/lnx_bin/utelnetd -l /mnt/HD_a2/lnx_bin/sh -d"


1. What's 'mknod' needed for? Is it because the utelnetd/shell needs this "devices" to accept keyboard entries?
2. Why is the 'sh' link deleted and then created again?
3. What is the 'sh' link good for? If I enter something like "sh whoami' I only get "Can't open xyz" I thought this acts as a shortcut to busybox (using the path added via fun_plug: export PATH=$PATH:/mnt/HD_a2/lnx_bin/ - doesn't seem to work anyway... I have to enter the full path)
4. can utelnetd be configured to ask for the root password, or is a different version necessary?
5. how do I start a different shell, one with autocompletion / history enabled which i saw here, changing busybox3 with the new name didn't work

Thanks for the one or another hint and sorry for any RTFM questions
Gonzo

Last edited by Gonzo.T.Durden (2007-02-28 08:41:48)

Offline

 

#25 2007-03-13 16:32:12

henrikg
Member
Registered: 2007-03-13
Posts: 5

Re: Telnet

Are there any way of protecting the telnet server ?
With username + password.
ok - it is just sitting there on my intranet and I can disable it, but it could be rather handy to have it enabled - and I don´t like the though of having anything with important data on it just sitting there unprotected....

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB