[DEV] BACKTRACK 5 on Xperia X10 chroot

Search This thread
hi,

tried this and this are my results:

1. Downloading files -> OK
2. Extract and copy to sdcard/bt -> OK
3. Starting BT -> OK
4. Starting VNC -> OK
5. Connect to VNC -> OK

So far so good but i only get the red Back Track background with a mouse cursor (i can move the cursor) but nothing else.

I have a X10 with SE Stock 2.1 Rom (Rooted)

Have you tried putting a custom rom on your phone then trying it Coz I had the same problem when I tried it on my nexus s and x10. It seemed to not load properly but when I put a custom rom on both my phones it worked. The thread I got my bt5 from says its been tested on 2.2+ but it MIGHT work on 2.1 no tests though. Anthrashi has done an amazing job on this and when it works it is awesome. I'm nit saying that it not working because your not on a custom rom but it seems that is what is causing it not to work properly Coz mine was just b/w screen. Try it with a custom and see what happens but I might wrong in the reason. GD luck.

Sent from my Nexus S using XDA Premium App
 

anantshri

Senior Member
Feb 22, 2011
687
320
Bangalore
anantshri.info
hi,

tried this and this are my results:

1. Downloading files -> OK
2. Extract and copy to sdcard/bt -> OK
3. Starting BT -> OK
4. Starting VNC -> OK
5. Connect to VNC -> OK

So far so good but i only get the red Back Track background with a mouse cursor (i can move the cursor) but nothing else.

I have a X10 with SE Stock 2.1 Rom (Rooted)

if you get the red BT background you might need to stay for some time. It take a minute or so to load up the whole arsenal.
If i get time i might be able to replace the ui with a lighter one ... My only concern is that i want to preserver the backtrack menu.


Have you tried putting a custom rom on your phone then trying it Coz I had the same problem when I tried it on my nexus s and x10. It seemed to not load properly but when I put a custom rom on both my phones it worked. The thread I got my bt5 from says its been tested on 2.2+ but it MIGHT work on 2.1 no tests though. Anthrashi has done an amazing job on this and when it works it is awesome. I'm nit saying that it not working because your not on a custom rom but it seems that is what is causing it not to work properly Coz mine was just b/w screen. Try it with a custom and see what happens but I might wrong in the reason. GD luck.

Sent from my Nexus S using XDA Premium App

hey buddy two thing

1) I never tried this on 2.1 stock ROM.I have been on 2.2 custom Roms from second day i bought my phone.

2) my name spells a bit different : its Anantshri
and thanks for the appreciation.
 

ddaemen

Senior Member
Jul 6, 2006
122
50
39
Heerlen
www.weewheel.com
Thank you for your replies!

i got also the black/white screen and it stayed on it for 5 mins. after that i got the red backtrack logo with a cursor but nothing else. so i let the phone for another 10 mins but nothing happens.

this morning i tried again and phone rebooted after 2 mins.

I tried now again and got the background and nothing else.

I'm not sure to try a custom rom...
 

anantshri

Senior Member
Feb 22, 2011
687
320
Bangalore
anantshri.info
Thank you for your replies!

i got also the black/white screen and it stayed on it for 5 mins. after that i got the red backtrack logo with a cursor but nothing else. so i let the phone for another 10 mins but nothing happens.

this morning i tried again and phone rebooted after 2 mins.

I tried now again and got the background and nothing else.

I'm not sure to try a custom rom...

looks like i might need to check once on stock kernel.

hopefully over the weekend i can tell you the result.
 

redincali

Senior Member
Jul 15, 2009
618
379
I've ran this on both firmwares, stock generic 2.1 and Wolf's CM6, and it works fine on both for me. Stock 2.1 does seem to take a lil longer to load backtrack, but not much.

~via XDA App, x10 CM6 2.2
 
Hi,

I did install following ROM:

[MOD/ROM]scamble_v01.3[CM6.1.3][12thAPR] http://xdaforums.com/showthread.php?t=1015765

and problem solved, what i did notice (but ignored on stock 2.1 ROM) was that on stock 2.1 ROM there where error messages. But on this rom they are gone.

Do you want me to give you the error messages?

I thought it might have been the problem. On these custom roms there seems to be ext2 and ext4 added to them which helps it load by the looks of things. I kept getting error msgs to say it couldn't create a file or something like that and also something about ext2 and ext4. I know that as soon as ext4 is put on you phone it loads things so quickly coz it changes something to do with read and write but you have to admit that bt5 is awesome.

And anantshri soz bout the name misspelled my phone likes to change my spellings to what it feels like. And I wasn't saying that it don't work on 2.1 I was just saying what it said in the other thread about it might not work but no confirmed as no test been done by anyone on 2.1 but I have spoken to some of my mates and some it worked And some it didn't. Don't quite know why but must just be some phones are different even though there the same model. Thanks again for this I can't thank you normally as I'm using xda premium app.

Sent from my Nexus S using XDA Premium App
 
Last edited:

anantshri

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

anantshri

Senior Member
Feb 22, 2011
687
320
Bangalore
anantshri.info
just a small update.

you can modify bt command as follow

if

Code:
    busybox chroot $mnt /bin/bash
(generally last line of script file)
is replaced with

Code:
if [ $# -eq 0 ]
then
    echo "Chrooting"
    busybox chroot $mnt /bin/bash
else
    echo "Executing The commands"
    busybox chroot $mnt "$@"
fi
echo "Exiting"

This effectively allows you to go in and out of chroot environment quickly.

Not sure if someone could use it but i found it useful and thought would share with all..

will try to publish the revised scripts later sometime.
 

Neo.

Senior Member
Dec 19, 2010
780
122
Gods Own Place
Hi Ananthashri,

Is the development complete or is it undergoing?

Do we still need any additional sources to continue further?

btw awesome job!! :D
 

anantshri

Senior Member
Feb 22, 2011
687
320
Bangalore
anantshri.info
Hi Ananthashri,

Is the development complete or is it undergoing?

Do we still need any additional sources to continue further?

btw awesome job!! :D


the chrooting is stable right now so not doing much on that front... .however i do have plans on updating the scripts and combining all 3 scripts into one something like
bt start
bt stop
bt cmd
bt help
bt <app>
bt <normal_command>

but all at conceptual level nothing yet started so if anyone wants to dip in you are most welcome.

however as far as image and chroot is considered they are stable with following points to keep in mind


  1. wifi monitor mode will not work.
  2. dualbooting is far fetched so far, (drivers and basically X11 stuff) (tried over at ubuntu once but failed so left it at that point might give it a try in future.)
 

abrarabbu

Senior Member
Jul 23, 2009
414
49
Toronto
I don't know what all this is about, but, it looks as some serious hardwork.
Thanks ThankQ
I will try this when I gain some knowledge of what this is all about.
Again Thank You
 

karlos_42

New member
Jul 28, 2009
3
0
working backtrack in my xperia x10a 2.3.3 gyngerbread
whith error airmon-ng comand no found snif snif tarjeta wi-fi incompatible¡¡¡¡¡¡
 

newtron_b1

Senior Member
Dec 14, 2010
215
22
PUNE
sh installbt.sh gave me no error

but when i gave startbt is says following

mknod: /dev/block/loop254: File exists
llosetup: /dev/block/loop254: No such file or directory&
mount: mounting /dev/block/loop254 on /data/local/bt failed: Invalid argument
mount: mounting devpts on /data/local/bt/dev/pts failed: No such file or directory
mount: mounting proc on /data/local/bt/proc failed: No such file or directory
mount: mounting sysfs on /data/local/bt/sys failed: No such file or directory
net.ipv4.ip_forward = 1
Setting /etc/resolv.conf to Google Open DNS 8.8.8.8 and 8.8.4.4
startbt: cannot create /data/local/bt/etc/resolv.conf: directory nonexistent
startbt: cannot create /data/local/bt/etc/resolv.conf: directory nonexistent
startbt: cannot create /data/local/bt/etc/hosts: directory nonexistent
BackTrack Loader by Anant based on ubuntu loader
BackTrack is ready just type 'bt'

Then I typed bt it gave me following error..
Customized script for BackTrack by Anant shrivastava http://anantshri.info

chroot: can't execute '/bin/bash': No such file or directory

Please help me to troubleshoot!! I am eagerly interested in using backtrack... i am having X10 mini pro with android 2.3.5!
 

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 root@localhost 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....