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 2011-02-05 10:48:58

Swan
New member
Registered: 2011-02-05
Posts: 2

Cannot Login with Telnet

Hello,

I think i followed correctly all the tutorial and check all topics from people that had problem like me, but at this time I still cannot connect to my dsm g600 with telnet.

This is what i did:

- Download and unpack busybox-telnetd-1.2.1.tar.bz2
- Created a file that i named fun_plug.sh and put inside:

#!/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 &

- I upload by ftp with File Zilla those three files in HD_a2; Then rigth click on each ob those three file and set the permission to 777 for all.

- I rebooted my NAS and then from a shell type: telnet 10.0.0.101
And I have this error:
telnet: Unable to connect to remote host: Connection refused

I am turning around and around to fix that problem but I am stuck!

Any idea? I did something wrong?

Thanks for help in advance.

Swan

Last edited by Swan (2011-02-05 10:57:20)


Attachments:
Attachment Icon FileZilla.png, Size: 34,710 bytes, Downloads: 281

Offline

 

#2 2011-02-05 12:35:07

Mijzelf
Member / Developer
Registered: 2008-07-05
Posts: 709

Re: Cannot Login with Telnet

The script should be called 'fun_plug', and not 'fun_plug.sh'

Offline

 

#3 2011-02-05 13:57:00

Swan
New member
Registered: 2011-02-05
Posts: 2

Re: Cannot Login with Telnet

Hi Mijzelf,

Thanks a lot for your help.
I change the name of the script as per your suggest but still not working: connexion by telnet is still refused.
If you have any other idea, you are welcome

Thank you



Mijzelf wrote:

The script should be called 'fun_plug', and not 'fun_plug.sh'

Offline

 

#4 2011-02-05 14:45:34

Mijzelf
Member / Developer
Registered: 2008-07-05
Posts: 709

Re: Cannot Login with Telnet

Another often made mistake is wrong line endings. The file has to have Linux line endings, so creating the fun_plug with - for instance - Notepad will not do.

Offline

 

#5 2014-01-11 20:14:06

hrreddy
New member
Registered: 2014-01-03
Posts: 2
Website

Re: Cannot Login with Telnet

what @mijzelf said is correct , call the script like 'fun_plug'.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB