Jump to content


Photo

[ROOT] Motoshare 2: Old Bug, New Exploit


  • Please log in to reply
985 replies to this topic

#741 SamuriHL

SamuriHL

    Android Warrior

  • Smod
  • 44,112 posts
  • Current Device(s):S21 Ultra, Pixel 6

Posted 30 April 2013 - 07:44 PM



FXZ the update and skip the middle few steps. Back up all your data to your PC or SDCard and don't bother taking extra and unnecessary steps
 
 
 
 
Yeah, livinginkaos is right. He's not trying to ROOT .246 with this, he's trying to get to JB so he can root that.


 


FXZ the update and skip the middle few steps. Back up all your data to your PC or SDCard and don't bother taking extra and unnecessary steps
 
 
 
 
Yeah, livinginkaos is right. He's not trying to ROOT .246 with this, he's trying to get to JB so he can root that.


yeah I'm not even on JB yet, that's what I'm trying to get to. And BTW, this DOES work to root .246 I just found out, by accident....actually I'll keep this part to myself. But anyways, I was having problems installing the .22 update to JB from stock rooted .246 with safestrap UNINSTALLED properly, and I kept getting software update errors. So now I'm trying to FXZ through HOB then take update, but I think I'm just gonna go RSDLite instead of HOB. I hate using Windows, but I keep getting all kinds of issues and I'm very comfortable in this type of situation and environment usually and all kinds of crazy crap just keeps happening. Nowhere in documentation have I found that I have to be 64 bit to FXZ 246 through HOB on Linux. Its kinda funny because you need to be 32bit or have the 32bit bin libraries installed to root to JB.. We'll see if I get an answer about my 64bit problem. And maybe an update to the directions and FAQ noting you need 64, unless I just missed it in very fine print somewhere.


Actually you would be wrong about that. I'm very clear that the Linux HoB will not flash webtop if you're on 32 bit.

Sent from my Xoom using Tapatalk HD
  • Int_Rnd_Pooka likes this

Non potest esse nisi unus


#742 christougher

christougher

    n00b

  • Members
  • Pip
  • 2 posts

Posted 30 April 2013 - 07:55 PM

Intalling on 32 bit Ubuntu 13.4 on a bootable flash drive (maybe that is the problem?)

 

When I get to this line of code:

 

tar xvf motoshare2.tgz

 

I get this

 

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now

 

Everything was going like clockwork before this line...

 

any ideas what the problem might be?

Sorry total linux noob
 

EDIT:  Figured it out, the wifi network I was on didn't actually allow the file to download even though it created an empty motoshare2.tgz.



#743 marty45714

marty45714

    Member

  • Members
  • PipPip
  • 45 posts

Posted 30 April 2013 - 07:57 PM

Folks, if you're still having trouble rooting, I've really tweaked a bunch on my "VirtualBox" method, based on user feedback. It's only a 46MB download and is fully automated. All you do is install VirtualBox, download the file, and follow the instructions. See my method here:

 

Please Login or Register to see this Hidden Content


  • JMT_Cam likes this

#744 lemonoid

lemonoid

    n00b

  • Members
  • Pip
  • 10 posts
  • Twitter:@DoseOfAndroid
  • LocationBoone, NC
  • Current Device(s):Bionic, Incredible 2, X2, NS4G,

Posted 30 April 2013 - 08:17 PM

That should really be in the OP and the instructions from the get go. People with a dirty system partition are getting an awful lot of problems from leftover Superuser apps and su binaries

yeah I believe this happened to me. I'm FXZing right now on my gf's laptop since it didn't say anywhere I neeeded 64bit to FXZ through HOB. After that, I'll let you know how the JB update runs.

 

 

UPDATE: Regular FXZ didn't work either. this is very frustrating i've never had this much trouble with both taking and update and FXZ'ing my phone. RSDLite failed at step 1. 'allow-mbmloader-flashing-mbm.bin'   ughhhh. any tips??! I'm simply on stock rooted .246. no safestrap or anything. I uninstalled safestrap from within the app before two factory resets ago. and now I have a failure on the HOB FXZ on linux and on regular RSDLite on 64-bit Windows.



#745 lemonoid

lemonoid

    n00b

  • Members
  • Pip
  • 10 posts
  • Twitter:@DoseOfAndroid
  • LocationBoone, NC
  • Current Device(s):Bionic, Incredible 2, X2, NS4G,

Posted 30 April 2013 - 08:20 PM

Actually you would be wrong about that. I'm very clear that the Linux HoB will not flash webtop if you're on 32 bit.

