Results 1 to 7 of 7

Thread: Any sized Backtrack 5 (4gig+) image on android smartphone/device

Hybrid View

  1. #1
    Just burned his ISO
    Join Date
    Apr 2011
    Posts
    6

    Lightbulb Any sized Backtrack 5 (4gig+) image on android smartphone/device

    This is a How-to i typed up for the my version of Backtrack on the HTC HD2 (running Hypderdroid-CM7-2.3.4)

    This "should" work for any device that takes external storage, given that it is formated properly, and theres suffiecient space for the partitions.

    If your Android build does not have apps2sd, then you might need to change any spot in the scripts that say vold:* with the star being where your ext4 partition is.

    This also includes my customized copy of BT that ive been working on for the last few days. In the case of the device i was working on, a few things had to be changed, but for the most part this should be good to go!!

    Enjoy everyone!!

    GRAB THE UPDATED SCRIPTS AT THE BOTTOM OF THIS POST IN PLACE OF THE INCLUDED ONES, A FEW FIXES WERE MADE

    If you have any problems or questions, drop a line over at the thread, as i check that alot more then here (for now ;})

    original thread over at xda-developers - http://forum.xda-developers.com/show...0#post15443300

    ========================
    DOWNLOAD
    ========================


    Just the scripts are attached at the bottom of the post (for those just wanting that)

    if you have issues with the scripts that are packaged with the img, download the ones attached at the bottom, 2 or 3 things were changed.
    V 0.2

    Part 1 - http://www.megaupload.com/?d=D0MQVAS4

    Part 2 - http://www.megaupload.com/?d=M2MRYLAH


    MD5 - 06225e18cdbfee6f88daf7e9ee3a1163
    SHA1 - eeba19e53565a1643703cf8938be2f8cfc12db9a

    V 0.1

    Part 1 - http://www.megaupload.com/?d=83B22Y00

    Part 2 - http://www.megaupload.com/?d=SB98AA19

    mirror - (NOT interchangeable)

    Part 1 - http://www.megaupload.com/?d=HU320Z81

    Part 2 - http://www.megaupload.com/?d=QN9C560Z

    Checksums of bt5.img
    MD5 = 863e6db99e5207a81ad0df7d13998235
    SHA1 = c84d8f27df8b9b51059e5a6b09e65853f11de970



    7zip required to extract.

    Just over 1gb packed, unpacked is 4.9gb.


    ==============
    INSTALLATION
    ==============

    You need:
    -Full Nandroid Backup in case something goes batty
    -16gb HD2
    -ext4 support on your ROM/kernel (lost my ext2 image due to my own stupidity, will create another matching one later)
    -Linux on PC (to create the ext4 partition)
    -Busybox (from market)
    -VNC Viewer (from market) (optional)

    FAT32/EXT4 Split card
    ---------------------

    1.
    Back up your HD2 and SDCard to safe places (off of the phone and sdcard)

    2.
    Boot your linux installation and open partition manager. erase all the partitions on yor SDcard. Then create them in this order.

    1. FAT32 - size of this is total sdcard size minus 6.5g (for bt image) minus 100mb for aps2sd
    2. ext2 - 100mb
    3. ext4 - 6.5 gb

    3.
    Copy the bt5.img to the root of your third partition.
    copy the bts folder to the root of your FAT32 partition.

    4.
    if this is your first time using this script/image, run the mkdirectory script first

    Load up your android terminal and type
    Code:

    su
    cd /path/to/scripts
    sh go

    5.
    Now it asks you if you want to log in to the console or start vnc automatically. (check log for port, usually 5901 or 5902)

    DEFAULT VNC PASSWORD IS: toortoor


    Proper Shutdown Procedure
    =====================

    Stop script has been modified to shutdown backtrack and all of the (usual) programs that stop things from unmounting properly.

    Exit any VNC connection you currently have.

    1. Run sh stop (from your scripts location)
    2. Reboot phone as a precaution.

    One thing i did personally to make this easier was load the scripts onto /data/bt, so switching SDcards or locations doesnt matter.
    (I also changed the terminal start directory to my scripts folder :P easy quick access)


    =======================
    Main Features I've gotten to work
    =========================

    -Clean mount/umount, as long as VNC and MySQL are killed BEFORE exiting the chroot - stop script kills these now
    -Apps no longer disappear for good with sdcard removed, only disappear until SDcard is reinserted :P (apps2SD/loop device problem, any ideas?)
    -MySQL for metasploit
    -Metasploit working
    -Armitage working, missing some "Attack" options (looking into it)
    -Zenmap installed
    -OpenVPN installed
    -Traffic analysis possible with tcpdump (local only)
    -Enables possibility for FakeAP attacks
    -macchanger works (kinda, phone needs a reboot for original MAC to return)
    -Armitage Launcher placed on Desktop (takes a while to load, be patient)
    -Terminal Launchers in various places (updating may randomly remove your terminal, synaptic placed on desktop as standby to redownload terminals
    -guake installed (drop down Terminal, makes commands easier to see while working) (not configured to a key yet)

    This probably works with other Android phones too. If you change the scripts, and as long as it has a external SDcard you can partition.

    if your using a different phone, this is untested unless specified otherwise.

    -boot and shutdown scripts run clean as long as VNC and MySQL are shut off(in almost all cases)


    @ XDA
    http://forum.xda-developers.com/show....php?t=1152994

    PASSWORDS
    ------------
    MySQL - user: root pass: toor
    VNC - User: root pass:toortoor
    sys pass - user:root pass:toor
    (I know, standard ones, but this should answer a few questions)

    ===============================
    Information, bugs, and oddities
    ===============================

    One important thing, While performing heavy operations, its normal for your screen to not turn on for a while if it turns off. Dont panic, just give it some time to finish whatever you were running and your phone will be back to normal again. DO NOT PULL THE BATTERY UNLESS ABSOLUTELY NECESSARY.

    To avoid this, get wakelock (known to cause problems) or set your screen timeout to some large number.

    Swap file will help with alot of this.

    These are the features I've tested out so far.
    No major changes to anything, (except new packages) just configuring everything i see.

    If you find anything you want added in or that is acting odd, please let me know. Same goes for if you fix something!!

    Overall
    -------
    -Repo's activated, most things work (upstart processes fail, for now)
    -startvnc and stopvnc no longer give that pesky USER error
    -startvnc starts mysql database for metasploit
    -stopvnc stops mysql (mostly, invoke ps -A and look for mysqld. Kill it with fire(-9) if need be)
    -network traffic is capture-able with tcpdump, with wifi hotspot activated
    -working on adding in a swap partition on sdcard (if possible)
    -openoffice installed
    -openVPN installed (the quieter you become...)
    -Removed Zoho Web services

    MySQL
    -----
    default user - root
    default pass - toor
    -Starts automatically with startvnc
    -stops automatically with stopvnc
    -start manually by invoking "mysqld"
    -Only runs as root (for now)
    -Console hangs when it is manually loaded or shutdown, service continues running though. killall --signal 9 mysqld if needed.

    Metasploit
    ----------
    -Loads up alright (45-90 seconds)
    -MySQL already set as default DB
    -Must manually connect to MySQL DB each instance of metasploit by invoking (from msf) db_connect root:toor@127.0.0.1
    -working on a possible way to limit cpu consumption to prevent system hangs(cpulimit does some nasty things)
    -So far, this is the only connection string ive been able to get to work: root:toor@127.0.0.1

    Armitage
    --------
    -Takes forever to load (30 seconds for connect screen, 4 minutes or so for main client)
    -Causes system hangs frequently (to minimize this, leave the vnc server on your screen, and set the display timeout to 10 minutes-switch it back when done to conserve battery life)
    -So far, this is the only connection string ive been able to get to work: root:toor@127.0.0.1
    -Can Crash phone if running too big of an operation (Max Phone memory problem, fixed in v.2 with swapfile added)

    Zenmap
    ------
    -Slows phone down (incredibly bad with more complex scans, of course)
    -Some Complex scanning options can crash phone (Nothing damaging has happened)
    -will attempt to throttle cpu usage in the future
    -Can Crash phone if running too big of an operation (Max Phone memory problem, fixed in v.2 with swapfile added)


    Aircrack-ng suite
    -----------------
    -Aircrack-ng works
    -Airodump-ng doesnt work (needs monitor)
    -Airdecap-ng untested
    -Airdecloak-ng untested
    -Airbase-ng doesnt work (needs monitor)
    -Airmon-ng doesnt work (needs monitor)
    -Aireplay-ng doesnt work (needs monitor)
    -Airdriver-ng doesnt work (yet)
    -Airolib-ng works (doesnt do anything yet)
    -Airserv-ng doesnt work (needs monitor)
    -Airtun-ng doesnt work(needs monitor)



    Plus lots of stuff for the future, stay tuned!!

    http://forum.xda-developers.com/show....php?t=1152994

    In the future
    =========

    -nessus
    -Booting via HD2 Toolbox by d4n14l (sp?)
    -Custom kernel (WAYYYY down the road, but working on it)
    and more

    --Copyrighted by z3n, 2011
    (just kidding, but it looks good :P)

  2. #2
    Junior Member
    Join Date
    May 2011
    Location
    Paradise
    Posts
    28

    Default Re: Any sized Backtrack 5 (4gig+) image on android smartphone/device

    Excellent work!

  3. #3
    Just burned his ISO
    Join Date
    Jul 2011
    Posts
    1

    Default Re: Any sized Backtrack 5 (4gig+) image on android smartphone/device

    can i have a mirror? thanks

  4. #4
    Just burned his ISO
    Join Date
    Apr 2011
    Posts
    6

    Default Re: Any sized Backtrack 5 (4gig+) image on android smartphone/device

    Mirrors will be up once i have access to my laptop again :P takes a while for me to upload, so it might be a bit. Prefences on where its hosted anyone?

  5. #5
    Just burned his ISO
    Join Date
    Jul 2011
    Location
    San Francisco
    Posts
    2

    Thumbs up Re: Any sized Backtrack 5 (4gig+) image on android smartphone/device

    I have a website that I haven't done ANYTHING with at all. Going to waste.
    I would be happy to host a few gigs. I really want to keep up to date with this project (and get it on my G2) and maybe push myself to help with something if I possibly could.. If hosting is all I'm good for then whatever
    I hope I remember that password dammit

    Email me if interested!

  6. #6
    Just burned their ISO
    Join Date
    Dec 2012
    Posts
    3

    Default Re: Any sized Backtrack 5 (4gig+) image on android smartphone/device

    Great work. I am very new to linux and backtrack. I have an LG Optimus 2x. It only has a 5.50 gb free on the internal sd which can be unmounted. It has the external sd. I had to get the backtrack installer apk which sends me two zips one with a 3.36 backtrack img and a backtrack.sh. This is what I also used on the acer a500 but aircrack seems to not install the libssl dev and no monitor mode. On the lg I get an error message when when i vnc and a grey background message says something like
    /usr/lib/libgconf2-4/gconf-sanity-check-2 exited with status 256
    How can i get backtrack 5, aircrack etc with monitor mode. It should work on here. Please help! I can test what you do. Backtrack seems to work in terminal fine. I have no idea how to partition the sd. The acer a500 has the same wifi chipset as the samsung galaxy tab which can run backtrack and monitor mode for aircrack packages. I believe aircrack installed on the a500 since all the commands in help for aircrack show up in terminal. Do you have to install aircrack in the terminal in backtrack or can you use the terminal android emulator.
    I am going to start learning as much as i can and one day give back to the community but for now Im a little lost. lol. I hope you can take on this project, even just one of my two devices. Thanks.

  7. #7
    Just burned their ISO
    Join Date
    Dec 2012
    Posts
    3

    Default Re: Any sized Backtrack 5 (4gig+) image on android smartphone/device

    Quote Originally Posted by zenful View Post
    This is a How-to i typed up for the my version of Backtrack on the HTC HD2 (running Hypderdroid-CM7-2.3.4)

    This "should" work for any device that takes external storage, given that it is formated properly, and theres suffiecient space for the partitions.

    If your Android build does not have apps2sd, then you might need to change any spot in the scripts that say vold:* with the star being where your ext4 partition is.

    This also includes my customized copy of BT that ive been working on for the last few days. In the case of the device i was working on, a few things had to be changed, but for the most part this should be good to go!!

    Enjoy everyone!!

    GRAB THE UPDATED SCRIPTS AT THE BOTTOM OF THIS POST IN PLACE OF THE INCLUDED ONES, A FEW FIXES WERE MADE

    If you have any problems or questions, drop a line over at the thread, as i check that alot more then here (for now ;})

    original thread over at xda-developers - http://forum.xda-developers.com/show...0#post15443300

    ========================
    DOWNLOAD
    ========================


    Just the scripts are attached at the bottom of the post (for those just wanting that)

    if you have issues with the scripts that are packaged with the img, download the ones attached at the bottom, 2 or 3 things were changed.
    V 0.2

    Part 1 - http://www.megaupload.com/?d=D0MQVAS4

    Part 2 - http://www.megaupload.com/?d=M2MRYLAH


    MD5 - 06225e18cdbfee6f88daf7e9ee3a1163
    SHA1 - eeba19e53565a1643703cf8938be2f8cfc12db9a

    V 0.1

    Part 1 - http://www.megaupload.com/?d=83B22Y00

    Part 2 - http://www.megaupload.com/?d=SB98AA19

    mirror - (NOT interchangeable)

    Part 1 - http://www.megaupload.com/?d=HU320Z81

    Part 2 - http://www.megaupload.com/?d=QN9C560Z

    Checksums of bt5.img
    MD5 = 863e6db99e5207a81ad0df7d13998235
    SHA1 = c84d8f27df8b9b51059e5a6b09e65853f11de970





    Just over 1gb packed, unpacked is 4.9gb.


    ==============
    INSTALLATION
    ==============

    You need:
    -Full Nandroid Backup in case something goes batty
    -16gb HD2
    -ext4 support on your ROM/kernel (lost my ext2 image due to my own stupidity, will create another matching one later)
    -Linux on PC (to create the ext4 partition)
    -Busybox (from market)
    -VNC Viewer (from market) (optional)

    FAT32/EXT4 Split card
    ---------------------

    1.
    Back up your HD2 and SDCard to safe places (off of the phone and sdcard)

    2.
    Boot your linux installation and open partition manager. erase all the partitions on yor SDcard. Then create them in this order.

    1. FAT32 - size of this is total sdcard size minus 6.5g (for bt image) minus 100mb for aps2sd
    2. ext2 - 100mb
    3. ext4 - 6.5 gb

    3.
    Copy the bt5.img to the root of your third partition.
    copy the bts folder to the root of your FAT32 partition.

    4.
    if this is your first time using this script/image, run the mkdirectory script first

    Load up your android terminal and type
    Code:

    su
    cd /path/to/scripts
    sh go

    5.
    Now it asks you if you want to log in to the console or start vnc automatically. (check log for port, usually 5901 or 5902)

    DEFAULT VNC PASSWORD IS: toortoor


    Proper Shutdown Procedure
    =====================

    Stop script has been modified to shutdown backtrack and all of the (usual) programs that stop things from unmounting properly.

    Exit any VNC connection you currently have.

    1. Run sh stop (from your scripts location)
    2. Reboot phone as a precaution.

    One thing i did personally to make this easier was load the scripts onto /data/bt, so switching SDcards or locations doesnt matter.
    (I also changed the terminal start directory to my scripts folder :P easy quick access)


    =======================
    Main Features I've gotten to work
    =========================

    -Clean mount/umount, as long as VNC and MySQL are killed BEFORE exiting the chroot - stop script kills these now
    -Apps no longer disappear for good with sdcard removed, only disappear until SDcard is reinserted :P (apps2SD/loop device problem, any ideas?)
    -MySQL for metasploit
    -Metasploit working
    -Armitage working, missing some "Attack" options (looking into it)
    -Zenmap installed
    -OpenVPN installed
    -Traffic analysis possible with tcpdump (local only)
    -Enables possibility for FakeAP attacks
    -macchanger works (kinda, phone needs a reboot for original MAC to return)
    -Armitage Launcher placed on Desktop (takes a while to load, be patient)
    -Terminal Launchers in various places (updating may randomly remove your terminal, synaptic placed on desktop as standby to redownload terminals
    -guake installed (drop down Terminal, makes commands easier to see while working) (not configured to a key yet)

    This probably works with other Android phones too. If you change the scripts, and as long as it has a external SDcard you can partition.

    if your using a different phone, this is untested unless specified otherwise.

    -boot and shutdown scripts run clean as long as VNC and MySQL are shut off(in almost all cases)


    @ XDA
    http://forum.xda-developers.com/show....php?t=1152994

    PASSWORDS
    ------------
    MySQL - user: root pass: toor
    VNC - User: root pass:toortoor
    sys pass - user:root pass:toor
    (I know, standard ones, but this should answer a few questions)

    ===============================
    Information, bugs, and oddities
    ===============================

    One important thing, While performing heavy operations, its normal for your screen to not turn on for a while if it turns off. Dont panic, just give it some time to finish whatever you were running and your phone will be back to normal again. DO NOT PULL THE BATTERY UNLESS ABSOLUTELY NECESSARY.

    To avoid this, get wakelock (known to cause problems) or set your screen timeout to some large number.

    Swap file will help with alot of this.

    These are the features I've tested out so far.
    No major changes to anything, (except new packages) just configuring everything i see.

    If you find anything you want added in or that is acting odd, please let me know. Same goes for if you fix something!!

    Overall
    -------
    -Repo's activated, most things work (upstart processes fail, for now)
    -startvnc and stopvnc no longer give that pesky USER error
    -startvnc starts mysql database for metasploit
    -stopvnc stops mysql (mostly, invoke ps -A and look for mysqld. Kill it with fire(-9) if need be)
    -network traffic is capture-able with tcpdump, with wifi hotspot activated
    -working on adding in a swap partition on sdcard (if possible)
    -openoffice installed
    -openVPN installed (the quieter you become...)
    -Removed Zoho Web services

    MySQL
    -----
    default user - root
    default pass - toor
    -Starts automatically with startvnc
    -stops automatically with stopvnc
    -start manually by invoking "mysqld"
    -Only runs as root (for now)
    -Console hangs when it is manually loaded or shutdown, service continues running though. killall --signal 9 mysqld if needed.

    Metasploit
    ----------
    -Loads up alright (45-90 seconds)
    -MySQL already set as default DB
    -Must manually connect to MySQL DB each instance of metasploit by invoking (from msf) db_connect root:toor@127.0.0.1
    -working on a possible way to limit cpu consumption to prevent system hangs(cpulimit does some nasty things)
    -So far, this is the only connection string ive been able to get to work: root:toor@127.0.0.1

    Armitage
    --------
    -Takes forever to load (30 seconds for connect screen, 4 minutes or so for main client)
    -Causes system hangs frequently (to minimize this, leave the vnc server on your screen, and set the display timeout to 10 minutes-switch it back when done to conserve battery life)
    -So far, this is the only connection string ive been able to get to work: root:toor@127.0.0.1
    -Can Crash phone if running too big of an operation (Max Phone memory problem, fixed in v.2 with swapfile added)

    Zenmap
    ------
    -Slows phone down (incredibly bad with more complex scans, of course)
    -Some Complex scanning options can crash phone (Nothing damaging has happened)
    -will attempt to throttle cpu usage in the future
    -Can Crash phone if running too big of an operation (Max Phone memory problem, fixed in v.2 with swapfile added)


    Aircrack-ng suite
    -----------------
    -Aircrack-ng works
    -Airodump-ng doesnt work (needs monitor)
    -Airdecap-ng untested
    -Airdecloak-ng untested
    -Airbase-ng doesnt work (needs monitor)
    -Airmon-ng doesnt work (needs monitor)
    -Aireplay-ng doesnt work (

    --Copyrighted by z3n, 2011
    (just kidding, but it looks good :P)
    Great work. I am very new to linux and backtrack. I have an LG Optimus 2x. It only has a 5.50 gb free on the internal sd which can be unmounted. It has the external sd. I had to get the backtrack installer apk which sends me two zips one with a 3.36 backtrack img and a backtrack.sh. This is what I also used on the acer a500 but aircrack seems to not install the libssl dev and no monitor mode. On the lg I get an error message when when i vnc and a grey background message says something like
    /usr/lib/libgconf2-4/gconf-sanity-check-2 exited with status 256
    How can i get backtrack 5, aircrack etc with monitor mode. It should work on here. Please help! I can test what you do. Backtrack seems to work in terminal fine. I have no idea how to partition the sd. The acer a500 has the same wifi chipset as the samsung galaxy tab which can run backtrack and monitor mode for aircrack packages. I believe aircrack installed on the a500 since all the commands in help for aircrack show up in terminal. Do you have to install aircrack in the terminal in backtrack or can you use the terminal android emulator.
    I am going to start learning as much as i can and one day give back to the community but for now Im a little lost. lol. I hope you can take on this project, even just one of my two devices. Thanks.

Similar Threads

  1. Is it possible to run backtrack on an Android Phone?
    By sean9461 in forum Beginners Forum
    Replies: 16
    Last Post: 04-18-2011, 10:58 AM
  2. Replies: 3
    Last Post: 09-24-2010, 03:16 PM
  3. backtrack su smartphone o ppc
    By htctouchpro in forum Discussioni Generali
    Replies: 2
    Last Post: 10-06-2009, 06:39 PM
  4. Backtrack on a Smartphone
    By hermit in forum OLD BackTrack v2.0 Final
    Replies: 11
    Last Post: 05-09-2009, 08:10 PM
  5. The Ultimate Pocket-Sized* device to get BT3 ported to.
    By imported_BaconZombie in forum OLD General IT Discussion
    Replies: 8
    Last Post: 02-14-2008, 05:01 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •