If this is your first visit, be sure to
check out the Forum Rules by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Backtrack 5 on the Galaxy S3

At the time of this writing, 02SEP2012, the only ARM release of Backtrack 5 is the original one that came out in May of 2011. If any of you have tried running this on an Android phone or tablet, then you will have noticed that it is lacking some functionality.

You will need a rooted Galaxy S3. You will also need to install Busybox and android-vnc-viewer(free from the Market/Google Play Store).

Now, make sure that you are connected to local Wifi hotspot with your phone's wifi. The interface will eventually show up from inside BackTrack as wlan0.

Next, launch a terminal window from the Terminal Emulator app (available from the Market/Google Play Store).

Type the following:

su
cd /sdcard/bt5
gunzip bt5.img.gz
# the unzipping/decompressing of the image will take a few minutes
sh bootbt
*Backtrack 5 will start*

startvnc

Now, you have two options. You can launch android-vnc-viewer from within the Android OS or you can connect remotely to Backtrack 5 running on the phone.

127.0.0.1:5901 (for android-vnc-viewer on Android)

(Optionally, 192.168.1.XXX:5901 if connecting from a Windows machine with VNC Viewer. This assumes that you have connected to your LAN via the phones wifi connection.)
user:root
password:toortoor

#DO ALL OF THE FOLLOWING FROM A TERMINAL WINDOW FROM WITHIN BACKTRACK 5
#IGNORE ALL OF THE OPTIONS FROM THE APPLICATIONS MENU IN THE UPPER LEFT FOR NOW
#ESPECIALLY AND SPECIFICALLY, DO NOT RUN msfupdate FROM THE APPLICATIONS MENU, IT WILL RESULT IN ERRORS
#I HAVE NOT SCRIPTED ALL OF THIS YET, BUT YOU ARE CERTAINLY WELCOME TO

#Open a terminal window and run:

msfupdate
#(this may take a while)
#go make a sandwich
#take a break
#seriously
# and if it fails, then you will have to restart this process from a freshly decompressed image from 'gunzip bt5.img.gz'
# so make sure you have a good wireless connection. If it gets interrupted, then same thing.
# The easiest thing is to start from a freshly decompressed image from 'gunzip bt5.img.gz'

Next run:

gem install json
#(Ruby needs this for scrutinizer_add_user.rb for use the Metasploit)
gem install msgpack
#(Ruby needs this for proper startup of armitage with metasploit)

Run:

msfconsole

# to test Metasploit (it will complain about not being able to connect to a database, but you should still get the console prompt)
# don't worry about the database issue for now, it will be fixed later

apt-get update

Next, we are going to install the aircrack suite. The following script will perform all of the necessary steps. Edit it to suit your needs. If your bootbt script is in good order, then you don't need to execute the PATH commands at the end.

# install dependency for libssl-dev
# this is optional as it should already be in the default BT5 install
apt-get install zlib1g-dev

# get and install aircrack-ng
apt-get install source-aircrack-ng
cd /var/backtrack/sources/aircrack-ng/1.1/bt9/upstream-sources/
tar -xzf aircrack-ng.tar.gz
cd aircrack-ng/
# if you want to add support for airolib-ng support, then you will run the following:
# make sqlite=true
# make sqlite=true install
# otherwise, just run the next two commands
make
make install

airodump-ng-oui-update

# set path variable
# optional as it should have already been done
echo "export PATH=$PATH:/usr/local/sbin" >> ~/.bashrc
export PATH=$PATH:/usr/local/sbin

When you are all done, you can return to the Terminal Emulator window and type:

stopvnc

exit

Reboot your phone to completely clear Backtrack 5 from memory. Your changes to the image should remain even after a reboot.

#I found all of the above installs to be necessary since whenever I tried to run them from a terminal window, they would not run. Even if that was correctable via a $PATH setting, I opted for these installs.

With all of that said, I have been having a hell of a time trying to get Metasploit working properly. I have come to find out that the ARM release of Backtrack does not come with either MySQL or PostgreSQL. Having either PostgreSQL or MySQL is necessary for use with msfconsole (Metasploit). There is nothing to indicate the presence of either of these in /etc/init.d. Similarly, when a 'service --status-all' is run, nothing of significance is in that list. No postgres, sql, framework, or anything else.

This means that postgresql has to be installed manually, but "apt-get install postgresql" or "apt-get install postgresql-8.4" doesn't work either. They aren't in the default repositories. This further means you have two options if you want postgresql.

