Quote:
Originally Posted by justboo2u
Sooooo???
How did you do that?
Is the RAZR ARM-based or something else?
Inquiring Android tablets want to know!

|
Here is a link to my youtube video showing it working
http://youtu.be/ZaJo_zx5Td0
Here is a README file that i put together. You can accumulate the files yourself. I have not got around to uploading and seeding due to some seeding issues in Precise final beta, but the BT5 website has an arm download that has many files in it once you extract it but they need to be tweaked. The BT5 arm img is too large for VFAT filesystems but the link provided below will help you take care of that.
This has been tested on Atrix and my Droid Razr and they work perfectly.
I had to resize the original bt5.img to less than 4GB so that it would fit
onto the VFAT filesystem of the android device.
Cedit here
http://www.backtrack-linux.org/forum...ad.php?t=46709
From the BackTrack website you can download the original arm image
which comes with some boot files that need tweaking to get it to work
but I have done that for you.
*************************************bootbt********************************************************* ****
perm=$(id|cut -b 5)
if [ "$perm" != "0" ];then echo "This Script Needs Root! Type : su";exit;fi
busybox sysctl -w net.ipv4.ip_forward=1
export kit=/sdcard/BT5
export bin=/system/bin
export mnt=/data/local/mnt
export PATH=$bin:/usr/bin:/usr/local/bin:/usr/sbin:/bin:/usr/local/sbin:/usr/games:$PATH
export TERM=linux
export HOME=/root
losetup /dev/block/loop2 $kit/bt5.img
mount -o noatime -t ext2 /dev/block/loop2 $mnt
mount -t devpts devpts $mnt/dev/pts
mount -t proc proc $mnt/proc
mount -t sysfs sysfs $mnt/sys
echo "nameserver 8.8.8.8" > $mnt/etc/resolv.conf
echo "127.0.0.1 localhost bt5" > $mnt/etc/hosts
busybox chroot $mnt /bin/bash
echo "Stopping Backtrack on Razr"
umount $mnt/dev/pts
umount $mnt/proc
umount $mnt/sys
umount $mnt/root/.gvfs
sleep 2
umount $mnt
losetup -d /dev/block/loop2
*****************************************bootubu is basically the same**********************************
perm=$(id|cut -b 5)
if [ "$perm" != "0" ];then echo "This Script Needs Root! Type : su";exit;fi
busybox sysctl -w net.ipv4.ip_forward=1
export kit=/sdcard/ubuntu
export bin=/system/bin
export mnt=/data/local/mnt
export PATH=$bin:/usr/bin:/usr/local/bin:/usr/sbin:/bin:/usr/local/sbin:/usr/games:$PATH
export TERM=linux
export HOME=/root
losetup /dev/block/loop2 $kit/ubuntu.img
mount -o noatime -t ext2 /dev/block/loop2 $mnt
mount -t devpts devpts $mnt/dev/pts
mount -t proc proc $mnt/proc
mount -t sysfs sysfs $mnt/sys
echo "nameserver 8.8.8.8" > $mnt/etc/resolv.conf
echo "127.0.0.1 localhost bt5" > $mnt/etc/hosts
busybox chroot $mnt /bin/bash
echo "Stopping Ubuntu on Razr"
umount $mnt/dev/pts
umount $mnt/proc
umount $mnt/sys
umount $mnt/root/.gvfs
sleep 2
umount $mnt
losetup -d /dev/block/loop2
**************************************************************************************************** ****
I assume that you can figure out how to extract these files. If not,
then you should abort now.
I am not responsible for any damage that you may cause to your device
through neglegent behaviour.
With that being said let's move on to the goods.
There are a number of ways to move the files that you need to your phone.
I like to use adb myself, but this can be as simple as plugging in your phone
and selecting mass storage and dragging and dropping if you are indeed
that lazy.
Oh yeah, your device will need to be rooted.
##you just need to be sure that you have these files which most came with the BT5arm download
1. After extraction you will find these files;
BUSYBOX = busybox installbusybox.sh
BT5 = bootbt fsrw mountonly bt5.img unionfs
UBUNTU = bootubu fsrw mountonly ubuntu.img unionfs
2. There is no need to go to the Play Store (Market) and install the busybox
that you find there. Just copy or push busybox and busyboxinstaller.sh to
the /sdcard directory, start a shell (adb shell) or a trusty old emulator
on your phone and execute # sh busyboxinstaller.sh
**Be sure that all the files have the right permissions before the transfer
because once they are on your sdcard you may not be able to change the
perms from there #chmod +x -R BT5/*
#chmod +x -R UBUNTU/*
3. Now take and copy over the BT5/UBUNTU directory/s to your /sdcard and go
to the Play Store and download android vnc viewer if you plan on using
the GUI if you have not already
4. You are ready to rock and roll! Fire up a terminal from your phone and
#su
#cd /sdcard/BT5 or UBUNTU
#sh boobt or bootubu #and you should see the following lines
net.ipv4.ip_forward = 1
root@localhost:/#
**you can type in ls pentest/ in bt5 for a look at what's in there**
5. Now that you are in there let's change some passwords to get your GUI ready
BT5 = root@localhost:/#passwd (same command for UBUNTU)
BT5 = root@localhost:/#vncpasswd (same command for UBUNTU)
6. Now we need to add "export USER=root", but without the quotes to a couple
of files using the editor of your choice (vi, nano, etc...) if you prefer
nano you may have to download it "apt-get install nano"
root@localhost:/#nano /usr/bin/startvnc (ubuntu does not have the startvnc
or stopvnc scripts but you can make your own with the following script)
** #!/bin/bash
rm -rf /tmp/.X1*
export USER=root #looks like a good spot to me
vncserver -geometry 1024x600 **
and now do the same thing to the stopvnc file and save
7. Start the vnc server
root@localhost:/#startvnc
and you should see this;
New 'X' Desktop is localhost:1
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/localhost:1.log
***************In UBUNTU we gotta add the startvnc and stopvnc scripts to the
/usr/bin directory and give them chmod +x permissions**********************************
8. Now you are ready for the GUI. Simply hit your home button, leaving the
terminal running of course and start your android-vnc-viewer
Use the vnc passwd that you set
Set the address to 5901
Set the color to 24bit
Press connect and there you have it.
Press the menu button and set your input mode to touchpad
Press menu button and select disconnect to, uh, well, disconnect
Return to your terminal and enter stopvnc before entering exit
to leave BT5 or UBUNTU