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

#26 2007-03-13 16:37:23

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

Re: Telnet

henrikg wrote:

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....

make telnet start a login program (instead of directly jumping into a shell), it'll prompt for username and password then.
if you're using a busybox-based telnetd, it's "telnetd -l /path/to/login".

Offline

 

#27 2007-03-13 17:21:20

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

Re: Telnet

Do I have to install my own login program or can I use the one that the dns-323 uses for "normal" logins to the admin interface or samba ?

Offline

 

#28 2007-03-13 17:43:15

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

Re: Telnet

should work with the shipped /bin/login. note, however, that /bin/sh (the shell that login will probably start) is a bit "non-standard", see http://dns323.kood.org/forum/p1701-2007 … html#p1701

Offline

 

#29 2007-03-13 17:54:55

FIB
Member
Registered: 2007-03-13
Posts: 13

Re: Telnet

henrikg wrote:

Do I have to install my own login program or can I use the one that the dns-323 uses for "normal" logins to the admin interface or samba ?

To avoid my kids acting like root (too young) I did like this.

I created my own login script (see ps below)
magic.sh:

Code:

#!/bin/sh
echo -n Type the magic code: 
if ( head -n 2 | grep 'dns-323' > /dev/null 2>&1 ); then
  echo OK
  /mnt/HD_a2/lnx_bin/sh
else 
  echo Sorry ...
  sleep 2
  exit
fi

And alternateded the telnet startup (starttelnet.sh) by this:

Code:

#/mnt/HD_a2/lnx_bin/utelnetd -l /bin/login -d
/mnt/HD_a2/lnx_bin/utelnetd -l /mnt/HD_a2/magic.sh -d

So on Windows telnet

Successfully telnet login wrote:

stdin, stdout, etderr: 0 1 2
Type the magic code:dns-323

OK


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

#

or

Unsuccessfully telnet login wrote:

stdin, stdout, etderr: 0 1 2
Type the magic code:BADC0DE

Sorry ...


Connection to host lost.

PS. After some googling I found that "-l /bin/login" was a natural choice, but I was not able to make it work to login as root! (I guess I had to look into the link provided by fonz, - crossing posts)

Last edited by FIB (2007-03-13 17:57:59)

Offline

 

#30 2007-03-14 14:52:26

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

Re: Telnet

The last script works terrific.
Thanks for the code.
And now I can also keep my son away :-) and the whole family can blame only me and myself when the device gets broken....

Offline

 

#31 2007-04-17 04:06:40

Blutox
Member
Registered: 2007-01-18
Posts: 8

Re: Telnet

Well I'm going to make the leap and fun_plug my DNS-323.  I'm tired of waiting for D-Link fix the UPNP AV server.   The link in the how to Telnet wiki that points to the three files needed for telnet (busybox, utelnet, starttelnet.sh) is giving me a 404 error.   Is there another location where can I get them?

Thanks in advance.

Blutox

Offline

 

#32 2007-04-17 09:10:01

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

Re: Telnet

Things at KRH server look messy. If someone have these files he/she could upload them to wiki. Or eventually I could setup a better managed download section for DNS-323.


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

Offline

 

#33 2007-04-17 09:18:31

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

Re: Telnet

yes its a mess and i relly dont have time to fix the dns323.info. my rar file will come up later today i had to change server, the old one had some hw issues.


First user to fun_plug the dns-323.

Offline

 

#34 2007-04-20 17:23:09

Blutox
Member
Registered: 2007-01-18
Posts: 8

Re: Telnet

Thank you KRH, I got the files and eveything installed and worked great.  I used notepad ++ for file editting and puTTy for my windows telnet client.  Now I just need to learn some Linux syntax.
-Blutox

Offline

 

#35 2007-04-26 19:59:40

fierysnake
New member
Registered: 2007-04-22
Posts: 4

Re: Telnet

Hi Guys,

Can anyone tell me where can i download the telnet package? I cant seem to download from khr.
Please help.....;o(

snake

Offline

 

#36 2007-04-27 23:10:52

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

Re: Telnet

KRH wrote:

yes its a mess and i relly dont have time to fix the dns323.info. my rar file will come up later today i had to change server, the old one had some hw issues.

Consider uploading your files to wiki or http://download.dns323.info/ instead of current place.


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

Offline

 

#37 2007-04-27 23:11:45

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

Re: Telnet

haha and its my server smile yes sorry

(i kind of uploaded the rar to help ppl budt its kind of got stuck in the wiki and nobody did write some better documeted start file) *HINT* smile

[over and out kind of drunk...]

Last edited by KRH (2007-04-27 23:13:22)


First user to fun_plug the dns-323.

Offline

 

#38 2007-04-27 23:14:30

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

Re: Telnet

KRH wrote:

haha and its my server smile yes sorry

(i kind of uploaded the rar to help ppl budt its kind of got stuck in the wiki and nobody did write some better documeted start file) *HINT* smile

[over and out kind of drunk...]

whats your server? wiki is located at mine with http://ext.host-tracker.com/uptime-img/?s=15&t=170469&m=00.09&p=Month uptime


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

Offline

 

#39 2007-04-27 23:16:13

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

Re: Telnet

at my fancy home i just reinstalled and have set up apache to host my webcam

i will upload the rar file later to dns323.info


First user to fun_plug the dns-323.

Offline

 

#40 2007-04-27 23:20:01

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

Re: Telnet

KRH wrote:

(i kind of uploaded the rar to help ppl budt its kind of got stuck in the wiki and nobody did write some better documeted start file) *HINT* smile

Here's a direct link where you can just browse your file and upload. PHP allows up to 2MB upload.
http://dns323.kood.org/lib/exe/mediaman … p?ns=howto
PS: before clicking you should log in to wiki


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

Offline

 

#41 2007-05-26 15:21:37

bareare
Member
Registered: 2007-05-24
Posts: 29

Re: Telnet

I have tried the Telnet install guide (the simple one), it just don't work. While the others, the ones with more files, always works (bearbrick). So I think the wiki needs to rather point to those other files, because it is very frustrating as a beginner to do the same task over and over without getting it to work.

Maybe a compability issue with 1.0.3 firmware or something?

Offline

 

#42 2007-05-26 18:04:53

fordem
Member
Registered: 2007-01-26
Posts: 1938

Re: Telnet

Apskaft wrote:

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

Given the fact that the filesystem resides on flash memory, aren't the warnings on bricking the unit somewhat alarmist?  Can I really remove and edit files on flash memory that easily?

I'm not concerned about the data on the drives - that's a backup copy and I have the original elsewhere, so locking it up and having to pull the drives and reformat is not an issue.

Last edited by fordem (2007-05-26 18:07:29)

Offline

 

#43 2007-05-26 18:09:20

DNS-323 Talker
Member
Registered: 2007-05-21
Posts: 245

Re: Telnet

Install Fonz's fun_plug (there's a thread on it w/all the info)...it provides telnet that works every time, I'm using it on 1.03. 

http://dns323.kood.org/forum/t422-Updated-fun-plug.html

Also includes several other utilities you can use (or not) if you like.


DNS-323 w/two Seagate 500 GB RAID1
Fonz's Fun_Plug- Don't DNS-323 without it!

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB