Jump to content


Photo

[ROOT] Motoshare 2: Old Bug, New Exploit


  • Please log in to reply
984 replies to this topic

#1 djrbliss

djrbliss

    Security Exploit Specialist

  • Root Exploit God
  • 21 posts

Posted 22 April 2013 - 01:25 PM

*
POPULAR

As promised, this post describes how to root the Droid Bionic Jelly Bean build. It should also work on the XT910 Jelly Bean build, but this hasn't been tested yet. Fortunately for Bionic and XT910 owners, I was able to modify Motoshare, which was originally created for the Atrix HD, to work for these devices. My plans to stop looking for new Motorola exploits have not changed at this time, so don't read into this too much.

The exploit requires setting up a special Samba share and mounting this share on your phone using the Files app. I apologize that this process may seem involved for some of you, and request that members of this community help each other out if some of you are having problems completing the procedure. I'm not able to provide individual tech support to every user who wants to root this phone.

 
A Windows version of this exploit is not possible for technical reasons. Please don't waste anyone's time by asking about a Windows version.
 
EDIT by SamuriHL
 
Rapitharian has put together an image and some instructions for those who are having trouble:  

Please Login or Register to see this Hidden Content


 
Marty45714 put together another one:

Please Login or Register to see this Hidden Content


 
 
The following instructions require a working Linux installation. The following instructions are for Ubuntu. If you don't want to install Ubuntu permanently on your machine, I suggest using a LiveCD installation. Instructions on setting this up are described here:

Please Login or Register to see this Hidden Content



A 32-bit distribution is recommended.
 
Once you're booted into Ubuntu, open a terminal.
 
If you are using a 64-bit Linux distribution, you'll need to install 32-bit compatibility libraries in order to use the ADB binary bundled with the exploit. You may skip this step if you're using a 32-bit distribution.


Please Login or Register to see this Hidden Content

Create a new directory for your Samba share:


Please Login or Register to see this Hidden Content

Next, install the samba package:


Please Login or Register to see this Hidden Content

Edit the configuration file for samba:


Please Login or Register to see this Hidden Content

Add the following lines to the end of the configuration file and save your changes:


Please Login or Register to see this Hidden Content

Close the text editor once you've saved your changes.

Next, create a user for the Samba share by typing in the terminal:


Please Login or Register to see this Hidden Content

Set a password for the new user. Remember this password:


Please Login or Register to see this Hidden Content

Provide a password here and press enter. You won't see the characters you're typing, so be careful.

Next, set a password on the share. Use the same password you just provided:


Please Login or Register to see this Hidden Content

Type the password you created before and press enter.

Next, restart the Samba server:


Please Login or Register to see this Hidden Content

Finally, download and prepare the required files to the Samba share:


Please Login or Register to see this Hidden Content

At this point, you'll need to know the IP address of your Linux host, which you can get by running "ifconfig" from your terminal (it should be of the form "192.168.x.x").

Next, move over to your Android device. Ensure you have enabled USB Debugging Mode (under Settings -> Development Settings). Ensure your device is connected via Wifi.

Open the "Files" app, and select "Remote storage". Click "Add storage", and fill in fields as follows:


Please Login or Register to see this Hidden Content

At this point, the phone will mount your Linux share. To complete the process, plug in your phone via USB to your Linux machine, and type the following in your Linux terminal:


Please Login or Register to see this Hidden Content

Follow the instructions in the exploit. Congratulations, enjoy your rooted device.
 
I can't stress this enough: I can't provide individualized tech support for everyone on this forum. Please help each other.
 
Paypal:

Please Login or Register to see this Hidden Content


 
In light of recent events, I've donated $100 of your donations to One Fund Boston (

Please Login or Register to see this Hidden Content

), a fund set up for the families of those affected by the Boston Marathon bombings. I encourage all those thinking of donating to me to consider donating to a reputable charity organization instead (or in addition).


  • Pzyduck, milski65, Ramdanih and 111 others like this

#2 jp1044

jp1044

    DEVELOPER

  • News Writer
  • PipPipPipPip
  • 1,104 posts
  • Twitter:@jp1044
  • Google+:jp1044@gmail.com
  • LocationColorado
  • Current Device(s):MOTO X Developer Edition, Droid RAZR HD (backup)

Posted 22 April 2013 - 01:29 PM

Thank you dan! You come to the rescue again. You deserve every donation you get!

Sent from my DROID RAZR using Tapatalk 2
  • Coo1GuyPau1 and jgg like this

If you feel the urge to donate to me, you can do so here -> Donate

#3 T3T3droid

T3T3droid

    D3v3lop3r/Th3m3r/Machin3

  • Developer
  • 1,115 posts
  • Google+:t3t3droid@gmail.com
  • LocationConnecticut
  • Current Device(s):Droid Bionic, Droid Razr M, SGS4

