Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[DEV] BACKTRACK 5 on Xperia X10 chroot

OP anantshri

11th May 2011, 06:42 PM   |  #1  
OP Senior Member
Flag Bangalore
Thanks Meter: 318
 
682 posts
Join Date:Joined: Feb 2011
Donate to Me
More
==================== 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

======== 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.
Attached Files
File Type: txt BT5 on X10.txt - [Click for QR Code] (5.3 KB, 4593 views)
Last edited by anantshri; 28th September 2011 at 05:46 AM. Reason: added mediafire links
The Following 51 Users Say Thank You to anantshri For This Useful Post: [ View ]
11th May 2011, 06:43 PM   |  #2  
OP Senior Member
Flag Bangalore
Thanks Meter: 318
 
682 posts
Join Date:Joined: Feb 2011
Donate to Me
More
============ SCREEN SHOTS =================


The Following 21 Users Say Thank You to anantshri For This Useful Post: [ View ]
11th May 2011, 06:45 PM   |  #3  
OP Senior Member
Flag Bangalore
Thanks Meter: 318
 
682 posts
Join Date:Joined: Feb 2011
Donate to Me
More
========= 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 root@localhost prompt you can use ui and killui command to start and stop the vncserver.
Last edited by anantshri; 14th May 2011 at 11:22 AM.
The Following 4 Users Say Thank You to anantshri For This Useful Post: [ View ]
11th May 2011, 06:46 PM   |  #4  
Account currently disabled
Thanks Meter: 57
 
182 posts
Join Date:Joined: Feb 2010
Quote:
Originally Posted by anantshri

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
The Following 2 Users Say Thank You to jpminou For This Useful Post: [ View ]
11th May 2011, 06:53 PM   |  #5  
Senior Member
Flag Bhubaneswar
Thanks Meter: 200
 
1,013 posts
Join Date:Joined: Jun 2010
More
Is it for real ?! Wow! Can't wait!!!
The Following User Says Thank You to realunited123 For This Useful Post: [ View ]
11th May 2011, 06:55 PM   |  #6  
bseuhgm's Avatar
Member
Flag Minsk
Thanks Meter: 0
 
82 posts
Join Date:Joined: Nov 2010
More
Thumbs up
hoho it will be great
11th May 2011, 07:01 PM   |  #7  
DooMLoRD's Avatar
Recognized Developer
Flag Noida
Thanks Meter: 39,104
 
13,127 posts
Join Date:Joined: Jul 2010
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 by DooMLoRD; 11th May 2011 at 07:03 PM.
11th May 2011, 07:14 PM   |  #8  
OP Senior Member
Flag Bangalore
Thanks Meter: 318
 
682 posts
Join Date:Joined: Feb 2011
Donate to Me
More
Quote:
Originally Posted by DooMLoRD

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

slow down buddy.... just got the image up and running tools still need to be tested.....

and ya it still needs vnc that's why still chroot.
11th May 2011, 07:29 PM   |  #9  
Neo's Avatar
Senior Member
Flag Gods Own Place
Thanks Meter: 125
 
751 posts
Join Date:Joined: Dec 2010
Donate to Me
More
OMG MAN! I remember asking backtrack in your thread long time back for WEP cracking!

You are the best man! I love your work!

Thank you for listening!
11th May 2011, 09:57 PM   |  #10  
OmegaRED^'s Avatar
Senior Member
Thanks Meter: 608
 
2,702 posts
Join Date:Joined: Oct 2010
WOOOOOOOOOO.
Awesome work!

Post Reply Subscribe to Thread

Tags
backtrack, bt5, chroot
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes