Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
Exthero
Old
#1  
Junior Member - OP
Thanks Meter 5
Posts: 10
Join Date: Mar 2011
Default Installing BackTrack5 onto the Motorola Atrix 4G

As I am not allowed to post this where it should be, this seems to be the next best place.


Hardware Needed:

* The Motorola Atrix 4G (without this you wont be going very far)
* Atleast a 4 Gb SD card
* a way of transfering data from your computer onto the SD card (The supplied USB cable or an SD adaptor)

Apps Needed:

* SuperUser (If your on this site, you most likely already have this)
* Just about any Terminal Emulator will work (I used Better Terminal Emulator Pro)
* Any VNC Viewing Client (I used androidVNC)
* A Busybox installer (I used Stericson's BusyBox installer)

Software used:

* I used the BackTrack5 version posted by msullivan, found **HERE**:

I used a slightly edited version of the bt file from the bundle


just copy and paste over the original bt file:
Code:
perm=$(id|cut -b 5)
if [ "$perm" != "0" ];then echo "This script requires root! Type: su"; exit; fi
busybox mount -o remount,rw /dev/block/mmcblk0p5 /system
export kit=/sdcard-ext/BT5
export bin=/system/bin
export mnt=/data/local/bt5
mkdir $mnt
export PATH=$bin:/usr/bin:/usr/local/bin:/usr/sbin:/bin:/usr/local/sbin:/usr/games:$PATH
export TERM=linux
export HOME=/root
if [ -b /dev/loop7 ]; then
	echo "Loop device exists"
else
	busybox mknod /dev/loop7 b 7 0
fi
#mount -o loop,noatime -t ext2 $kit/bt5.img $mnt
losetup /dev/block/loop7 $kit/bt5.img
mount -t ext2 /dev/block/loop7 $mnt
mount -t devpts devpts $mnt/dev/pts
mount -t proc proc $mnt/proc
mount -t sysfs sysfs $mnt/sys
busybox sysctl -w net.ipv4.ip_forward=1
echo "nameserver 8.8.8.8" > $mnt/etc/resolv.conf
echo "nameserver 8.8.4.4" >> $mnt/etc/resolv.conf
echo "127.0.0.1 localhost bt5" > $mnt/etc/hosts
echo "Ubuntu is configured with SSH and VNC servers that can be accessed from the IP:"
ifconfig eth0
echo " "
busybox chroot $mnt /bin/bash

echo "Shutting down BackTrack ARM"
umount $mnt/dev/pts
umount $mnt/proc 
umount $mnt/sys 
umount $mnt
losetup -d /dev/loop7
Installation Steps:

1. Make sure you have enough space to work with (atleast 4Gb).
2. Edit the bt file with the above coding.
3. Copy over the BT5 folder onto your SD card however you see fit, I just used a SD to USB adaptor that I got with my SD card.
4. Disconnect the USB cable if you have it connected.
5. open your Terminal emulator and type:
Code:
su <ENTER>
6. Type:
Code:
cd /sdcard-ext/BT5 <ENTER>
7. Type:
Code:
sh bt <ENTER>
8. The bt file should run, and leave you with a red command prompt.
Hit the home button.

9. Open your VNC Viewer and enter the login information.
Code:
	Nickname: BackTrack5
	Password: root
	Address:  127.0.0.1
	Port:	  5901
The screen size still needs adjusting however as I believe it is set at 800×480 currently.
The Following 2 Users Say Thank You to Exthero For This Useful Post: [ Click to Expand ]
 
nexxusty
Old
#2  
nexxusty's Avatar
Senior Member
Thanks Meter 20
Posts: 143
Join Date: May 2011
Location: Toronto, Ontario
Sick. Just sick.

Cant wait to crack some Wifi with this. Anyone test this out and get a successful crack?
 
Exthero
Old
#3  
Junior Member - OP
Thanks Meter 5
Posts: 10
Join Date: Mar 2011
I haven't looked too far into it, however I do believe that this is almost useless as a "cracking" distro on ARM hardware. AFAIK many things don't/can't work. for instance injecting is a no go (real turn off for me, but that is what a netbook is for).
 
barry99705
Old
#4  
barry99705's Avatar
Senior Member
Thanks Meter 102
Posts: 618
Join Date: Aug 2008
Until we get better drivers for the wifi, we don't have injection, or monitor mode. I've also found editing scripts can be a bitch because the on screen keyboard is either in the way, or the enter doesn't work as enter if using nano, running vi really hoses things up. My external bluetooth keyboard helps with this, but a bluetooth mouse while it works, is waaaaaaaaaaaaaaay (no really) too sensitive on the Atrix. Hooked up to an external monitor in webtop mode it works much better, but I've not tried running backtrack from there.
Winter is coming.
The Following User Says Thank You to barry99705 For This Useful Post: [ Click to Expand ]
 
nexxusty
Old
(Last edited by nexxusty; 24th May 2011 at 06:35 PM.)
#5  
nexxusty's Avatar
Senior Member
Thanks Meter 20
Posts: 143
Join Date: May 2011
Location: Toronto, Ontario
Yeah I did not even consider the ARM architecture. Very good point.

Do they make a Rosetta type app for Linux? Anyone know? That could at least help use get past the Architectural limits.

*edit*

Still not thinking straight, that app is for PPC users.
 
BravoMotorola
Old
#6  
BravoMotorola's Avatar
Senior Member
Thanks Meter 349
Posts: 1,508
Join Date: Oct 2010
In the beginning where the script says "sdcard-ext/bt5" could I edit that to say "sdcard/bt5" in order to boot it from my internal phone memory?

Sent from my MB860 using XDA App
 
barry99705
Old
#7  
barry99705's Avatar
Senior Member
Thanks Meter 102
Posts: 618
Join Date: Aug 2008
Quote:
Originally Posted by BravoMotorola View Post
In the beginning where the script says "sdcard-ext/bt5" could I edit that to say "sdcard/bt5" in order to boot it from my internal phone memory?

Sent from my MB860 using XDA App
Yep.

stupid 10 character limit...
Winter is coming.
The Following User Says Thank You to barry99705 For This Useful Post: [ Click to Expand ]
 
BravoMotorola
Old
#8  
BravoMotorola's Avatar
Senior Member
Thanks Meter 349
Posts: 1,508
Join Date: Oct 2010
Quote:
Originally Posted by Exthero View Post
As I am not allowed to post this where it should be, this seems to be the next best place.


Hardware Needed:

* The Motorola Atrix 4G (without this you wont be going very far)
* Atleast a 4 Gb SD card
* a way of transfering data from your computer onto the SD card (The supplied USB cable or an SD adaptor)

Apps Needed:

* SuperUser (If your on this site, you most likely already have this)
* Just about any Terminal Emulator will work (I used Better Terminal Emulator Pro)
* Any VNC Viewing Client (I used androidVNC)
* A Busybox installer (I used Stericson's BusyBox installer)

Software used:

* I used the BackTrack5 version posted by msullivan, found **HERE**:

I used a slightly edited version of the bt file from the bundle


just copy and paste over the original bt file:
Code:
perm=$(id|cut -b 5)
if [ "$perm" != "0" ];then echo "This script requires root! Type: su"; exit; fi
busybox mount -o remount,rw /dev/block/mmcblk0p5 /system
export kit=/sdcard-ext/BT5
export bin=/system/bin
export mnt=/data/local/bt5
mkdir $mnt
export PATH=$bin:/usr/bin:/usr/local/bin:/usr/sbin:/bin:/usr/local/sbin:/usr/games:$PATH
export TERM=linux
export HOME=/root
if [ -b /dev/loop7 ]; then
	echo "Loop device exists"
else
	busybox mknod /dev/loop7 b 7 0
fi
#mount -o loop,noatime -t ext2 $kit/bt5.img $mnt
losetup /dev/block/loop7 $kit/bt5.img
mount -t ext2 /dev/block/loop7 $mnt
mount -t devpts devpts $mnt/dev/pts
mount -t proc proc $mnt/proc
mount -t sysfs sysfs $mnt/sys
busybox sysctl -w net.ipv4.ip_forward=1
echo "nameserver 8.8.8.8" > $mnt/etc/resolv.conf
echo "nameserver 8.8.4.4" >> $mnt/etc/resolv.conf
echo "127.0.0.1 localhost bt5" > $mnt/etc/hosts
echo "Ubuntu is configured with SSH and VNC servers that can be accessed from the IP:"
ifconfig eth0
echo " "
busybox chroot $mnt /bin/bash

echo "Shutting down BackTrack ARM"
umount $mnt/dev/pts
umount $mnt/proc 
umount $mnt/sys 
umount $mnt
losetup -d /dev/loop7
Installation Steps:

1. Make sure you have enough space to work with (atleast 4Gb).
2. Edit the bt file with the above coding.
3. Copy over the BT5 folder onto your SD card however you see fit, I just used a SD to USB adaptor that I got with my SD card.
4. Disconnect the USB cable if you have it connected.
5. open your Terminal emulator and type:
Code:
su <ENTER>
6. Type:
Code:
cd /sdcard-ext/BT5 <ENTER>
7. Type:
Code:
sh bt <ENTER>
8. The bt file should run, and leave you with a red command prompt.
Hit the home button.

9. Open your VNC Viewer and enter the login information.
Code:
	Nickname: BackTrack5
	Password: root
	Address:  127.0.0.1
	Port:	  5901
The screen size still needs adjusting however as I believe it is set at 800×480 currently.
I get an error when doing "sh bt".
I get "bt: 36: Syntax error: end of file unexpected (expecting "then")"
 
barry99705
Old
#9  
barry99705's Avatar
Senior Member
Thanks Meter 102
Posts: 618
Join Date: Aug 2008
Quote:
Originally Posted by BravoMotorola View Post
I get an error when doing "sh bt".
I get "bt: 36: Syntax error: end of file unexpected (expecting "then")"
Is your bt folder on your "internal" or external sd card? If it's the sdcard-ext, you'll need to edit the bt script to point to the correct location.
Winter is coming.
The Following User Says Thank You to barry99705 For This Useful Post: [ Click to Expand ]
 
BravoMotorola
Old
#10  
BravoMotorola's Avatar
Senior Member
Thanks Meter 349
Posts: 1,508
Join Date: Oct 2010
Quote:
Originally Posted by barry99705 View Post
Is your bt folder on your "internal" or external sd card? If it's the sdcard-ext, you'll need to edit the bt script to point to the correct location.
Hmm, tried a lot of things, ended up going to the OP of the original Backtrack on Android thread and use his original file instead, working now. But now I have a new problem, (lol) how can I change the screen resolution of the BT5 GUI to match the Atrix's screen? I've looked all over for this. I just can't find out how...
 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...