Sent from my Xoom using Tapatalk HD

i figured webtop was the issue, but check my output on my thread i made. feel free to delete the thread after checking it out. i didn't know you were clear it wouldn't flash on 32bit. that's what I was saying, I didn't see that anywhere in all the steps until I actually TRIED the FXZ.



#746 lemonoid

lemonoid

    n00b

  • Members
  • Pip
  • 10 posts
  • Twitter:@DoseOfAndroid
  • LocationBoone, NC
  • Current Device(s):Bionic, Incredible 2, X2, NS4G,

Posted 30 April 2013 - 08:28 PM

is there any way I can FXZ on linux without webtop, and then after that flash webtop.img through fastboot? i plan on doing it all without turning on the device after the FXZ, only after I get webtop flashed.



#747 lemonoid

lemonoid

    n00b

  • Members
  • Pip
  • 10 posts
  • Twitter:@DoseOfAndroid
  • LocationBoone, NC
  • Current Device(s):Bionic, Incredible 2, X2, NS4G,

Posted 30 April 2013 - 08:39 PM

ok so  i believe phone bricked. FXZ is failing at 1/21 "allow-mbmloader-flashing-mbm.bin" usb error occurred/while reading/writing. and I was using a factory cable. so instead of FXZing .246 I tried to FXZ .22 and now everytime i try to boot it goes to AP Flashboot Mode. ANY help please?!!?



#748 dmgdmg

dmgdmg

    n00b

  • Members
  • Pip
  • 5 posts
  • Locationindia
  • Current Device(s):XT910

Posted 01 May 2013 - 12:11 AM

I am working on a how to video will post when I am done

 

Edit

Finished Video here 

 

Hope this helps some of the noobs out.

how to connect my phone to my laptop through wifi for rooting of my phone.please give answer quickly.



#749 dmgdmg

dmgdmg

    n00b

  • Members
  • Pip
  • 5 posts
  • Locationindia
  • Current Device(s):XT910

Posted 01 May 2013 - 12:15 AM

how to connect phone to laptop through wifi to root phone. I get all other step. how to creat server in laptop?



#750 Int_Rnd_Pooka

Int_Rnd_Pooka

    Member

  • Members
  • PipPip
  • 284 posts
  • Current Device(s):Bionic

Posted 01 May 2013 - 12:58 AM

Intalling on 32 bit Ubuntu 13.4 on a bootable flash drive (maybe that is the problem?)

 

When I get to this line of code:

 

tar xvf motoshare2.tgz

 

I get this

 

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now

 

Everything was going like clockwork before this line...

 

any ideas what the problem might be?

Sorry total linux noob
 

 

Sounds like you may want to redownload the motoshare2 file and make sure it isn't a bad download



#751 marty45714

marty45714

    Member

  • Members
  • PipPip
  • 45 posts

Posted 01 May 2013 - 04:20 AM

livinginkaos, SamuriHL, Rapitharian, Int_Rnd_Pooka, and anyone else who is helping out with problems,

 

Here are the 2 main issues I've addressed in my "VirtualBox" method.

 

If you are helping users who still insist on doing this manually, here is some advice you can give them if they are getting repeated failures:

 

There were a couple of things that I added to the script in the latest version. One or both of them may have helped your situation:

1) I added some logic to re-install Superuser.apk if the command that does the initial install of Superuser fails.

2) The original exploit by Dan Rosenberg tries to run the exploit from /storage/rfs0. Based on feedback from several users, the Samba share is not always mounted to that location on the phone, which will cause the exploit to fail when the script attempts to run it. I added logic that will find the 'pwn' executable, and execute it from the proper path.

 

So for issue #1, if the user is at the Linux prompt, sitting in the "/tmp/share" directory, according to Dan's process, they should run the command "./adb.linux install -r Superuser.apk".

The "-r" option is the command to re-install.

 

For issue #2, I ran a "find" command against "/storage" in my script to find the "pwn" executable, and then used the result in order to execute "pwn". For those that are running manually, they can try to run "/storage/rfs1/pwn 1", "/storage/rfs2/pwn 1", etc., etc.

 

Hope this helps.


  • SamuriHL, Int_Rnd_Pooka, matjmonk and 1 other like this

#752 xrasimx

xrasimx

    n00b

  • Members
  • Pip
  • 24 posts
  • LocationBize Her Yer Trabzon

Posted 01 May 2013 - 05:07 AM

No, because you need the wireless to connect the phone to the share on the PC running Linux. Sorry.

Sent from my DROID BIONIC using Tapatalk 2

Thank you very much for your interest.


