[DEV] BACKTRACK 5 on Xperia X10 chroot

Search This thread

anantshri

Senior Member
Feb 22, 2011
687
320
Bangalore
anantshri.info
==================== WIFI / WEP / WPA2 CRACKING Questions will not be answered ========
============== Already Stated many times monitor mode and packet injection is not working. ========


==================== POST 3 updated with some FAQ ===============================

==================== DETAILED INSTRUCTIONS UPDATED ===========================

==================== DOWNLOAD LINK UPDATED : Alternate Download Links ===============

========== PROJECT PAGE CREATE : http://hackomania.com/BT5/ ====================

Hi all,

Based on my work here DEVELOPMENT : Ubuntu Lucid CHROOT: updated script
I have been successful on Making Backtrack run on Xperia X10i.

Wanted to be the first one to report it so the thread here.

will start uploading the files once i get get all pieces together.

posting some screenshots for non believers.

Stay tuned for complete instructions on how to set up on X10i complete with custom scripts and all codes will be open sourced for your reference.

and this time it will be completely from gscript if you don't want to type commands.

Teaser screenshots for you.

Now will need support from the fellow developers in establishing what all tools are running fine and what not.

once i upload the image i will also post this on all social network so that we can gather as much support as possible.

File size : under 500 MB :D

======== FILE DOWNLOAD LINK================
DROPBOX links Bitlied for download count track
Alternate link from personal server.
Please do not create mirror : just want to keep a count on download's

PART 1 : Download Link : http://bit.ly/p1BT5
PART 2 : Download Link : http://bit.ly/BT5p2
PART 3 : Download Link : http://bit.ly/BT5p3


bt7z.001: http://www.mediafire.com/?x9cgxzdx84vc6uj
bt7z.002: http://www.mediafire.com/?xaoidipkg1o7vgo
bt7z.003: http://www.mediafire.com/?po3nznbxgvdipur


MD5 Sum : Thanks to DooMLorD
558ecb1f0e5feb1da86526df8761e6cc bt.7z.001
247842fd0d3ebb39454f76f4704d1537 bt.7z.002
f74d2f744434a7182b13287d9f8165e7 bt.7z.003

Bundle Link : http://bit.ly/iNHTS0 <- contains list of all 3 files in one bundle.

Note : uploading in one alternate location : mediafire will give its link soon.

======== Instructions =============

*********** ESSENTIALS ******************

  1. Rooted Android. tested on 2.2 however should work on 2.1 and 1.6 also. (if you use custom rom's you meet the criteria)
  2. Busybox configured (although it gets automatically configured @ rooting)
  3. Android terminal application. (I use android terminal emulator)
  4. Android VNC Viewer
********************************************

********** STEP's *************************


  1. download all 3 parts of image and place them in single folder.
  2. extract using first file and you will get following files
    1. bt
    2. bt.img
    3. startbt
    4. stopbt
    5. installbt.sh
  3. Copy these files on your phone under /sdcard/bt
  4. using terminal emulator run following commands
    Code:
      su
      cd /sdcard/bt
      sh installbt.sh
  5. Now your BT should be configured automatically.
  6. to use your BackTrack you can use following commands.
    1. startbt <- mounts and prepares the system for usage.
    2. stopbt <- unmounts and free up all resources.
    3. bt <- a command line version of BT chroot.
  7. Inside bt shell.
    1. ui <- will start vncserver (default password is 12345678, you can change it using vncpasswd command on bt shell)
    2. killui <- stops the running vncserver.
  8. Any Available VNC client can be used to connect to the BT GUI.
    1. Nick : BackTrack (bt for short)
    2. address : localhost
    3. port : 5901
    4. password : 12345678
    5. inside vnc window select input mode (following works best for me)
      1. Touch Mouse; D-Pad Pan
      2. Mouse pointer control mode
      3. TouchPad (here your screen works like a big touchpad use it to navigate mouse.)
*********** DO CHECK POST 3 after tonight ******************
Post 3 will be updated to be used as a catalogue of tips and tricks for all things related to this distro..

========= TIPS and TRICKS ==================
this section is for those who want to make simmilar image from base image on backtrack.

ohk so the basic challenge is
1) BacckTrack image is for Xoom and have following limitation w.r.t. Xperia X10.
a) File is 4.9 GB (vfat has limitation of 4 GB max)
b) vncserver resolution is 1280x800 per xoom.
2) installation script and setup script doesn't allow you to move in and out of BT.
3) it used loop2 for image mounting which conflicts with APP2SD.


so I have made following changes.
1) resized image to 3.3 GB (if space get filled we can extend image to upto 700 mb more.)
2) inserted my custom ui and killui code i use @ ubuntu.
3) provided startbt stopbt bt and installbt.sh scripts for all work.
4) changed loop no to 254 and hence this code is compatible with my ubuntu image effectively you can keep both in same sdcard...

I am attaching a log file for part 1 of the image work as this is very tricky.
The trick is if you create a new file of 3.3 GB you get limited set of inodes which get filled easily. so the command mke2fs must be supplied with inode numbers that you want to be build.

check attached txt for details.
 
Last edited:

anantshri

Senior Member
Feb 22, 2011
687
320
Bangalore
anantshri.info
============ SCREEN SHOTS =================

5710121039_b04658db00.jpg

5710684296_bef67ac2b9.jpg
 

anantshri

Senior Member
Feb 22, 2011
687
320
Bangalore
anantshri.info
========= FAQ plus TIPS and TRICKS =====================

Q : Installbt.sh script not working properly i am recieving errors?

A: please cross check all steps if you have missed any.. otherwise post the output of error's in thread.

Q : sh installbt.sh works fine now i am getting errors in startbt or bt command.

A : please check following steps.

  • Try rebooting the device and see if startbt and then bt works. if still error post the error output on thread.
  • post output of following command

  • mount
  • echo $PATH
  • busybox
  • which busybox
Q: what is the use of all the files besides bt.img
A : Listed is the description of all files.
1) sh installbt.sh is to be only used once in liftime. till you flash a new rom.
2) startbt is to be used once after every reboot.
3) bt is command to be used everytime after first use of startbt to get command prompt.
4) stopbt is to be used when you want to stop the bt service which is running in the background.
4) and inside the [email protected] prompt you can use ui and killui command to start and stop the vncserver.
 
Last edited:

jpminou

Senior Member
Feb 14, 2010
538
56
Hi all,

Based on my work here DEVELOPMENT : Ubuntu Lucid CHROOT: updated script
I have been succefull on Making Backtrack run on Xperia X10i.

Wanted to be the first one to report it so the thread here.

will start uploading the files once i get get all pieces together.

posting some screenshots for non believers.

Stay tuned for complete instructions on how to set up on X10i complete with custom scripts and all codes will be open sourced for your reference.

and this time it will be completely from gscript if you don't want to type commands.

Teaser screenshots for you.

Now will need support from the fellow developers in establishing what all tools are running fine and what not.

once i upload the image i will also post this on all social network so that we can gather as much support as possible.

=========RESERVED for instructions =============

Nice work keep going.

Sent from my X10 TripNMiUI
 

DooMLoRD

Inactive Recognized Developer
Jul 27, 2010
13,191
39,697
Pune
Brilliant work my friend!!!

Does it still require VNC server/client?

Does pen-testing work? What about arp poisoning and promiscus mode to gather data packets?

sent from FreeX10_beta4+CM6 settings
 
Last edited:

anantshri

Senior Member
Feb 22, 2011
687
320
Bangalore
anantshri.info
What does that mean though. Like what will we need to do

Sent from my X10a using XDA Premium App


I am just finished optimizing files and installation script ....

uploading soon...

file size : under shades on 700 MB....

P.S. : Backtrack has given a 1.1 GB file to download this is same with few simple tweaks.

tweaks and tips uploaded on first post...
 
Last edited:
  • Like
Reactions: jpminou

Meikrekel

Senior Member
Jul 15, 2010
207
20
Bergen
How is the performance? Just two weeks left and then I'm done with my final exams, so after that I am going to learn more about all this chrooting and dualbooting stuff!

Well done mate!
 

anantshri

Senior Member
Feb 22, 2011
687
320
Bangalore
anantshri.info
How is the performance? Just two weeks left and then I'm done with my final exams, so after that I am going to learn more about all this chrooting and dualbooting stuff!

Well done mate!


I need testers badly.... to my my baby will always run faster...

also one more tweak found that tmp folder contained framework.bz2 and msf3 decompressed folder deleted both freedup lots of inodes and now image size going down....

from 700mb of initial size i am down to < 500 MB :D
 
  • Like
Reactions: kommonk and jpminou

Top Liked Posts

  • There are no posts matching your filters.
  • 51
    ==================== WIFI / WEP / WPA2 CRACKING Questions will not be answered ========
    ============== Already Stated many times monitor mode and packet injection is not working. ========


    ==================== POST 3 updated with some FAQ ===============================

    ==================== DETAILED INSTRUCTIONS UPDATED ===========================

    ==================== DOWNLOAD LINK UPDATED : Alternate Download Links ===============

    ========== PROJECT PAGE CREATE : http://hackomania.com/BT5/ ====================

    Hi all,

    Based on my work here DEVELOPMENT : Ubuntu Lucid CHROOT: updated script
    I have been successful on Making Backtrack run on Xperia X10i.

    Wanted to be the first one to report it so the thread here.

    will start uploading the files once i get get all pieces together.

    posting some screenshots for non believers.

    Stay tuned for complete instructions on how to set up on X10i complete with custom scripts and all codes will be open sourced for your reference.

    and this time it will be completely from gscript if you don't want to type commands.

    Teaser screenshots for you.

    Now will need support from the fellow developers in establishing what all tools are running fine and what not.

    once i upload the image i will also post this on all social network so that we can gather as much support as possible.

    File size : under 500 MB :D

    ======== FILE DOWNLOAD LINK================
    DROPBOX links Bitlied for download count track
    Alternate link from personal server.
    Please do not create mirror : just want to keep a count on download's

    PART 1 : Download Link : http://bit.ly/p1BT5
    PART 2 : Download Link : http://bit.ly/BT5p2
    PART 3 : Download Link : http://bit.ly/BT5p3


    bt7z.001: http://www.mediafire.com/?x9cgxzdx84vc6uj
    bt7z.002: http://www.mediafire.com/?xaoidipkg1o7vgo
    bt7z.003: http://www.mediafire.com/?po3nznbxgvdipur


    MD5 Sum : Thanks to DooMLorD
    558ecb1f0e5feb1da86526df8761e6cc bt.7z.001
    247842fd0d3ebb39454f76f4704d1537 bt.7z.002
    f74d2f744434a7182b13287d9f8165e7 bt.7z.003

    Bundle Link : http://bit.ly/iNHTS0 <- contains list of all 3 files in one bundle.

    Note : uploading in one alternate location : mediafire will give its link soon.

    ======== Instructions =============

    *********** ESSENTIALS ******************

    1. Rooted Android. tested on 2.2 however should work on 2.1 and 1.6 also. (if you use custom rom's you meet the criteria)
    2. Busybox configured (although it gets automatically configured @ rooting)
    3. Android terminal application. (I use android terminal emulator)
    4. Android VNC Viewer
    ********************************************

    ********** STEP's *************************


    1. download all 3 parts of image and place them in single folder.
    2. extract using first file and you will get following files
      1. bt
      2. bt.img
      3. startbt
      4. stopbt
      5. installbt.sh
    3. Copy these files on your phone under /sdcard/bt
    4. using terminal emulator run following commands
      Code:
        su
        cd /sdcard/bt
        sh installbt.sh
    5. Now your BT should be configured automatically.
    6. to use your BackTrack you can use following commands.
      1. startbt <- mounts and prepares the system for usage.
      2. stopbt <- unmounts and free up all resources.
      3. bt <- a command line version of BT chroot.
    7. Inside bt shell.
      1. ui <- will start vncserver (default password is 12345678, you can change it using vncpasswd command on bt shell)
      2. killui <- stops the running vncserver.
    8. Any Available VNC client can be used to connect to the BT GUI.
      1. Nick : BackTrack (bt for short)
      2. address : localhost
      3. port : 5901
      4. password : 12345678
      5. inside vnc window select input mode (following works best for me)
        1. Touch Mouse; D-Pad Pan
        2. Mouse pointer control mode
        3. TouchPad (here your screen works like a big touchpad use it to navigate mouse.)
    *********** DO CHECK POST 3 after tonight ******************
    Post 3 will be updated to be used as a catalogue of tips and tricks for all things related to this distro..

    ========= TIPS and TRICKS ==================
    this section is for those who want to make simmilar image from base image on backtrack.

    ohk so the basic challenge is
    1) BacckTrack image is for Xoom and have following limitation w.r.t. Xperia X10.
    a) File is 4.9 GB (vfat has limitation of 4 GB max)
    b) vncserver resolution is 1280x800 per xoom.
    2) installation script and setup script doesn't allow you to move in and out of BT.
    3) it used loop2 for image mounting which conflicts with APP2SD.


    so I have made following changes.
    1) resized image to 3.3 GB (if space get filled we can extend image to upto 700 mb more.)
    2) inserted my custom ui and killui code i use @ ubuntu.
    3) provided startbt stopbt bt and installbt.sh scripts for all work.
    4) changed loop no to 254 and hence this code is compatible with my ubuntu image effectively you can keep both in same sdcard...

    I am attaching a log file for part 1 of the image work as this is very tricky.
    The trick is if you create a new file of 3.3 GB you get limited set of inodes which get filled easily. so the command mke2fs must be supplied with inode numbers that you want to be build.

    check attached txt for details.
    21
    ============ SCREEN SHOTS =================

    5710121039_b04658db00.jpg

    5710684296_bef67ac2b9.jpg
    4
    ========= FAQ plus TIPS and TRICKS =====================

    Q : Installbt.sh script not working properly i am recieving errors?

    A: please cross check all steps if you have missed any.. otherwise post the output of error's in thread.

    Q : sh installbt.sh works fine now i am getting errors in startbt or bt command.

    A : please check following steps.

    • Try rebooting the device and see if startbt and then bt works. if still error post the error output on thread.
    • post output of following command

    • mount
    • echo $PATH
    • busybox
    • which busybox
    Q: what is the use of all the files besides bt.img
    A : Listed is the description of all files.
    1) sh installbt.sh is to be only used once in liftime. till you flash a new rom.
    2) startbt is to be used once after every reboot.
    3) bt is command to be used everytime after first use of startbt to get command prompt.
    4) stopbt is to be used when you want to stop the bt service which is running in the background.
    4) and inside the [email protected] prompt you can use ui and killui command to start and stop the vncserver.
    3
    Hi, I have a few questions that may seem stupid, but I'm a noob into this thread, so please forgive me :D
    1. is this a full-functioning Linux distribution?
    2. can i install apk files and if not where I can find apps that run on Backtrack?
    3. lastly, does it lag like some of the ROM's?
    I'm really, really interested into this development so I'd be thankful if you answer my questions.
    thanks!

    1) Yes its a fully functioning GNU/Linux disribution.
    2) its linux and not android so any linux binary works. (should be arm compatible and not x86)
    3) it will show slow response as its running in a chrooted environment alongside android so yes performance will be impacted.


    This is really cool and it is working well on my samsung sgh i727 (skyrocket).

    I followed the instructions and everything worked perfectly.

    I'm just wondering if this will work with my phone (i know its not an x10 but i thought you might know)

    I was also wondering how exactly I might access this from my computer.
    I saw someone said all i need is the IP and password but I had a problem with it.

    I have not seen monitor mode working on anything except G1 on android device.

    to access gui on system.
    you will need to connect phone in adb mode
    then run following set of commands
    adb forward tcp:5900 tcp:5900
    adb forward tcp:5901 tcp:5901
    vncviewer localhost:5901

    use password as listed above.
    3
    My hosting service is down for some unknown reasons'....

    I will be uploading the files on media temple and will give link by tonight....
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone