Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
Has anyone achieved Telnet access to the DNS-323?
If so, I'd like to learn now!
- Gary
Offline
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
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....
Offline
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
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.
Offline
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
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
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.
Offline
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
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
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
OK, I'm new to this and I'm so close, but at the same time, so far away.
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
Actually, you're already there. When you see the firts '#', you're in. No login needed. Just ls -l ....;-)
Offline
Aha! Then this brings me to another question; I need to add some IP address in ftpaccess. How can I do this?
Offline
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
odelsteken wrote:
Aha! 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
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
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
Offline
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:
# # 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
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.
#
Offline
Hi,
I already read the wiki for telnet but I don't understand what I ahve to do.
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.
Offline
materofdi wrote:
I already read the wiki for telnet but I don't understand what I ahve to do.
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
/Apan
Last edited by Apskaft (2007-02-09 14:40:40)
Offline
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
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