Posted 22 April 2013 - 01:33 PM

Thanks SOOOOOO much Dan! Well deserved donation sent!


Posted Image
Sig by Bama
If you like our work please consider
Donating towards
Phones and Site costs :D Thanks!!

#4 SamuriHL

SamuriHL

    Android Warrior

  • Smod
  • 23,687 posts
  • Current Device(s):Samsung S4 GPE, Note 10.1 2014

Posted 22 April 2013 - 01:46 PM

I have been through this method and Livinginkaos knows it, as well, so, we will try to provide as much help as we can.  John Galt will try to create an image that's pre-set up so that it'll be easier for those who aren't familiar with Linux.  That may take some time, though, so, doing it yourself is the way to go if you can.


  • johnlgalt, Pur3vil and livinginkaos like this

R6bmQQ4.jpg

Samsung S4 Google Play Edition

Nexus 6


#5 hadeshorn9

hadeshorn9

    Moot Minion

  • Dedicated Supporter
  • PipPipPip
  • 915 posts
  • LocationBoston MA area
  • Current Device(s):Moto X DE, retired Bionic, Dell Venue 8, Chromecast, Kindle fire

Posted 22 April 2013 - 01:47 PM

Thank you Dan!

You have earned it! Paid the man!! more than I pledged!


OG -> Bionic via SamuriHL's HoM! We haz JB Rooted via Dr. DJRBliss! Many thanks!!! Moto X DE Stock cause why mess with a good thing!


#6 livinginkaos

livinginkaos

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

  • Administrator
  • 10,982 posts
  • Google+:Hangouts - livinginkaos@gmail.com
  • LocationOregon
  • Current Device(s):Droid Turbo / LG G3 / Galaxy S5 / HTC One M8 / Razr HD Dev / HTC EVODesign on FreedomPop / Chromecast / Samsung Tab Pro 12.2 / Lenovo Win8 Tab / Eee Slate / '13 Nexus 7 / Asus TF300 / Galaxy Tab 2 / Iconia Tab A500

Posted 22 April 2013 - 01:47 PM

Thank you DAN !!!  I think you'll feel the love from this Bionic community - it's gotta be the best around !

 

Sent $112 - a little more than my pledge.

 

Here's a link to a vid on setting up vmplayer and ubuntu -

 


  • SamuriHL, hadeshorn9, Staf_in_Wah and 1 other like this

b2wvCBn.png

Sig by livinginkaos
Droid Turbo / LG G3 / Galaxy S5 / HTC One M8 / Razr HD Dev / HTC EVODesign on FreedomPop / Chromecast / Samsung Tab Pro 12.2 / '13 Nexus 7 / Lenovo Win8 Tab / Asus TF300 / Eee Slate / Galaxy Tab 2 / Iconia A500


#7 tucstwo

tucstwo

    www.drdevs.com

  • Administrator
  • 4,407 posts
  • Twitter:tucstwo
  • Google+:tucstwo@gmail.com
  • LocationNJ
  • Current Device(s):HTC One M8, Nexus 7 (flo)

Posted 22 April 2013 - 01:59 PM

Awesome stuff!

pacsig.png
Visit DRDevs.com hosting site for all official Droidrzr.com ROMs, Apps, GApps and other mods/files!!

Please PM me if you need help!

I will be hosting AOSP-Based ROM GApps packages!

Download the most Up-to-Date GApps Packages for AOSP ROMs from me here!


#8 vdubdan87

vdubdan87

    Divot Repair Specialist

  • Members
  • PipPipPipPip
  • 2,466 posts
  • LocationFlorida
  • Current Device(s):Nexus 5 16 GB, Nexus 7 (2012) 32 GB

Posted 22 April 2013 - 02:03 PM

Thank you Dan not just for this, but every exploit you've given us. Your work is absolutely amazing! This makes me feel more comfortable knowing if I ever have to FDR I can still get root back.

 


#9 Coo1GuyPau1

Coo1GuyPau1

    n00b

  • Members
  • Pip
  • 22 posts
  • LocationCarlsbad, CA
  • Current Device(s):Droid Bionic ROOTED thanks to DanNSam

Posted 22 April 2013 - 02:06 PM

Thanks Dan!!!!!!! Donation sent!!!!



#10 retRon

retRon

    Freebird

  • Dedicated Supporter
  • PipPipPipPip
  • 1,865 posts
  • LocationAZ
  • Current Device(s):Rooted Samsung Galaxy Note 3, Nexus 7 (Thanks KAOS)

Posted 22 April 2013 - 02:09 PM

Thank you Dan, pledge amount of $10 just sent.



#11 soocold

