Jump to content


Photo

[ROOT] Motoshare 2: Old Bug, New Exploit


  • Please log in to reply
985 replies to this topic

#681 Rapitharian

Rapitharian

    Member

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

Posted 28 April 2013 - 05:56 PM

Items needed to use the Bootable USB file:
1) A PC that can boot off of a USB drive.
2) 2GB or larger USB flash drive.
3) 2.2 GB free space on your Windows PC HDD
4) Linux image with the hack (Found here:

Please Login or Register to see this Hidden Content

)
5) Alex's USB Image Tool  V1.61 (Found here:

Please Login or Register to see this Hidden Content

)

Steps to run to gain root access.
1) Unzip Alex's Image tool to your hard drive.  (Keep all the files together.  Note Where you unzip the files to.)
2) Unzip the Linux image.  (Note where you unzip the file to.)
3) Insert your USB drive into your PC.  Note we will overwrite the entire USB.  Backup your files first if needed.)
4) Run Alex's Image tool. "USB Image Tool.exe"
5) Select your USB drive in the screen to the left.
6) Choose restore in the menu at the bottom.
7) Select the linux image you downloaded. "Linux-JB.img"
8) Confirm the overwrite of the drive.  (Wait for the process to finish and tell your the image is complete.)
9) Reboot your PC and boot off of the USB drive.
      (This is where we follow the original instructions.)
10) Once in Ubuntu open a terminal window and get your IP with the "ifconfig" command.
      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").
11) cd /tmp/share
12) On your Android device. Ensure you have enabled USB Debugging Mode (under Settings -> Development Settings). Ensure your device is connected via Wifi.
13) Open the "Files" app, and select "Remote storage". Click "Add storage", and fill in fields as follows:

Host IP address:         [your Linux machine's IP address]
Domain name:            WORKGROUP
Shared folder name:  share
User:                          guest
Password:                  droidrzr
setup the share on your phone.

14) On the linux machine, in the terminal window, execute this command. "./run.sh"


Helpfull hints:  
Phone needs to be in "Media device (MTP)" mode NOT "Mass Storage."  If you don't change this you will just get stuck at the following:
* daemon not running. starting it now on port 5037 *
* daemon started successfully *

 

If you are running the following command: "sudo apt-get install samba" and get an error.  run "sudo apt-get upgrade"  Then run "sudo apt-get install samba"  This should fix the issue.

The USB image file is HUGE about 1GB.

 

I will be on as much as I can to help support.

 

Good Luck,

Rap


  • SamuriHL, Int_Rnd_Pooka, Platy87 and 4 others like this

#682 SamuriHL

SamuriHL

    Android Warrior

  • Smod
  • 43,479 posts
  • Current Device(s):S21 Ultra, Pixel 6

Posted 28 April 2013 - 06:04 PM

Thanks.  I updated the OP with a link to your post.


  • Int_Rnd_Pooka likes this

Non potest esse nisi unus


#683 Rapitharian

Rapitharian

    Member

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

Posted 28 April 2013 - 06:24 PM

Hey folks, I'm looking for some guinea pigs to test an automated version of this process.

 

I created a minimal CentOS 6.4 32-bit installation on VirtualBox and wrote shell scripts to automate the exploit.

 

I've created a file (.ova) that you can import into VirtualBox on your WIndows PC, power up the VM, and it will run assist with connecting to the SMB share, and then run the exploit. This all happens right from the console without requiring a login.

 

The only bad news... The file is 487MB.

 

I've already rooted my phone, so I can't fully test the process.

 

I'm in the process of uploading this to DropBox so I can share it. Any other suggestions where I can upload the file to wider distribution?

 

I'd also like you Linux experts to contribute to this to make it better.

 

The most important thing is to make it easier for everyone to root their Bionic.

 

Post edited... Adding link to file:

 

Please Login or Register to see this Hidden Content

 

I have also Mirrored the file here:

Please Login or Register to see this Hidden Content

 

-Rap



#684 jpr9845

jpr9845

    JPR9845

  • Members
  • PipPip
  • 102 posts
  • Twitter:jpr9845
  • Google+:jpr9845
  • LocationSan Diego
  • Current Device(s):Samsung Galaxy Note 4

Posted 28 April 2013 - 08:26 PM

I made a bootable cd and Ubuntu comes up fine. I can even get to this page for the instructions. I just cannot figure out how to open a terminal window. How do I accomplish that? Using Ubuntu 12.04 LTS.



#685 charliecrossfade

charliecrossfade

    n00b

  • Members
  • Pip
  • 5 posts

Posted 28 April 2013 - 09:26 PM

Worked flawlessly on my Mom's Bionic. <3 free tethering. Thanks man

 

EDIT:  I ran into the issue that others had of Superuser not being able to install/update the binary. I couldn't figure it out, but here's one method I did that finally worked. Share username/pw etc doesn't matter, as long as it's a samba mounted share & an rfs# mount(and set correctly in run.sh). I ran run.sh...it pushed some files & rebooted...once the reboot was complete...it kept vibrating & vibrating for about 3-4minutes. i went back into the remote storage mount in Files app & let it continue to vibrate. Once it finally stopped. I pointlessly(yes this isn't needed) manually clicked on/installed Superuser.apk. I did that & finally hit enter one more time at the cmd prompt so it could reboot my phone once more. After that started up (it was unplugged after this 2nd reboot). I went back into Superuser.apk & everything was working fine. Before when it failed, I had been rebooting a 2nd time(hit the enter to reboot) before the vibrating had stopped, which seemed to be my issue.

 

I just thought the constant vibrating was a bug b/c the O.P. said something about 'a vibrate' (not constant) or something. Wrong or not that was my issue it seems.

Why isn't mine vibrating? it pushes files to my phone.. No root access and not able to update binaries. I have a feeling the existing superuser app is interfering. Any advice?

Thanks,

Matt



#686 jpr9845

jpr9845

    JPR9845

  • Members
  • PipPip
  • 102 posts
  • Twitter:jpr9845
  • Google+:jpr9845
  • LocationSan Diego
  • Current Device(s):Samsung Galaxy Note 4

Posted 28 April 2013 - 09:30 PM

When  copy and paste onto the Ubuntu terminal, at the point where I input

 

sudo apt-get install samba (the following results)

 

Reading package lists... Done

Building dependency tree

Reading state information... Done

Some Packages could not be installed. This may mean that you have

requested an impossible situation or if you are using the unstable

distribution that some required packages have not yet been created

or been moved out of Incoming.

 

The following information may help to resolve the situation:

 

The following packages have unmet dependencies:

 samba : Depends: samba-common (= 2:3.6.3-2ubuntu2.3 is to

be installed

              Depends: libwbclient0 (= 2:3.6.3-2ubuntu2.3 is to

be installed

              Recommends: tbd-tools but it is not going to be installed

E:  Unable to correct problems, you have held broken packages.

 

 

What do I need to do to make this work?


  • gkgk likes this

#687 charliecrossfade

charliecrossfade

    n00b

  • Members
  • Pip
  • 5 posts

Posted 28 April 2013 - 09:59 PM

Items needed to use the Bootable USB file:
1) A PC that can boot off of a USB drive.
2) 2GB or larger USB flash drive.
3) 2.2 GB free space on your Windows PC HDD
4) Linux image with the hack (Found here:

Please Login or Register to see this Hidden Content

)
5) Alex's USB Image Tool  V1.61 (Found here:

Please Login or Register to see this Hidden Content

)

Steps to run to gain root access.
1) Unzip Alex's Image tool to your hard drive.  (Keep all the files together.  Note Where you unzip the files to.)
2) Unzip the Linux image.  (Note where you unzip the file to.)
3) Insert your USB drive into your PC.  Note we will overwrite the entire USB.  Backup your files first if needed.)
4) Run Alex's Image tool. "USB Image Tool.exe"
5) Select your USB drive in the screen to the left.
6) Choose restore in the menu at the bottom.
7) Select the linux image you downloaded. "Linux-JB.img"
8) Confirm the overwrite of the drive.  (Wait for the process to finish and tell your the image is complete.)
9) Reboot your PC and boot off of the USB drive.
      (This is where we follow the original instructions.)
10) Once in Ubuntu open a terminal window and get your IP with the "ifconfig" command.
      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").
11) cd /tmp/share
12) On your Android device. Ensure you have enabled USB Debugging Mode (under Settings -> Development Settings). Ensure your device is connected via Wifi.
13) Open the "Files" app, and select "Remote storage". Click "Add storage", and fill in fields as follows:

Host IP address:         [your Linux machine's IP address]
Domain name:            WORKGROUP
Shared folder name:  share
User:                          guest
Password:                  droidrzr
setup the share on your phone.

14) On the linux machine, in the terminal window, execute this command. "./run.sh"


Helpfull hints:  
Phone needs to be in "Media device (MTP)" mode NOT "Mass Storage."  If you don't change this you will just get stuck at the following:
* daemon not running. starting it now on port 5037 *
* daemon started successfully *

The USB image file is HUGE about 1GB.

 

I will be on as much as I can to help support.

 

Good Luck,

Rap

Tried in Media Device mode. No success. How is this working for everyone else? I wish I could flash a clean copy of jelly bean and try fresh. How long should I wait for my phone to vibrate? I'm not getting any vibration. Please help.

Thanks,

Matt



#688 Higher

Higher

    n00b

  • Members
  • Pip
  • 5 posts

Posted 28 April 2013 - 10:03 PM

./run.sh: line 30: ./adb.linux: No such file or directory
[+] Waiting for device...
./run.sh: line 33: ./adb.linux: No such file or directory
[+] Device found.
[+] Pushing exploit...
./run.sh: line 38: ./adb.linux: No such file or directory
./run.sh: line 39: ./adb.linux: No such file or directory
./run.sh: line 40: ./adb.linux: No such file or directory
./run.sh: line 42: ./adb.linux: No such file or directory
./run.sh: line 43: ./adb.linux: No such file or directory
[+] Rooting phone...
[+] Your phone may appear to reboot. Please ignore this and continue with the exploit.
./run.sh: line 49: ./adb.linux: No such file or directory
[+] Please press any hardware button on your phone.
[+] Don't worry if the phone is unresponsive at this time.
[+] The device will vibrate when the exploit is complete.
[+] Press enter to continue once the device has vibrated.
 



#689 Higher

Higher

    n00b

  • Members
  • Pip
  • 5 posts

Posted 28 April 2013 - 10:06 PM

bash: ./run.sh:: No such file or directory
jack@ubuntu:/tmp/share$ [+] Waiting for device...
[+]: command not found
jack@ubuntu:/tmp/share$ ./run.sh: line 33: ./adb.linux: No such file or directory
bash: ./run.sh:: No such file or directory
jack@ubuntu:/tmp/share$ [+] Device found.
[+]: command not found
jack@ubuntu:/tmp/share$ [+] Pushing exploit...
[+]: command not found
jack@ubuntu:/tmp/share$ ./run.sh: line 38: ./adb.linux: No such file or directory
bash: ./run.sh:: No such file or directory
jack@ubuntu:/tmp/share$ ./run.sh: line 39: ./adb.linux: No such file or directory
bash: ./run.sh:: No such file or directory
jack@ubuntu:/tmp/share$ ./run.sh: line 40: ./adb.linux: No such file or directory
bash: ./run.sh:: No such file or directory
jack@ubuntu:/tmp/share$ ./run.sh: line 42: ./adb.linux: No such file or directory
bash: ./run.sh:: No such file or directory
jack@ubuntu:/tmp/share$ ./run.sh: line 43: ./adb.linux: No such file or directory
bash: ./run.sh:: No such file or directory
jack@ubuntu:/tmp/share$ [+] Rooting phone...
[+]: command not found
jack@ubuntu:/tmp/share$ [+] Your phone may appear to reboot. Please ignore this and continue with the exploit.
[+]: command not found
jack@ubuntu:/tmp/share$ ./run.sh: line 49: ./adb.linux: No such file or directory
bash: ./run.sh:: No such file or directory
jack@ubuntu:/tmp/share$ [+] Please press any hardware button on your phone.
[+]: command not found
jack@ubuntu:/tm



#690 smalldroid34

smalldroid34

    n00b

  • Members
  • Pip
  • 20 posts
  • Current Device(s):bionic

Posted 29 April 2013 - 01:02 AM

Thank you once again for root, and I am now proud to say I am running unbutu on my desktop. This was my first experience with it and have been teaching myself Linux as I dive deeper into android, has been a great expierence, thank you.

Sent from my DROID BIONIC using Tapatalk 2
  • Int_Rnd_Pooka and livinginkaos like this
Stock-Eclipsed/S1-Wizzed/S2-Synergized/S3-Blurred

#691 smalldroid34

smalldroid34

    n00b

  • Members
  • Pip
  • 20 posts
  • Current Device(s):bionic

Posted 29 April 2013 - 01:06 AM

Top icon, search bar type Terminal. Can drag short cut down to desktop

Sent from my DROID BIONIC using Tapatalk 2
Stock-Eclipsed/S1-Wizzed/S2-Synergized/S3-Blurred

#692 jpr9845

jpr9845

    JPR9845

  • Members
  • PipPip
  • 102 posts
  • Twitter:jpr9845
  • Google+:jpr9845
  • LocationSan Diego
  • Current Device(s):Samsung Galaxy Note 4

Posted 29 April 2013 - 01:16 AM

Thank you for the info, I was able to successfully root my Bionic. Now I just want to find out which version of Safestrap is the right one to use for JB. Is ver. 3.11 the right one?


  • livinginkaos likes this

#693 tupz

tupz

    n00b

  • Members
  • Pip
  • 3 posts

Posted 29 April 2013 - 03:06 AM

Why isn't mine vibrating? it pushes files to my phone.. No root access and not able to update binaries. I have a feeling the existing superuser app is interfering. Any advice?

Thanks,

Matt

 

I tried running the run.sh file many times w/o it rooting my phone properly. I did it one last time but uninstalled all existing Superuser apps (had 2 installed at 1 point). Mine didn't start vibrating until right after the first reboot. You just gotta be patient. Make sure your Remote Storage is mounted after the 1st reboot (just go back into Files > Remote Storage> Click on storage you mounted at the beginning)...mine was already vibrating consistently at this point but I did it anyway. Waited several minutes before it stopped. Then I ran that Superuser.apk in the remote storage (once again, it shouldn't/isn't needed, but i did it anyway). Then hit enter a second time on the run.sh script as it rebooted the phone once last time. I let it boot back up &  everything seemed to be rooted properly



#694 nine5raptor

nine5raptor

    Droid Master

  • Dedicated Supporter
  • PipPipPip
  • 371 posts
  • LocationMO
  • Current Device(s):Droid Bionic, Droid Razr M, Nexus 5, Moto X

Posted 29 April 2013 - 03:08 AM

Thank you for the info, I was able to successfully root my Bionic. Now I just want to find out which version of Safestrap is the right one to use for JB. Is ver. 3.11 the right one?

I am using 3.11 now on jb.  Same as I was running on ICS.



#695 Rapitharian

Rapitharian

    Member

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

Posted 29 April 2013 - 04:45 AM

When  copy and paste onto the Ubuntu terminal, at the point where I input

 

sudo apt-get install samba (the following results)

 

Reading package lists... Done

Building dependency tree

Reading state information... Done

Some Packages could not be installed. This may mean that you have

requested an impossible situation or if you are using the unstable

distribution that some required packages have not yet been created

or been moved out of Incoming.

 

The following information may help to resolve the situation:

 

The following packages have unmet dependencies:

 samba : Depends: samba-common (= 2:3.6.3-2ubuntu2.3 is to

be installed

              Depends: libwbclient0 (= 2:3.6.3-2ubuntu2.3 is to

be installed

              Recommends: tbd-tools but it is not going to be installed

E:  Unable to correct problems, you have held broken packages.

 

 

What do I need to do to make this work?

 

If you are running the following command: "sudo apt-get install samba" and get an error.  run "sudo apt-get upgrade"  Then run "sudo apt-get install samba"  This should fix the issue.

-Rap



#696 qwb4

qwb4

    n00b

  • Members
  • Pip
  • 1 posts
  • Current Device(s):XT910 4.1.2

Posted 29 April 2013 - 05:21 AM

Really thanks a lot for the simple root method on JB. :D



#697 jpr9845

jpr9845

    JPR9845

  • Members
  • PipPip
  • 102 posts
  • Twitter:jpr9845
  • Google+:jpr9845
  • LocationSan Diego
  • Current Device(s):Samsung Galaxy Note 4

Posted 29 April 2013 - 08:25 AM

My phone is rooted, but now every time I turn on my phone it comes up on the flash screen. To get it to boot up I have to press both volume keys and do a normal boot.



#698 DanTe14

DanTe14

    n00b

  • Members
  • Pip
  • 1 posts

Posted 29 April 2013 - 10:09 AM

Thank you!!!

Working perfect!!!


  • livinginkaos likes this

#699 cdelariva

cdelariva

    n00b

  • Members
  • Pip
  • 1 posts
  • Current Device(s):Bionic

Posted 29 April 2013 - 10:13 AM

this happened to me to..i realized that i want logged in to my share folder and that fixed it

Sent from my DROID BIONIC using Tapatalk 2

#700 jpr9845

jpr9845

    JPR9845

  • Members
  • PipPip
  • 102 posts
  • Twitter:jpr9845
  • Google+:jpr9845
  • LocationSan Diego
  • Current Device(s):Samsung Galaxy Note 4

Posted 29 April 2013 - 10:17 AM

What?






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users