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 2012-01-31 05:08:16

boost2525
New member
Registered: 2012-01-31
Posts: 2

Lost the root password... cruuuuuuuuud

I've tried them all, and I honestly can't figure out what the heck I used for the root password. Any thoughts on how to recover it? Stuff I've tried:

- I reallowed telnet and can telnet in as admin, but I get an empty (broken?) shell where no commands run.

- I cp'd the shadow file... it contains three users as disabled sh user, admin, and some other user i didn't recognize. I tried blanking out the admin password hash and cp'ing it back but I still can't log in.

I'm stumped.

Offline

 

#2 2012-01-31 11:27:48

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

Re: Lost the root password... cruuuuuuuuud

Offline

 

#3 2012-01-31 14:22:06

boost2525
New member
Registered: 2012-01-31
Posts: 2

Re: Lost the root password... cruuuuuuuuud

That would be helpful if I could get to a working shell session... per above, logging in as admin gives me a BusyBox shell that doesn't accept any commands (it acts like a text editor or something).

Offline

 

#4 2012-01-31 15:10:39

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

Re: Lost the root password... cruuuuuuuuud

boost2525 wrote:

That would be helpful if I could get to a working shell session...

The text tells you how to get a working shell session. Read on... "Reactivating telnet. ..."

Offline

 

#5 2012-08-25 07:51:21

capetito
New member
Registered: 2012-08-25
Posts: 4

Re: Lost the root password... cruuuuuuuuud

I have the same problem,but on my NSA221 box. I know there is a Discussion for that device here, but I could not find any threads regarding lost password in there, so I'm posting here.
Read the discussion in the link provided and tried to follow instructions there with no success. I  copy the fun_plug.tgz to my usb drive in the NAS and reboot, but telnet.sh is marked as Inactive.
Maybe I'm not placing the tarball in the correct location? Any help would be appreciated.
TIA

Below is a copy of ffpboot.log

Starting /e-data/b3c9595b-5615-470f-9b1c-3bfa3eacf3df/ffproot/after_booting.sh version 20110712 at Sat Aug 25 00:27:40 GMT 2012...
done
CopySymlink /i-data/md0 /e-data/b3c9595b-5615-470f-9b1c-3bfa3eacf3df/ffproot/mnt/HD_a2
ln -s /etc/zyxel/storage/sysvol /e-data/b3c9595b-5615-470f-9b1c-3bfa3eacf3df/ffproot/mnt/HD_a2
ln: /e-data/b3c9595b-5615-470f-9b1c-3bfa3eacf3df/ffproot/mnt/HD_a2/sysvol: File exists
* /ffp/start/syslogd.sh inactive
* /ffp/start/SERVERS.sh inactive
* /ffp/start/portmap.sh inactive
* /ffp/start/unfsd.sh inactive
* /ffp/start/nfsd.sh inactive
* /ffp/start/ntpd.sh inactive
* /ffp/start/smartd.sh inactive
* /ffp/start/LOGIN.sh inactive
* /ffp/start/telnetd.sh inactive
* /ffp/start/svnserve.sh inactive
* /ffp/start/sshd.sh ...
Starting /ffp/sbin/sshd
* /ffp/start/rsyncd.sh inactive
* /ffp/start/mysqld.sh inactive
* /ffp/start/mediatomb.sh ...
Starting /ffp/bin/mediatomb -d --home=/home/root
2012-08-25 04:27:44    INFO: Loading configuration from: /home/root/.mediatomb/config.xml
2012-08-25 04:27:44    INFO: Checking configuration...
2012-08-25 04:27:44    INFO: Setting filesystem import charset to ASCII
2012-08-25 04:27:44    INFO: Setting metadata import charset to ASCII
2012-08-25 04:27:44    INFO: Setting playlist charset to ASCII
2012-08-25 04:27:44 WARNING: You enabled the YouTube feature, which allows you
                             to watch YouTube videos on your UPnP device!
                             Please check http://www.youtube.com/t/terms
                             By using this feature you may be violating YouTube
                             service terms and conditions!

2012-08-25 04:27:44    INFO: Configuration check succeeded.
* /ffp/start/kickwebs.sh inactive
* /ffp/start/lighttpd.sh inactive
* /ffp/start/inetd.sh inactive
* /ffp/start/dnsmasq.sh inactive
* /ffp/start/btpd.sh inactive

Offline

 

#6 2012-08-25 14:52:58

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

Re: Lost the root password... cruuuuuuuuud

The FFP-stick on a 221 works a bit different as fun_plug.sh on a DNS-323. It will not extract any fun_plug.tgz on boot. I think in your case the easiest way to get telnetd running, is to connect your FFP-stick to a different linux box (a PC boot from a linux live cd, for instance), and switch the 'executable' flag of telnetd.sh

Offline

 

#7 2012-08-25 23:33:15

capetito
New member
Registered: 2012-08-25
Posts: 4

Re: Lost the root password... cruuuuuuuuud

Once again, Mijzelf, thanks for the info. I have never run linux on a pc before, soooooo, which version would you recommend for this?
Thanks.

Offline

 

#8 2012-08-26 07:15:12

capetito
New member
Registered: 2012-08-25
Posts: 4

Re: Lost the root password... cruuuuuuuuud

Ok, I installed DSL on a VM on my pc. How do I connect to my FFP-stick? Do I need to plug it in to my PC running linux? Or should I leave it in my NSA box and access it from my linux-running-pc? How?
Sorry for all the questions, but this is new ground for me. I really appreciate your help.

Offline

 

#9 2012-08-26 08:30:46

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

Re: Lost the root password... cruuuuuuuuud

Plug the stick into your PC. Tell the VM to pass it to it's internal OS.

It's a time ago I looked at DSL, cannot remember if it automounts usb sticks, but if it doesn't, I suppose there is some menu item/desktop button to mount it.

The stick contains 2 partitions, 1 FAT, about 10MB, and one ext3, taking all remaining space. That 2nd partitions contains only one directory 'ffproot' (and a lot of hidden files, but these are, well, hidden). ffproot contains your ffp installation.

You'll need to be logged in as root, so it's possible you have to do it from the commandline:

Code:

chmod a+x /mountpoint/of/stick/ffproot/ffp/start/telnetd.sh

Offline

 

#10 2012-08-26 23:48:28

capetito
New member
Registered: 2012-08-25
Posts: 4

Re: Lost the root password... cruuuuuuuuud

Mijzelf, I used a LiveCD of Ubuntu 12 as a linux box, and plugged my ffp stick into it. Accessed a terminal and tried what you suggested. It tells me operation not permitted.

ubuntu@ubuntu:/media/FFPROOT/ffproot/ffp/start$ chmod a+x telnetd.sh
chmod: changing permissions of `telnetd.sh': Operation not permitted

What now?

Offline

 

#11 2012-08-27 07:51:29

bjby
Member
Registered: 2009-02-22
Posts: 265

Re: Lost the root password... cruuuuuuuuud

sudo chmod a+x telnetd.sh

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB