Sunday, January 26, 2014

Turning a Kindle Fire 2 into a Hacking Tablet

Tablets are getting cheaper, and I just bought a Kindle Fire 2 for $67 refurbished.  I really bought it to mess around with, and will probably end up using it in my car for a tablet/radio.

In the meantime, I wanted to see if I could root it, run a real version of android (instead of amazon's version) and load it up with hacking tools.

Here is what I did:

Step 1.

Get Root - This was a bit tricky.  You need the adb tool for the android SDK, but it is included in some of the scripts and downloads.  The XDA forums got me pointed in the right direction, but what eventually 'got root' was a directory traversal vulnerability.

This post helped a lot. http://forum.xda-developers.com/showthread.php?t=2075959

But this is how I finally got root.  http://seclists.org/fulldisclosure/2013/Jun/115

After getting root, the tablet was very unstable.  I had to run some commands based on the scripts from the XDA thread linked above, and it eventually was stable.

Step 2

Brick the Device - Not on purpose, but I did.  I tried to take a shortcut.  My version of the Kindle Fire requires a second bootloader, and I tried to install it using an apk file.  I had to buy a fastboot cable and write a new (actually older) boot image to get the tablet running again.  I also wrote the second bootloader to the kindle at that time.  http://forum.xda-developers.com/showthread.php?t=2304584

Step 3

From that point on it was pretty easy.  The second bootloader adds some options, so I just had to flash the correct image.  I used cyanogenmod.  http://wiki.cyanogenmod.org/w/Install_CM_for_otter

Step 4

After that, it is just a matter of using the Linux Deploy app to install Kali to a chroot.  http://www.kali.org/how-to/kali-linux-android-linux-deploy/

Thanks to all the folks in the above links for helping make my cheap tablet something pretty cool.


Tuesday, January 7, 2014

Install Kali Linux on a Chromebook using crouton (now with Sana & Kali-Rolling)!

Please read update 4 for Kali-Rolling Instructions!!

I recently purchased a Chromebook Pixel.  I was looking at different methods of installing Kali Linux, and realized the best way would be to fork David Schneider's project Crouton, and add Kali as a distro option.

The fork has been merged, and here is how you can install Kali in a chroot on a Chromebook using crouton.

1.  Download or compile the crouton executable to your chromebook.

Download crouton here.

2. Open a shell (CTL/ALT/T and type shell) and run the executable specifying Kali as the release.

sudo sh -e ~/Downloads/kalicrouton -r kali-rolling -t xfce

3. Enter some info at the prompts.

4. Type the following in a shell to enter Kali.

sudo enter-chroot startxfce4

Many other options are available, and it is well documented on the github page.

https://github.com/dnschneid/crouton


Update:  I've noticed some comments crouton's version of Kali not having tools installed.  This is by design, because most chromebooks only have 16GB hard drives.  To install any tools, just use apt-get install.

Example (to install metasploit):

sudo apt-get install metasploit-framework

Update 2: Wiki available now:  https://github.com/dnschneid/crouton/wiki/Kali


BitCoin Donations:  
13X2aQrRLJ4pxfK64bVgY1qv3sjoQ93h4s


Update 3:  I have a merge request in for Kali Sana.  A compiled version of my fork is available here:

Download crouton here.

Update 4: I've added a fix for the kali-rolling issue, but it will remain in my fork.  I don't think the crouton branch will ever merge it.  They want to keep netsurf as part of the package.

https://github.com/nromsdahl/crouton

Download here

To install, the command is:  sudo sh -e ~/Downloads/kalicrouton -r kali-rolling -t xfce

Install Kali Linux on a Chromebook using crouton (now with Sana & Kali-Rolling)!

Please read update 4 for Kali-Rolling Instructions!!

I recently purchased a Chromebook Pixel.  I was looking at different methods of installing Kali Linux, and realized the best way would be to fork David Schneider's project Crouton, and add Kali as a distro option.

The fork has been merged, and here is how you can install Kali in a chroot on a Chromebook using crouton.

1.  Download or compile the crouton executable to your chromebook.

Download crouton here.

2. Open a shell (CTL/ALT/T and type shell) and run the executable specifying Kali as the release.

sudo sh -e ~/Downloads/kalicrouton -r kali-rolling -t xfce

3. Enter some info at the prompts.

4. Type the following in a shell to enter Kali.

sudo enter-chroot startxfce4

Many other options are available, and it is well documented on the github page.

https://github.com/dnschneid/crouton


Update:  I've noticed some comments crouton's version of Kali not having tools installed.  This is by design, because most chromebooks only have 16GB hard drives.  To install any tools, just use apt-get install.

Example (to install metasploit):

sudo apt-get install metasploit-framework

Update 2: Wiki available now:  https://github.com/dnschneid/crouton/wiki/Kali


BitCoin Donations:  
13X2aQrRLJ4pxfK64bVgY1qv3sjoQ93h4s


Update 3:  I have a merge request in for Kali Sana.  A compiled version of my fork is available here:

Download crouton here.

Update 4: I've added a fix for the kali-rolling issue, but it will remain in my fork.  I don't think the crouton branch will ever merge it.  They want to keep netsurf as part of the package.

https://github.com/nromsdahl/crouton

Download here

To install, the command is:  sudo sh -e ~/Downloads/kalicrouton -r kali-rolling -t xfce