Ne Mutlu Türküm Diyene .!

#753 Int_Rnd_Pooka

Int_Rnd_Pooka

    Member

  • Members
  • PipPip
  • 284 posts
  • Current Device(s):Bionic

Posted 01 May 2013 - 05:15 AM

Nicely done with the command to find PWN. You could also modify the script to do a "where" type command to get local absolute path and prepend all calls to executables with the absolute path. I think it's "where" anyway. I'll have to look it up
  • marty45714 likes this

#754 livinginkaos

livinginkaos

    I don't know what I'm doing anymore.....

  • Administrator
  • 15,282 posts
  • Google+:Hangouts - livinginkaos@gmail.com
  • LocationOregon
  • Current Device(s):Samsung S8+ / Pixel XL 128gb / iPhone 7+ 256gb / iPad Pro 12.9" / Samsung Chromrbook Plus / Pixel C / Nexus 6p 128gb / Nexus 6 / Nexus 6 on Fi / Nexus 9 / Moto 360^2 / Nvidia Shield TV Pro / Nvidia Shield Tablet / HTC EVODesign on FreedomPop / Chromecast / Surface Pro 3 i7 / Samsung Tab Pro 12.2 / Lenovo Win8 Tab / Eee Slate / '13 Nexus 7

Posted 01 May 2013 - 05:46 AM

Marty, thank you for your continued support of your VB method !

 

n00bs REALLLLY should be using the Virtual Box method if they have no interest in learning some basic linux commands.

 

I would also like to state something here - If you ask for support on a situation that has already been presented and corrected previously in this thread, you will likely not receive a instructive response.  Instead, you are likely to get direction to read the thread and maybe appx where to look.  You should have already read the entire thread prior to attempting to root.  It helps to avoid confusion and frustration from the start.  When you ask a question that has already been solved it does a few things - It loads the thread with repetitive information, Does not help you in the learning process (that's what we are here for right?), takes time away from those offering support that can be otherwise utilized (keep in mind, most of those offering support do so across several forums and threads) (also keep in mind, all of these people do not get paid for this, they are taking their time to help - don't waste it).

 

REST ASSURED, however, if you have an issue that is new in nature, you will get support to the best of the supporter's abilities.

 

ROOT ON !


  • SamuriHL, Int_Rnd_Pooka, matjmonk and 8 others like this

b2wvCBn.png

Sig by livinginkaos
Samsung S8+ / Pixel XL 128gb / iPhone 7+ 256gb / iPad Pro 12.9" / Samsung Chromrbook Plus / Pixel C / Nexus 6p 128gb / Nexus 6 / Nexus 6 on Fi / Nexus 9 / Moto 360^2 / Nvidia Shield TV Pro / Nvidia Shield Tablet / HTC EVODesign on FreedomPop / Chromecast / Surface Pro 3 i7 / Samsung Tab Pro 12.2 / Lenovo Win8 Tab / Eee Slate / '13 Nexus 7


#755 marty45714

marty45714

    Member

  • Members
  • PipPip
  • 45 posts

Posted 01 May 2013 - 10:54 AM

Hey guys, I had a private message conversation with Dan Rosenberg about exactly what the script does to accomplish the exploit to get root. One of the things that I DIDN'T realize was the importance of pressing a hardware button on the phone after the exploit is executed. Dan says "Next, when you trigger a hotplug event by pressing a hardware key, the kernel will execute pwn again as root, causing it to install su, etc."

 

So there is a good chance that a user will not get root if they don't press a hardware button on the phone when instructed to do so. I'm going to release one more version of my "VirtualBox" method that has some lines in the script that do a better job of bringing it to the user's attention that they need to press a button and that it's very important.

 

Marty, thank you for your continued support of your VB method !

 

n00bs REALLLLY should be using the Virtual Box method if they have no interest in learning some basic linux commands.


  • SamuriHL, matjmonk, livinginkaos and 3 others like this

#756 Erisdroid?

Erisdroid?

    Member

  • Members
  • PipPip
  • 31 posts
  • Current Device(s):Droid Bionic

Posted 01 May 2013 - 11:26 AM

I'm sure we are going to see a ton of these "If you've had trouble try this" thread. I have another to add to the mix. I was just about to give up on rooting my phone, when I said "one more time". I have an old laptop (Dell Inspiron D500). I tried Ubuntu 12.04 and it wouldn't boot. It said I was missing pae on my CPU (the part of the CPU that allows more than 4gig of memeory, I downloaded the 32bit version). I then went to 11.10 and I couldn't get Samba to start. I ran the updates on 11.10 to 12.04 LTS and I got a bunch of errors and I lost my network connection. I then tried Xubuntu 12.04 and Samba wouldn't install. I switched to Lubuntu 12.04 and Samba wouldn't install and I had to install Gedit too. I then got away from Ubuntu all together and installed Puppy Linux. The linux commands on page one aren't recognized in Puppy. At this point i was about to give up. VM doesn't work well on my machine due to limited harddrive space and memory, so I didn't consider that an option.

 

