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-23 19:14:22

s.ly
Member
Registered: 2008-01-23
Posts: 10

Dead end: No telnet/ssh access

Hello and sorry for may be stupid question.

For some reason, I'm no longer able to communicate with DSM-G600 either trough ssh or telnet.
The problem appeared at some moment after several successfull sessions and it is common for both protocols.
After logging in, I'm receiving no bytes (as shown by active connections scanner) from DSM-G600, it looks like this:

Code:

Boxey login: root
Password:

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

ls
sdsdadfsdf
sdfsdfsdf
dsf

I've read a lot of topics from this forum section but didn't found a solution.
As I'm novice on (embedded) linux administration, I think I just did some dumb error but unable to identify it.

Here is my fun_plug

Code:

if [ ! -e /mnt/HD_a2/ash ]
then
  ln -s /mnt/HD_a2/busybox /mnt/HD_a2/ash
fi
echo "/mnt/HD_a2/ash" >> /etc/shells
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 &

if [ ! -e /mnt/HD_a2/dropbear ]
then
  ln -s /mnt/HD_a2/dropbearmulti /mnt/HD_a2/dbclient
  ln -s /mnt/HD_a2/dropbearmulti /mnt/HD_a2/dropbear
  ln -s /mnt/HD_a2/dropbearmulti /mnt/HD_a2/dropbearconvert
  ln -s /mnt/HD_a2/dropbearmulti /mnt/HD_a2/dropbearkey
  ln -s /mnt/HD_a2/dropbearmulti /mnt/HD_a2/scp
fi
if [ ! -e /mnt/HD_a2/dropbear_rsa_host_key ]
then
  /mnt/HD_a2/dropbearkey -t rsa -f /mnt/HD_a2/dropbear_rsa_host_key
  /mnt/HD_a2/dropbearkey -t dss -f /mnt/HD_a2/dropbear_dss_host_key
fi
/mnt/HD_a2/dropbear -d /mnt/HD_a2/dropbear_dss_host_key -r /mnt/HD_a2/dropbear_rsa_host_key -a &

/mnt/HD_a2/lighttpd/lighttpd -f /mnt/HD_a2/lighttpd/lighttpd.conf -m /mnt/HD_a2/lighttpd

########## MLDonkey #############
MLDONKEYROOT="/mnt/HD_a2/mldonkey/"
rm $MLDONKEYROOT/.mldonkey/mlnet.pid # to prevent an incorrect shutdown
rm $MLDONKEYROOT/.mldonkey/mlnet.static.pid # to prevent an incorrect shutdown
# rm $MLDONKEYROOT/.mldonkey/downloads.ini
# cp $MLDONKEYROOT/downloads.ini $MLDONKEYROOT/.mldonkey/downloads.ini
HOME="$MLDONKEYROOT" $MLDONKEYROOT/mlnet.static & 
########## END #############

Thanks in advance for your help

Offline

 

#2 2008-01-23 19:44:05

BertrandB
Member
From: Dijon (France)
Registered: 2006-09-16
Posts: 119
Website

Re: Dead end: No telnet/ssh access

s.ly wrote:

Code:

Boxey login: root
Password:

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

ls
sdsdadfsdf
sdfsdfsdf
dsf

Well it's not the rght busybox you must have a bad value for the shell-root of rot user in /etc/passwd

Offline

 

#3 2008-01-23 21:41:19

s.ly
Member
Registered: 2008-01-23
Posts: 10

Re: Dead end: No telnet/ssh access

Thanks!

Brutal force wins: after reset, everything is back ok.

Except configuration smile

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB