Reply
Thread Tools
Posts: 33 | Thanked: 13 times | Joined on Dec 2009 @ Helsinki, FINLAND
#1
I managed to overwrite my /bin/sh so no shell!

been partying since we had this national twoday special holiday for partying called WAPPU..

And i was tired as hell and started making OC scripts for titans kernel i had installed on thurday and just somehow managed to overwrite my /bin/sh with a script!!!

HOW do i fix this?

install midnight commander or something to fix it? flash the whole thing? xterm is obviously busted now so how screwed am I?

still writing this from my n900 so maybe this is recoverable...

aaaaargh need to sleep but gootta fix this first.
 
Posts: 43 | Thanked: 32 times | Joined on Jan 2010
#2
Originally Posted by Monniman View Post
I managed to overwrite my /bin/sh so no shell!

been partying since we had this national twoday special holiday for partying called WAPPU..

And i was tired as hell and started making OC scripts for titans kernel i had installed on thurday and just somehow managed to overwrite my /bin/sh with a script!!!

HOW do i fix this?

install midnight commander or something to fix it? flash the whole thing? xterm is obviously busted now so how screwed am I?

still writing this from my n900 so maybe this is recoverable...

aaaaargh need to sleep but gootta fix this first.
I attached my /bin/sh here (had to add a ".zip" extension to attach it, just remove it). I guess all you have to do is SSH into your device and replace the file.

Just to be clear: I didn't zip the file, just added the ".zip" extension.
Attached Files
File Type: zip sh.zip (347.3 KB, 99 views)
 

The Following User Says Thank You to azstunt For This Useful Post:
Posts: 33 | Thanked: 13 times | Joined on Dec 2009 @ Helsinki, FINLAND
#3
"thank you!!!! LOL havent ever screwed up anything as root before.. "

Well too early to celebrate success. Doesn´t seem tobe posssible to ssh the file - no shell no game...

Seems to be theres no way of getting my ip. Cannot install anything... Which all ofcourse makes sense... but... hmm..

Last edited by Monniman; 2010-05-03 at 04:56. Reason: easy way out?
 
Posts: 33 | Thanked: 13 times | Joined on Dec 2009 @ Helsinki, FINLAND
#4
any ideas? Anybody?

How to not flash the FW and restore /bin/sh?
 
Posts: 33 | Thanked: 13 times | Joined on Dec 2009 @ Helsinki, FINLAND
#5
Im able to navigate using midnight commander. Now the problem is how to get the /bin/sh file to the phone since it seems im not capable of mounting my sd card an the networks arent working.
I should be able to manually mount the sd with MC, right?
 
Posts: 43 | Thanked: 32 times | Joined on Jan 2010
#6
Originally Posted by Monniman View Post
Im able to navigate using midnight commander. Now the problem is how to get the /bin/sh file to the phone since it seems im not capable of mounting my sd card an the networks arent working.
I should be able to manually mount the sd with MC, right?
Can you not use your n900 to access this thread, download the file directly to the phone, rename it in MC and move it with MC?
 
Posts: 33 | Thanked: 13 times | Joined on Dec 2009 @ Helsinki, FINLAND
#7
Nope no wifi or gps or bluetooth or abitlity to mount and sd card by launching bash somehow... Guess its time to reflash... Just downloading the apps again is a pain.
Thanks for the help Azstunt anyway.

I won´t be fecking around as root anymore when tired
 
Reply


 
Forum Jump


All times are GMT. The time now is 09:52.