Last night I tried one last version of linux. Backtrack R5. This is a large version, full of network diagnostic tools. I downloaded the 32bit version and flashed it to a USB stick. Backtrack loaded with NO errors. I had a full network connection. I then tried the terminal and followed the instructions on page one. All of the commands executed with no issues. Samba installed and was running. I didn't have to <sudo apt-get install update>, it just worked. I could restart Samab with no problem either (this was my issue last time). I would say that if Ubuntu has failed you try Backtrack, backtrack-linux.org. I just saw the script that was posted today and that may get people out of a bind, but I always wanted to try Backtrack.

 

I do have one last question; how long does it take for the daemon to run? After executing the .run comand i see that daemon started succesfully.

 

Thank you for your time and good luck

 

****Also a huge thank you to the developers and everyone else that has helped, not just me, but anyone.****



#757 Int_Rnd_Pooka

Int_Rnd_Pooka

    Member

  • Members
  • PipPip
  • 284 posts
  • Current Device(s):Bionic

Posted 01 May 2013 - 01:07 PM

I'm glad it worked for you finally. Eleventeen distros later. Despite this (and that I hate Ubuntu more than any other linux flavor), I still recommend that people try using 32-bit Ubuntu 12.×× since that's what the guide is written against.

If you already have an existing linux install and/or are proficient enough to adapt this guide as necessary, go on with your bad rear end alternative linux distribution! Best of luck.

If you are completely inexperienced, follow the directions instead.

#758 Rapitharian

Rapitharian

    Member

  • Members
  • PipPip
  • 30 posts
  • Current Device(s):Bionic

Posted 01 May 2013 - 02:15 PM

I'm sure we are going to see a ton of these "If you've had trouble try this" thread. I have another to add to the mix. I was just about to give up on rooting my phone, when I said "one more time". I have an old laptop (Dell Inspiron D500). I tried Ubuntu 12.04 and it wouldn't boot. It said I was missing pae on my CPU (the part of the CPU that allows more than 4gig of memeory, I downloaded the 32bit version). I then went to 11.10 and I couldn't get Samba to start. I ran the updates on 11.10 to 12.04 LTS and I got a bunch of errors and I lost my network connection. I then tried Xubuntu 12.04 and Samba wouldn't install. I switched to Lubuntu 12.04 and Samba wouldn't install and I had to install Gedit too. I then got away from Ubuntu all together and installed Puppy Linux. The linux commands on page one aren't recognized in Puppy. At this point i was about to give up. VM doesn't work well on my machine due to limited harddrive space and memory, so I didn't consider that an option.
 
Last night I tried one last version of linux. Backtrack R5. This is a large version, full of network diagnostic tools. I downloaded the 32bit version and flashed it to a USB stick. Backtrack loaded with NO errors. I had a full network connection. I then tried the terminal and followed the instructions on page one. All of the commands executed with no issues. Samba installed and was running. I didn't have to , it just worked. I could restart Samab with no problem either (this was my issue last time). I would say that if Ubuntu has failed you try Backtrack, backtrack-linux.org. I just saw the script that was posted today and that may get people out of a bind, but I always wanted to try Backtrack.
 
I do have one last question; how long does it take for the daemon to run? After executing the .run comand i see that daemon started succesfully.
 
Thank you for your time and good luck
 
****Also a huge thank you to the developers and everyone else that has helped, not just me, but anyone.****


Please see the hint about daemon started in the post with the USB key image. It is back 3 or 4 pages.


Sent from my DROID BIONIC using Tapatalk 2

#759 dmgdmg

dmgdmg

    n00b

  • Members
  • Pip
  • 5 posts
  • Locationindia
  • Current Device(s):XT910

Posted 01 May 2013 - 06:38 PM

i rooted my XT910 successfully.......thanx dan


  • livinginkaos likes this

#760 Timmmmah

Timmmmah

    n00b

  • Members
  • Pip
  • 2 posts

Posted 01 May 2013 - 07:40 PM

Rock on... Root achieved and now back to crack flashing :-)


  • livinginkaos likes this




8 user(s) are reading this topic

0 members, 8 guests, 0 anonymous users