You can install the packages manually (I have already written a script that does this) or you can edit /etc/apt/sources.list. Uncomment the first two lines in /etc/apt/sources.list and then add "universe multiverse" to the ends of those two lines. Save, close. Run "apt-get update" and then "apt-get install postgresql-8.4".

The problem is that the installer can't seem to bind to an IP version 4 loopback (I think). This might be correctable via an edit to /etc/sysctl.conf, but I'm not sure.

*Edit on September 7th, 2012*
Metasploit has done away with the db_driver command within msfconsole which forces the use of postgresql. Using mysql or sqlite3 are no longer options within msfconsole. So if there is no postgresql installed, then it must be installed. This seems to be the only obstacle now. I am still trying to find a solution. A higher version of postgresql might be the answer.

In short, this is still being worked on.

Now, the final challenge, as most of you know, is how to get the wlan0 interface into monitor mode. This is not possible yet afaik.

*IF ANY OF YOU BACKTRACK DEVELOPERS READ THIS, THEN PLEASE CONSIDER RELEASING A MORE UPDATED AND FUNCTIONAL ARM VERSION OF BT5 SO ALL OF THIS IS NOT NECESSARY*
*I DON'T NEED MONITOR MODE, BUT CONSIDER FIXING THE POSTGRESQL/MSFCONSOLE ISSUE*

Re: Backtrack 5 on the Galaxy S3

Originally Posted by michaellee213

#DO ALL OF THE FOLLOWING FROM A TERMINAL WINDOW FROM WITHIN BACKTRACK 5
#IGNORE ALL OF THE OPTIONS FROM THE APPLICATIONS MENU IN THE UPPER LEFT FOR NOW
#ESPECIALLY AND SPECIFICALLY, DO NOT RUN msfupdate FROM THE APPLICATIONS MENU, IT WILL RESULT IN ERRORS
#I HAVE NOT SCRIPTED ALL OF THIS YET, BUT YOU ARE CERTAINLY WELCOME TO

#Open a terminal window and run:

msfupdate
#(this may take a while)
#go make a sandwich
#take a break
#seriously
# and if it fails, then you will have to restart this process from a freshly decompressed image from 'gunzip bt5.img.gz'
# so make sure you have a good wireless connection. If it gets interrupted, then same thing.
# The easiest thing is to start from a freshly decompressed image from 'gunzip bt5.img.gz'

Ok, here's the deal.. First of all thanks for this guide :P Second, man this msfupdate is taking forever to finish, i went to sleep, i woke up, went to gym, took a bath and yet its still doing things!!! what am i doing wrong?

P.S i am running the msfupdate through a terminal window through vnc (because u said dont do this through the menu).

Re: Backtrack 5 on the Galaxy S3

Re: Backtrack 5 on the Galaxy S3

Originally Posted by nkife

bootbt[30]: syntax error: 'if' unmatched

i just found the solution (after 2 hours google research -.-)
you should modify the file in linux (not in windows) and set a <tab> for the instruction in the "if then else fi" construct ... i make this file.. if you want i uploaded here http://www.filedropper.com/bootbt

Re: Backtrack 5 on the Galaxy S3

Originally Posted by michaellee213

At the time of this writing, 02SEP2012, the only ARM release of Backtrack 5 is the original one that came out in May of 2011. If any of you have tried running this on an Android phone or tablet, then you will have noticed that it is lacking some functionality.

You will need a rooted Galaxy S3. You will also need to install Busybox and android-vnc-viewer(free from the Market/Google Play Store).

Now, make sure that you are connected to local Wifi hotspot with your phone's wifi. The interface will eventually show up from inside BackTrack as wlan0.

Next, launch a terminal window from the Terminal Emulator app (available from the Market/Google Play Store).

Type the following:

su
cd /sdcard/bt5
gunzip bt5.img.gz
# the unzipping/decompressing of the image will take a few minutes
sh bootbt
*Backtrack 5 will start*

startvnc

Now, you have two options. You can launch android-vnc-viewer from within the Android OS or you can connect remotely to Backtrack 5 running on the phone.

127.0.0.1:5901 (for android-vnc-viewer on Android)

(Optionally, 192.168.1.XXX:5901 if connecting from a Windows machine with VNC Viewer. This assumes that you have connected to your LAN via the phones wifi connection.)
user:root
password:toortoor

#DO ALL OF THE FOLLOWING FROM A TERMINAL WINDOW FROM WITHIN BACKTRACK 5
#IGNORE ALL OF THE OPTIONS FROM THE APPLICATIONS MENU IN THE UPPER LEFT FOR NOW
#ESPECIALLY AND SPECIFICALLY, DO NOT RUN msfupdate FROM THE APPLICATIONS MENU, IT WILL RESULT IN ERRORS
#I HAVE NOT SCRIPTED ALL OF THIS YET, BUT YOU ARE CERTAINLY WELCOME TO

#Open a terminal window and run:

msfupdate
#(this may take a while)
#go make a sandwich
#take a break
#seriously
# and if it fails, then you will have to restart this process from a freshly decompressed image from 'gunzip bt5.img.gz'
# so make sure you have a good wireless connection. If it gets interrupted, then same thing.
# The easiest thing is to start from a freshly decompressed image from 'gunzip bt5.img.gz'

Next run:

gem install json
#(Ruby needs this for scrutinizer_add_user.rb for use the Metasploit)
gem install msgpack
#(Ruby needs this for proper startup of armitage with metasploit)

Run:

msfconsole

# to test Metasploit (it will complain about not being able to connect to a database, but you should still get the console prompt)
# don't worry about the database issue for now, it will be fixed later

apt-get update

Next, we are going to install the aircrack suite. The following script will perform all of the necessary steps. Edit it to suit your needs. If your bootbt script is in good order, then you don't need to execute the PATH commands at the end.

# install dependency for libssl-dev
# this is optional as it should already be in the default BT5 install
apt-get install zlib1g-dev

# get and install aircrack-ng
apt-get install source-aircrack-ng
cd /var/backtrack/sources/aircrack-ng/1.1/bt9/upstream-sources/
tar -xzf aircrack-ng.tar.gz
cd aircrack-ng/
# if you want to add support for airolib-ng support, then you will run the following:
# make sqlite=true
# make sqlite=true install
# otherwise, just run the next two commands
make
make install

airodump-ng-oui-update

# set path variable
# optional as it should have already been done
echo "export PATH=$PATH:/usr/local/sbin" >> ~/.bashrc
export PATH=$PATH:/usr/local/sbin

When you are all done, you can return to the Terminal Emulator window and type:

stopvnc

exit

Reboot your phone to completely clear Backtrack 5 from memory. Your changes to the image should remain even after a reboot.

#I found all of the above installs to be necessary since whenever I tried to run them from a terminal window, they would not run. Even if that was correctable via a $PATH setting, I opted for these installs.

With all of that said, I have been having a hell of a time trying to get Metasploit working properly. I have come to find out that the ARM release of Backtrack does not come with either MySQL or PostgreSQL. Having either PostgreSQL or MySQL is necessary for use with msfconsole (Metasploit). There is nothing to indicate the presence of either of these in /etc/init.d. Similarly, when a 'service --status-all' is run, nothing of significance is in that list. No postgres, sql, framework, or anything else.

This means that postgresql has to be installed manually, but "apt-get install postgresql" or "apt-get install postgresql-8.4" doesn't work either. They aren't in the default repositories. This further means you have two options if you want postgresql.

You can install the packages manually (I have already written a script that does this) or you can edit /etc/apt/sources.list. Uncomment the first two lines in /etc/apt/sources.list and then add "universe multiverse" to the ends of those two lines. Save, close. Run "apt-get update" and then "apt-get install postgresql-8.4".

The problem is that the installer can't seem to bind to an IP version 4 loopback (I think). This might be correctable via an edit to /etc/sysctl.conf, but I'm not sure.

*Edit on September 7th, 2012*
Metasploit has done away with the db_driver command within msfconsole which forces the use of postgresql. Using mysql or sqlite3 are no longer options within msfconsole. So if there is no postgresql installed, then it must be installed. This seems to be the only obstacle now. I am still trying to find a solution. A higher version of postgresql might be the answer.

In short, this is still being worked on.

Now, the final challenge, as most of you know, is how to get the wlan0 interface into monitor mode. This is not possible yet afaik.

*IF ANY OF YOU BACKTRACK DEVELOPERS READ THIS, THEN PLEASE CONSIDER RELEASING A MORE UPDATED AND FUNCTIONAL ARM VERSION OF BT5 SO ALL OF THIS IS NOT NECESSARY*
*I DON'T NEED MONITOR MODE, BUT CONSIDER FIXING THE POSTGRESQL/MSFCONSOLE ISSUE*

That is all for now.

Thank you.

I have now installed on my Galaxy Note 2. Itīs awesome. I have changed something on sh file to start from my extSdCard but ......

I want to know how can I access to Administration because I donīt have it in my Panel (system), and I canīt see too software-center. Can someone help me?

I have root access. Must I clean cache, unused dependencies? autoremove something.....? Iīm new with Backtrack, I mean with Linux in general.