soocold

    OC & OCD Specialist

  • Smod
  • 7,082 posts
  • Google+:amcsocold@gmail.com
  • LocationTouching something electronic
  • Current Device(s):Nexus 4 x2 , HTC ONE, Nexus 7

Posted 22 April 2013 - 02:09 PM

Thank you dan sooooo much.

Sent from my DROID BIONIC using Tapatalk 2

pveoVTW.png

sig by jayrod

↓↓click me if you aren't squeamish to electronic abuse↓↓
2760259.png


The Rules-Follow them.

 

Do you like our forum? Do you call it your second home? Help us with the upkeep


#12 robinmwoolery

robinmwoolery

    n00b

  • Members
  • Pip
  • 9 posts

Posted 22 April 2013 - 02:11 PM

Donation sent. You are AWESOME!

Sent from my DROID BIONIC using Tapatalk 2

#13 dctrbnsttr

dctrbnsttr

    n00b

  • Members
  • Pip
  • 14 posts

Posted 22 April 2013 - 02:11 PM

donation sent!

#14 jayrod

jayrod

    Bacon, Cheese & Mod Connoisseur

  • Moderator
  • 6,139 posts
  • Google+:https://www.google.com/+JaysonRodenberg
  • LocationWilmington NC
  • Current Device(s):Galaxy S4 / Dev X

Posted 22 April 2013 - 02:12 PM

Thank you soooo much  for doing this again! I didn't loose root on my backup Bionic,but knowing that things can happen,even if you go through the correct protection safeguards, yeah..didn't want to risk it on my main.Having you save the Bionic...when it's basically EOL...there really aren't enough words to express just how thankful myself and the Bionic community are! I know things have changed dramatically with getting these exploits to work over the last year + and having a RAZR, and 2 Bionics all I can say is thank you very much for your work! Without root,.. we'd have boring,non tapped phones the way The powers that be think we should have!


  • Platy87 and vdubdan87 like this

uEVaU9j.pngHlAF7Re.png
♊ Bionic  ♊ RAZR ♊ Galaxy S4  ♊ Moto Dev X

 

 


#15 rzdz03

rzdz03

    n00b

  • Members
  • Pip
  • 1 posts

Posted 22 April 2013 - 02:13 PM

Dan,

 

Thank you for doing this everyone in the Bionic community is very Thankful!

 

you to SamuriHL ;-)



#16 pistacio

pistacio

    Member

  • Members
  • PipPip
  • 287 posts
  • Locationsoutheast MA
  • Current Device(s):unlocked Razr Maxx HD, Xoom WiFi

Posted 22 April 2013 - 02:13 PM

Thank you! $20 pledge sent!<br /><br />Sent from my DROID BIONIC using Tapatalk 2

#17 Nola

Nola

    Member

  • Members
  • PipPip
  • 85 posts

Posted 22 April 2013 - 02:15 PM

$25 sent your way Dan, thanks again!

Sent from my DROID BIONIC using Tapatalk 2

#18 soocold

soocold

    OC & OCD Specialist

  • Smod
  • 7,082 posts
  • Google+:amcsocold@gmail.com
  • LocationTouching something electronic
  • Current Device(s):Nexus 4 x2 , HTC ONE, Nexus 7

Posted 22 April 2013 - 02:16 PM

Pledge fulfilled!

Sent from my DROID BIONIC using Tapatalk 2

pveoVTW.png

sig by jayrod

↓↓click me if you aren't squeamish to electronic abuse↓↓
2760259.png


The Rules-Follow them.

 

Do you like our forum? Do you call it your second home? Help us with the upkeep


#19 tucstwo

tucstwo

    www.drdevs.com

  • Administrator
  • 4,407 posts
  • Twitter:tucstwo
  • Google+:tucstwo@gmail.com
  • LocationNJ
  • Current Device(s):HTC One M8, Nexus 7 (flo)

Posted 22 April 2013 - 02:19 PM

I have been through this method and Livinginkaos knows it, as well, so, we will try to provide as much help as we can.  John Galt will try to create an image that's pre-set up so that it'll be easier for those who aren't familiar with Linux.  That may take some time, though, so, doing it yourself is the way to go if you can.

Question: Do we need to run the chmod 755 run.sh as sudo? Will we get a permission denied?


pacsig.png
Visit DRDevs.com hosting site for all official Droidrzr.com ROMs, Apps, GApps and other mods/files!!

Please PM me if you need help!

I will be hosting AOSP-Based ROM GApps packages!

Download the most Up-to-Date GApps Packages for AOSP ROMs from me here!


#20 2THEXTRM

2THEXTRM

    Member

  • Dedicated Supporter
  • PipPip
  • 67 posts
  • Twitter:2THEXTRM
  • LocationCentral NY

Posted 22 April 2013 - 02:19 PM

Sweeeeet! Thanks Dan, my $20 donation has been sent!

Sent from my DROID BIONIC using Xparent Skyblue Tapatalk 2

Moto, Give me what I want, and I'll go away...


#21 SamuriHL

SamuriHL

    Android Warrior

  • Smod
  • 23,687 posts
  • Current Device(s):Samsung S4 GPE, Note 10.1 2014

Posted 22 April 2013 - 02:20 PM

Question: Do we need to run the chmod 755 run.sh as sudo? Will we get a permission denied?

 

When I did it I did it as sudo.  I don't have my linux VM open right now else I'd check.  Very likely though.  I'll update Dan's instructions.  Better safe than sorry.


R6bmQQ4.jpg

Samsung S4 Google Play Edition

Nexus 6


#22 tucstwo

tucstwo

    www.drdevs.com

  • Administrator
  • 4,407 posts
  • Twitter:tucstwo
  • Google+:tucstwo@gmail.com
  • LocationNJ
  • Current Device(s):HTC One M8, Nexus 7 (flo)

Posted 22 April 2013 - 02:21 PM

When I did it I did it as sudo.  I don't have my linux VM open right now else I'd check.  Very likely though.  I'll update Dan's instructions.  Better safe than sorry.

ok, I was gonna suggest it because it seems out of place like that. It couldn't hurt to run it as sudo.


pacsig.png
Visit DRDevs.com hosting site for all official Droidrzr.com ROMs, Apps, GApps and other mods/files!!

Please PM me if you need help!

I will be hosting AOSP-Based ROM GApps packages!

Download the most Up-to-Date GApps Packages for AOSP ROMs from me here!


#23 ReservedName

ReservedName

    Member

  • Members
  • PipPip
  • 130 posts

Posted 22 April 2013 - 02:27 PM

hey samuri can i do these terminal commands from mac?

seems like I could install samba for osx but figured i'd ask before trying



#24 SamuriHL

SamuriHL

    Android Warrior

  • Smod
  • 23,687 posts
  • Current Device(s):Samsung S4 GPE, Note 10.1 2014

Posted 22 April 2013 - 02:31 PM

ok, I was gonna suggest it because it seems out of place like that. It couldn't hurt to run it as sudo.

 

No it doesn't hurt even if it's not required.  Again, I'd rather err on the side of caution with what we know works than have people run into problems and have to support a bunch of people for it.


R6bmQQ4.jpg

Samsung S4 Google Play Edition

Nexus 6


#25 SamuriHL

SamuriHL

    Android Warrior

  • Smod
  • 23,687 posts
  • Current Device(s):Samsung S4 GPE, Note 10.1 2014

Posted 22 April 2013 - 02:32 PM

hey samuri can i do these terminal commands from mac?

 

I honestly do not know.  If you can set up a samba share on the Mac it MIGHT work.  Completely and totally untested AFAIK.  The osx adb binary is in there so all I can say is try and please report back if it works or not.


  • Int_Rnd_Pooka likes this

R6bmQQ4.jpg

Samsung S4 Google Play Edition

Nexus 6


#26 NewtG

NewtG

    n00b

  • Members
  • Pip
  • 5 posts
  • Current Device(s):Droid Bionic

Posted 22 April 2013 - 02:34 PM

Thanx Dan, donation sent, sorry It could not be more!!



#27 ReservedName

ReservedName

    Member

  • Members
  • PipPip
  • 130 posts

Posted 22 April 2013 - 02:36 PM

I honestly do not know.  If you can set up a samba share on the Mac it MIGHT work.  Completely and totally untested AFAIK.  The osx adb binary is in there so all I can say is try and please report back if it works or not.

lol i'm always the one to test djrbliss stuff on mac last time bionic was rooted i even combined his windows version of the exploit into a mac script. doubt i'll be doing that this time though..

wish me luck


  • SamuriHL and kitcostantino like this

#28 milski65

milski65

    Droid Master

  • Dedicated Supporter
  • PipPipPip
  • 740 posts
  • Twitter:milski65

Posted 22 April 2013 - 02:39 PM

Thanks for everything you've done for Android Dan.  You've had a huge impact on making us who we are today.  



#29 Int_Rnd_Pooka

Int_Rnd_Pooka

    Member

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

Posted 22 April 2013 - 02:47 PM

Test it on Mac. Worst case is that it doesn't work and you FXZ. Booting into a livecd isn't a problem on windows boxes, but I don't know if you can do that with a Mac. You can certainly run Linux in a network aware VM to accomplish this if Mac boxes won't do it natively.

#30 Tomsg123

Tomsg123

    Member

  • Members
  • PipPip
  • 30 posts

Posted 22 April 2013 - 02:49 PM

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.


  • dcrazy, geekabilly, SamuriHL and 15 others like this




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users