Jump to content


Photo

[ROOT] Motoshare 2: Old Bug, New Exploit


  • Please log in to reply
985 replies to this topic

#761 Erisdroid?

Erisdroid?

    Member

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

Posted 02 May 2013 - 04:05 AM

After all the trouble it worked!!

 

My final issue was that i had to reboot my phone. After daemon started it just sat there and did nothing. I killed it and disconnected my phone. I rebooted the phone and made sure it was in media mode for the usb connection and then if went right through.

 

Thank you again to all that helped and especially Dan for finding the exploit.


  • livinginkaos likes this

#762 Rapitharian

Rapitharian

    Member

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

Posted 02 May 2013 - 04:53 AM

Erisdroid,
Congrats and thanks for sharing what worked for you.
-Rap

Sent from my DROID BIONIC using Tapatalk 2

#763 tom49000

tom49000

    n00b

  • Members
  • Pip
  • 1 posts

Posted 02 May 2013 - 06:02 AM

I have never rooted a phone.  Unbutu is up and running.  But, don't I have to unlock the bootloader before I can root my Bionic.



#764 Memnoch73

Memnoch73

    ~The Devil~

  • Smod
  • 5,016 posts
  • Google+:memnoch73@gmail.com
  • LocationRochester, NY
  • Current Device(s):Pixel 3XL

Posted 02 May 2013 - 06:05 AM

I have never rooted a phone.  Unbutu is up and running.  But, don't I have to unlock the bootloader before I can root my Bionic.

 

No sir. You cannot unlock the Bionic Bootloader


  • Int_Rnd_Pooka likes this

Bluesig3_zpsfd248ca4.png

 


#765 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 02 May 2013 - 06:05 AM

I have never rooted a phone. Unbutu is up and running. But, don't I have to unlock the bootloader before I can root my Bionic.

Dang - ninja'd !
No. Root is a separate thing. The Bionic cannot have its bootloader unlocked.

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


#766 charliecrossfade

charliecrossfade

    n00b

  • Members
  • Pip
  • 5 posts

Posted 02 May 2013 - 01:53 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

can this be done through RSD lite yet? I tried to reinstall JB from my SD card and it did not remove the existing superuser.



#767 Int_Rnd_Pooka

Int_Rnd_Pooka

    Member

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

Posted 02 May 2013 - 03:27 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


can this be done through RSD lite yet? I tried to reinstall JB from my SD card and it did not remove the existing superuser.


It's always been something you can do with RSD Lite

#768 altspeed

altspeed

    Director of National Stupidity

  • Dedicated Supporter
  • PipPipPip
  • 654 posts
  • Twitter:@Pat_Droid
  • Google+:+Patrick Robinson
  • LocationDallas Texas
  • Current Device(s):RIP 8 & 16 GB Bionics, XT912 RAZR Maxx, XT907 RAZR M Current XT 1060 Motomaker Future Nexus 6

Posted 02 May 2013 - 05:05 PM

"it's the feel good exploit of the year! I laughed, I cried, women fell swooning about my feet"

 

Once Dan starts in, it's like we're all enthralled because we know that takes  Kernel snooping which is a very good analog for Jack Kerouac's Life snooping.

 

there are plenty good knowledgeable code geeks, Dan has the unteachable part.  The intuition, He's an artist, no less.


"We are the People Verizon warned you about"

8 GB Bionic JB, 16 GB Bionic JB, Bionic Lapdock X2, Razr Maxx XT912 JB, Razr M XT907 JBLX


#769 charliecrossfade

charliecrossfade

    n00b

  • Members
  • Pip
  • 5 posts

Posted 02 May 2013 - 07:59 PM

Finally got it. Huge thanks to the support in the forum. THANKS!

Matt


  • livinginkaos likes this

#770 bioniccrazy

bioniccrazy

    n00b

  • Members
  • Pip
  • 7 posts

Posted 02 May 2013 - 10:56 PM

Anyone else having hard time getting vm to connect?



#771 zetachi

zetachi

    n00b

  • Members
  • Pip
  • 9 posts
  • Google+:zetachi
  • LocationNYC
  • Current Device(s):Droid Bionic, Nexus 7, ASUS Transformer

Posted 03 May 2013 - 03:34 AM

Quick question. Anyone know why SuperUser asks to update binaries evey time I re-boot my phone?



#772 droidgeeek

droidgeeek

    n00b

  • Members
  • Pip
  • 2 posts

Posted 03 May 2013 - 11:31 AM

This was super easy and fast. Thanks! I prefer LINUX over windows anyways.


  • livinginkaos likes this

#773 droidgeeek

droidgeeek

    n00b

  • Members
  • Pip
  • 2 posts

Posted 03 May 2013 - 11:33 AM

I will mention that I have Droid Bionic and I found that I had to uninstall the Superuser app that I already had then run the script. Then all was good.



#774 bossboss

bossboss

    n00b

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

Posted 03 May 2013 - 12:29 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

 

 

 

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

 

 

I can't get step 14 to work.. missing /run.sh



#775 bossboss

bossboss

    n00b

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

Posted 03 May 2013 - 12:44 PM

so I had to repeat sudo ./run.sh a few times. Not ideal, but it worked!

 

command not found..  I am running latest Ubuntu 32bits...

 

 

 

Thanks again for this! It was my first experience using Ubuntu and I have to say after trying the live USB, I'm probably going to set up dual boot. It was fun to play with and a great learning experience.

I had the samba restart error, but was able to fight thru it. The bionic I rooted also has reboot tantrums, so I had to repeat sudo ./run.sh a few times. Not ideal, but it worked!

Now I'm not worried about updating my daily bionic and my fiancé's bionic.

Sent from my DROID BIONIC using Tapatalk 2



#776 Rapitharian

Rapitharian

    Member

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

Posted 03 May 2013 - 01:28 PM

Bossboss,
Are you in /tmp/share before doing the ./run?

-Rap

Sent from my DROID BIONIC using Tapatalk 2

#777 scott26

scott26

    n00b

  • Members
  • Pip
  • 1 posts

Posted 03 May 2013 - 03:40 PM

Okay hello all! I used this program on 13.04 Ubututu and it went all the way through the process with no problems gave me Superuser; however, I still do not have root! Ideas?



#778 Rapitharian

Rapitharian

    Member

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

Posted 03 May 2013 - 04:45 PM

Okay hello all! I used this program on 13.04 Ubututu and it went all the way through the process with no problems gave me Superuser; however, I still do not have root! Ideas?


Delete Superuser and try root again.
Sometimes SU causes that issue.
-Rap

Sent from my DROID BIONIC using Tapatalk 2

#779 dex741

dex741

    X Marks The Spot

  • Members
  • PipPip
  • 159 posts
  • LocationKuna ID
  • Current Device(s):Droid Turbo 2 ,ASUS ME302C , Nexus 7

Posted 03 May 2013 - 06:56 PM

Just tried to root  , did not go well  2nd time I tried .could someone take a look and make a suggustion

 

ubuntu@ubuntu:~$ mkdir /tmp/share

ubuntu@ubuntu:~$ sudo apt-get install samba

Reading package lists... Done

Building dependency tree

Reading state information... Done

The following extra packages will be installed:

tdb-tools

Suggested packages:

openbsd-inetd inet-superserver smbldap-tools ldb-tools

The following NEW packages will be installed:

samba tdb-tools

0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.

Need to get 4,130 kB of archives.

After this operation, 23.0 MB of additional disk space will be used.

Do you want to continue [Y/n]? y

Get:1

Please Login or Register to see this Hidden Content

quantal/main samba i386 2:3.6.6-3ubuntu5 [4,107 kB]

Get:2

Please Login or Register to see this Hidden Content

quantal/main tdb-tools i386 1.2.10-2 [22.8 kB]

Fetched 4,130 kB in 3s (1,055 kB/s)

Preconfiguring packages ...

Selecting previously unselected package samba.

(Reading database ... 161209 files and directories currently installed.)

Unpacking samba (from .../samba_2%3a3.6.6-3ubuntu5_i386.deb) ...

Selecting previously unselected package tdb-tools.

Unpacking tdb-tools (from .../tdb-tools_1.2.10-2_i386.deb) ...

Processing triggers for ureadahead ...

Processing triggers for ufw ...

Processing triggers for man-db ...

Setting up samba (2:3.6.6-3ubuntu5) ...

Generating /etc/default/samba...

update-alternatives: using /usr/bin/smbstatus.samba3 to provide /usr/bin/smbstatus (smbstatus) in auto mode

smbd start/running, process 6403

nmbd start/running, process 6439

Setting up tdb-tools (1.2.10-2) ...

update-alternatives: using /usr/bin/tdbbackup.tdbtools to provide /usr/bin/tdbbackup (tdbbackup) in auto mode

Processing triggers for ureadahead ...

Processing triggers for ufw ...

ubuntu@ubuntu:~$ sudo gedit /etc/samba/smb.conf

ubuntu@ubuntu:~$ sudo useradd guest -m -G users

ubuntu@ubuntu:~$ sudo passwd guest

Enter new UNIX password:

Retype new UNIX password:

passwd: password updated successfully

ubuntu@ubuntu:~$ sudo smbpasswd -a guest

New SMB password:

Retype new SMB password:

Added user guest.

ubuntu@ubuntu:~$ sudo restart smbd

smbd start/running, process 6601

ubuntu@ubuntu:~$ cd /tmp/share

ubuntu@ubuntu:/tmp/share$ wget

Please Login or Register to see this Hidden Content

--2013-05-04 03:11:44--

Please Login or Register to see this Hidden Content

Resolving vulnfactory.org (vulnfactory.org)... 199.188.204.9

Connecting to vulnfactory.org (vulnfactory.org)|199.188.204.9|:80... connected.

HTTP request sent, awaiting response... 200 OK

Length: 3304927 (3.2M) [application/x-tar]

Saving to: `motoshare2.tgz'

 

100%[======================================>] 3,304,927 233K/s in 15s

 

2013-05-04 03:11:59 (220 KB/s) - `motoshare2.tgz' saved [3304927/3304927]

 

ubuntu@ubuntu:/tmp/share$ tar xvf motoshare2.tgz

adb.linux

adb.osx

busybox

pwn

run.sh

su

Superuser.apk

ubuntu@ubuntu:/tmp/share$ sudo chmod 755 run.sh

ubuntu@ubuntu:/tmp/share$ cd /tmp/share/

ubuntu@ubuntu:/tmp/share$ sudo ./run.sh

[+] Waiting for device...

* daemon not running. starting it now on port 5037 *

* daemon started successfully *

[+] Device found.

[+] Pushing exploit...

4487 KB/s (366952 bytes in 0.079s)

5410 KB/s (1867568 bytes in 0.337s)

1591 KB/s (64498 bytes in 0.039s)

5197 KB/s (1578585 bytes in 0.296s)

pkg: /data/local/tmp/Superuser.apk

Failure [INSTALL_FAILED_ALREADY_EXISTS]

[+] Rooting phone...

[+] Your phone may appear to reboot. Please ignore this and continue with the exploit.

[+]

[+] Motoshare 2: Motorola 4.1.2 root exploit

[+] Copyright 2013 Dan Rosenberg (@djrbliss)

[+] Version 1.1

[+]

[+] Tested on Droid Bionic, Droid Razr (XT910)

[+]

[+] Getting root...

[+] 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.

 

[*] Cleaning up...

[*] Exploit complete. Press enter to reboot and exit.

 

ubuntu@ubuntu:/tmp/share$



#780 dex741

dex741

    X Marks The Spot

  • Members
  • PipPip
  • 159 posts
  • LocationKuna ID
  • Current Device(s):Droid Turbo 2 ,ASUS ME302C , Nexus 7

Posted 03 May 2013 - 09:42 PM

should I uninstall superuser and try again ? or will that screw something up ? this bionic had ever been rooted before running exploit.






7 user(s) are reading this topic

0 members, 7 guests, 0 anonymous users