yashsingh1/xdaforums huggingface dataset:
[XPERIA X10 Android Development] a_rocklobster:
Hi again.

I ran 'adb forward tcp:5900'

'adb forward tcp:5901'

and 'vncviewer localhost:5901'

i ran the first 2 separately because when i ran that line as you wrote it i got the error "cannot bind socket"

when i ran the first 2 commands it the adb help came up as if i ran the command: 'adb'.

then when i ran 'vncviewer localhost:5901' it said:

C:\Program Files\Android\android-sdk\platform-tools>vncviewer localhost:5901

'vncviewer' is not recognized as an internal or external command,

operable program or batch file.

I'm using windows and I'm not sure what vnc software i should use

tightvnc and vnc viewer dont have the same fields as the viewer for android; i cannot even enter a password.

this info would be much appreciated.

Thanks
[XPERIA X10 Android Development] anantshri:
Ohk my bad command should be

adb forward tcp:5900 tcp:5900

adb forward tcp:5901 tcp:5901

then try the vnc command
[XPERIA X10 Android Development] a_rocklobster:
I'm sorry but I'm still not understanding

C:\Program Files\Android\android-sdk\platform-tools>adb forward tcp:5900 tcp:5900

error: cannot bind socket

I did the same thing with port5901 and it worked

I'm still not understanding the vnc command. i just opened vnc viewer. i was getting an error over and over again but then i entered 'ui' on the phone and i got prompted to enter the password.

I finally got it working the right way

Thanks very much. I'm going to try installing some more backtrack tools now.
[XPERIA X10 Android Development] anantshri:
oh forgot to mention inside bt ui command must be fired first to get this working.
[XPERIA X10 Android Development] ammadey77:
this wat i get

‎$ export PATH=/data/local/bin:$PATH

$ su

# startbt

mknod: /dev/block/loop254: File exists

mount: mounting /dev/block/loop254 on /data/local/bt failed: Device or resource busy

mount: Device or resource busy

mount: Device or resource busy

mount: Device or resource busy

net.ipv4.ip_forward = 1

Setting /etc/resolv.conf to Google Open DNS 8.8.8.8 and 8.8.4.4

BackTrack Loader by Anant based on ubuntu loader

BackTrack is ready just type 'bt'

#

help please

:(
[XPERIA X10 Android Development] someone755:
Looks like you just need to type 'bt'...

Anyways, will this work on any other phone with a higher Android version?

I have a HTC Desire with ICS...

Downloading, will post results :P

EDIT: In OP, you claim the BT image is 4.9 gig... But that's not true! You can even get a 1060 MB sized one for ARM!

So why on earth would I risk 3 gigs of my sdcard if I can get an img at 1 gig?
[XPERIA X10 Android Development] anantshri:
Sorry for late response.

this means either your system doesn't support loops.

you can try few things

1) restart and run steps again if you get same error then check

losetup -f

the output no needs to be replaced in startbt instead of 254

that should work

if both fails then sorry the kernel doesn't have loop feature in it.

This particular method should work on most of the phones a lot of other phones have also tried this method.

YMMV

That same 1gig .7z file when expanded to be copied on SDCARD turns out to be a 4.9GB monster which you can't copy on the SDCARD (as we are having FAT32 and not NTFS or EXT2 in SDCARD) that's the reason they don't officially support it on Phones and only supported it on XOOM.

hope this helps
[XPERIA X10 Android Development] bo_cah:
same with me when i tried first time,but when i restarted then follow the step,,it's working,,thx for the great work dude,finally i can use BT in my droid:silly:

i'm running ICS,,work fine for me:good:
[XPERIA X10 Android Development] fa_im1:
LOOKING GOOD............!!!!!

LETS GIVE IT A TRY..... :silly:
[XPERIA X10 Android Development] jashanprt:
problem with bt file

First of all thank you for shrinking the img file.

i tried ur method .just had some problems with the files but had some problems in the installbt.sh .i dont know if anyone had the problem but i had to change the commands to system/bin/commands to make them work

but still i have one problem left that is in the bt file

having a segmentation fault in the chroot command...can u help me with it

another Problem i m facing is that i cannot delete loop254 using losetup..it says no such device or address found

Some Little changes doone to make installbt and startbt work on my fit

Did i do anything wrong
[XPERIA X10 Android Development] i860:
Hi

I just install and run your bt on my nexus 4, great job!! Any one manage to successfully conduct a mitm attack ?
[XPERIA X10 Android Development] mogongz:
great work dude, but is it possible o run his on xperia mini pro? custom ics?:confused:
[XPERIA X10 Android Development] aguzt0:
Error on start bt

Hi can anyone help me. :( here my logs

/mnt/sdcard/bt # startbt
losetup: /sdcard/bt/bt.img: No such file or directorymount: mounting /dev/block/loop254 on /data/local/bt failed: No such device
mount: No such file or directory
mount: No such file or directory
mount: 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
/system/bin/startbt: line 20: can't create /data/local/bt/etc/resolv.conf: nonexistent directory
/system/bin/startbt: line 21: can't create /data/local/bt/etc/resolv.conf: nonexistent directory
/system/bin/startbt: line 22: can't create /data/local/bt/etc/hosts: nonexistent directory
BackTrack Loader by Anant based on ubuntu loader
BackTrack is ready just type 'bt'
[XPERIA X10 Android Development] someone755:
The solution has already been posted, check a few posts up.
[XPERIA X10 Android Development] aguzt0:
but it same result.. :confused:

here my terminal script

/ $ losetup -f
/dev/loop0
/ $ ls -l /dev/block/loop*
brw------- root root 7, 0 2014-04-30 23:15 loop0
brw------- root root 7, 1 2014-04-30 23:15 loop1
brw------- root root 7, 2 2014-04-30 23:15 loop2
brw-rw-rw- root root 7, 254 2014-04-30 23:18 loop254
brw------- root root 7, 3 2014-04-30 23:15 loop3
brw------- root root 7, 4 2014-04-30 23:15 loop4
brw------- root root 7, 5 2014-04-30 23:15 loop5
brw------- root root 7, 6 2014-04-30 23:15 loop6
brw------- root root 7, 7 2014-04-30 23:15 loop7
/ $

and my startbt script :laugh:

#Mount SYSTEM RW
#mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
export kit=/sdcard/bt
export bin=/system/bin
export mnt=/data/local/bt
export PATH=$bin:/usr/bin:/usr/sbin:/bin:$PATH
export TERM=linux
export HOME=/root
# Mounting Image to the farthest loop point
# FIXME : check if mount sucessfull otherwise abort whole process.
mknod /dev/block/loop0 b 7 0
busybox losetup /dev/block/loop0 $kit/bt.img
busybox mount -t ext2 /dev/block/loop0 $mnt
mount -t devpts devpts $mnt/dev/pts
mount -t proc proc $mnt/proc
mount -t sysfs sysfs $mnt/sys
#seting environment
sysctl -w net.ipv4.ip_forward=1
echo "Setting /etc/resolv.conf to Google Open DNS 8.8.8.8 and 8.8.4.4"
echo "nameserver 8.8.8.8" > $mnt/etc/resolv.conf
echo "nameserver 8.8.4.4" >> $mnt/etc/resolv.conf
echo "127.0.0.1 localhost" > $mnt/etc/hosts
echo "BackTrack Loader by Anant based on ubuntu loader"
echo "BackTrack is ready just type 'bt'"

can you help me please..
[XPERIA X10 Android Development] someone755:
I've got no idea how or why it works. :T

Either PM the developer or find another way. The Play Store offers tons of Ubuntu installers, though not like this, most of them run through a VNC server.
[XPERIA X10 Android Development] serel:
install bt5 on motorola razr i

Hi,

I tried to install bt5 on my android razr i motorola, first i was stuck with sdcard capacity and i found your forum, btw great job folks!

Everything went ok till i tried to enter the command <bt> in terminal emulator.

I got the error attached...

As I went through the threads but nothing seem to solve my problem, I am joining ls -l output and version of busybox as extra info.

thanks for your help and once again GREAT JOB!!!
[XPERIA X10 Android Development] serel:
backtrack 5 on Motorola razr i

Hi all,

I was stuck with storage limitation and found your forum, btw GRAT JOB!

Went through the installation prcess on Motorola razr i till been asked to ru <bt> command on prompt.

didn't work for me, here is my output:

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

Any help?
[XPERIA X10 Android Development] hesam666:
Multiple files into a zip file?

8 or 5

Can u post screen shot plz
[XPERIA X10 Android Development] litemintx:
How about kali, did someone tried it?
[XPERIA X10 Android Development] jatin vekariya:
Another method

Another methods are available to install backtrack 5 in Lenovo a6000plus??

Please answer fast.
[XPERIA X10 Android Development] @Rizkacandra55:
i have problem in getting to the terminal emulator

root@A1000:/storage/sdcard0/BT5 # sh bootbt.sh

open backing file failed: No such file or directory

mount: No such file or directory mount: No such file or directory

mount: No such file or directory

net.ipv4.ip_forward = 1

bootbt.sh[23]: can't create /data/local/mnt/etc/resolv.conf: No such file or directory

bootbt.sh[24]: can't create /data/local/mnt/etc/hosts: No such file or directory

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

Shutting down BackTrack ARM For Xoom

failed: No such file or directory

failed: No such file or directory

failed: No such file or directory

failed: Invalid argument

1|root@A1000:/storage/sdcard0/BT5 # bootbt.sh

k_shell/0:8899: bootbt.sh: not found

root@A1000:/storage/sdcard0/BT5 # sh bootbt.sh

Loop device exists

open backing file failed: No such file or directory

mount: No such file or directory

mount: No such file or directory

mount: No such file or directory

net.ipv4.ip_forward = 1

bootbt.sh[23]: can't create /data/local/mnt/etc/resolv.conf: No such file or directory

bootbt.sh[24]: can't create /data/local/mnt/etc/hosts: No such file or directory

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

Shutting down BackTrack ARM For Xoom

failed: No such file or directory

failed: No such file or directory

failed: No such file or directory

failed: Invalid argument

1|root@A1000:/storage/sdcard0/BT5 #

anyone can help me plz..and then what i should do??need respons
[XPERIA X10 Android Development] Nagaraj cruze:
Help me.

When I type sh bootbt it says no such file or directory for many lines
[XPERIA X10 Android Development] Crowds:
so this is what we´re talkin` on sametime this afternoon....****!!!

pretty sweet :D
[XPERIA X10 Android Development] shaunbu:
I'm sure I've seen the hacking wep with android question before and the main prob was the wireless drivers supporting monitor mode/injection ect.

I'll b amazed if ya can get the tools to work thou. And how impressed would people b if ya could show them how weak wep is using just your phone. Mates are impressed enough using my ubuntu usb stick! And how I could piss off my computer science mates with iphones :p
[XPERIA X10 Android Development] amtzone:
good job dude.....:D:D:D
[XPERIA X10 Android Development] miata:
Omg!!! This is seriously big news!!

And for arp poisoning, it might be realistic since our chip is from atheros iinm (basing that on PC atheros chips)
[XPERIA X10 Android Development] fauz33:
Im still new here.....

I need to start from where to install this amazing distro on my phone???

sorry for wasting your time.....
[XPERIA X10 Android Development] marcimix:
Yep. This is god question
[XPERIA X10 Android Development] addicted2088:
Oh man, didn't know you devs and coders lived in Pune too, where I live. I gotta start doing some dev work xD
[XPERIA X10 Android Development] kommonk:
I would love to be a tester!
[XPERIA X10 Android Development] anantshri:
Hi All,

sorry for late reply.

first note : files uploaded on dropbox.

link updated on first post....

till you download 500 MB i will quickly rightup a simple howto...
[XPERIA X10 Android Development] depulle87:
Can't wait to test this one whoohoo !!!
[XPERIA X10 Android Development] kommonk:
Dtop box is saying too much traffic hope you can dc I'm downloading though phone and db let's my download resume big respect to the dev :-)
[XPERIA X10 Android Development] anantshri:
Looks like dropbox shuttted down my links for next 3 DAYS :D

Ohk uploading a single 500MB image @ megaupload also trying to upload the image in parts on mediafire.

will keep updating as soon as each part gets uploaded.
[XPERIA X10 Android Development] kommonk:
Is there any chance of a torrent?
[XPERIA X10 Android Development] anantshri:
I am trying to find a way of doing it... right now i am trying to upload file on mediafire megaupload and also my own hosting site... let see where i can get proper work... coz my connection is a bit jittery for past few days.
[XPERIA X10 Android Development] DooMLoRD:
if u want i can host ur torrent... i have a 1MBit line...
[XPERIA X10 Android Development] nicandris:
any news on download links?
[XPERIA X10 Android Development] anantshri:
trying to figure out a way to upload my connection is a bit jittery now days and so all upload's are getting stalled... dropbox links are now a no go for next 3 days...
[XPERIA X10 Android Development] DooMLoRD:
Congrats Anant!!

http://www.xda-developers.com/android/ubuntu-backtrack-5-on-xperia-x10/
[XPERIA X10 Android Development] exsulis:
I remember the driver being issue for wifi scanning, and such on the android os but that was a while ago, and I'm not sure which os version they were workign with, or what phone.

but I did find this on the Motorola Xoom http://www.backtrack-linux.org/forums/backtrack-5-how-tos/40376-%5Bhow-%5D-backtrack-5-motorola-xoom-gnome-ui-via-tightvncserver.html
[XPERIA X10 Android Development] anantshri:
Alternate download link updated for two files third file upload is in progress.

1:45 Hrs more remaining.

Also working on tutorial part..

also placing all tips and tricks in proper order for reference to all.
[XPERIA X10 Android Development] kommonk:
thank you so much ! i will donate asap (am lone parent of 9 month baby :D) ive wanted this since i learnt android was linux!
[XPERIA X10 Android Development] NoDataFound:
I'm working on an image as well, however I suspect your upload will be done before mine is complete.

If I magically get done in the next hour I will post a link to the file.
[XPERIA X10 Android Development] anantshri:
All three Pieces of Image uploaded on server ....

Link's updates....

Please don't mirror right now.

the server has enough bandwidth to serve us all..

Also came up with a simple page here : http://hackomania.com/BT5/
[XPERIA X10 Android Development] boromkeurgui:
tried to download but it dont works.
[XPERIA X10 Android Development] DooMLoRD:
use these ones:

PART 1 : Download Link : http://bit.ly/p1BT5

PART 2 : Download Link : http://bit.ly/BT5p2

PART 3 : Download Link : http://bit.ly/BT5p3
[XPERIA X10 Android Development] boromkeurgui:
thanks doom
[XPERIA X10 Android Development] tonno16:
yes , I' so happy.

But I didn't undestrand the instruction to run it

where are they?
[XPERIA X10 Android Development] DooMLoRD:
From: http://hackomania.com/BT5/

All you need is to

Download File on your machine and decompress

copy all the files in /sdcard/bt

open android terminal and type

cd /sdcard/bt

sh installbt.sh

Once the above script results in welcome then its prety much self explaining.

Keep in mind to use ui and killui scripts to start or stop vnc server

ui and killui are placed at /root/bin and contains Xperia X10 associated resolution setting's please use your own machine's spec in this place.
[XPERIA X10 Android Development] fauz33:
what is the size of image file that you are provided for download???
[XPERIA X10 Android Development] DooMLoRD:
part1: 200MB

part2: 200MB

part3: ~95MB
[XPERIA X10 Android Development] fauz33:
so the image file has been resized form 4.4GB to 500MB???
[XPERIA X10 Android Development] barry99705:
They're compressed.
[XPERIA X10 Android Development] NoDataFound:
I need to clean up the grammar, but I was able to get this to run pretty quickly. My writeup is here: http://blog.l-lacker.com/security-backtrack-5-on-a-galaxy-s-phone/

Yes its for a vibrant, and it does differ from the OP's instructions (I don't use his scripts, only the .img file) . But it should work for all devices.

I'm going to cross post to the vibrant forum as well.
[XPERIA X10 Android Development] MrHassell:
kismet

Q: Is kismet working with WiFi in rfmon, creating the virtual works and you can scan?

http://ryanunderdown.com/linux/cracking-wep-using-backtrack.php

Great work right here! :)
[XPERIA X10 Android Development] DooMLoRD:
i am more interested in packet capture... and then sending the captured packet file to remote server for CUDA-MultiForcer attacks
[XPERIA X10 Android Development] kommonk:
Can some one please help a noob :-\ I got the 3 downloads extracted to sdcard/bt and got bt working but I don't know how to get it looking like yours... sorry I'm simple :-) I'm under the impression it needs something like "ui" and vnc server? Thanks in advance bug respect to the dev :-)
[XPERIA X10 Android Development] k1ckn1ck:
once in bt if you run ui to start vnc server then run vncpasswd to set a password.

You will need a vnc viewer. Settings 127.0.0.1:5901 with your set password.

To close down again disconnect vnc viewer, type killui in term to close vnc and then stopbt to close BT. HTH
[XPERIA X10 Android Development] depulle87:
can only extract first file and its 3.25 gig are the other decompessed as well?

Cause I can't decompress the other two
[XPERIA X10 Android Development] fauz33:
"chroot applet not found"

this statement has shown.....

how to solve this???

i have googled n found need to install busybox.....

already done that....

but still can solve the problem......
[XPERIA X10 Android Development] Gam3-KiNG:
I downloaded and extracted bt, but when I run command startbt after installbt command I get error on mounting line.please guide
[XPERIA X10 Android Development] anantshri:
Sorry all some electric issues here at my home omce supply is back will post the tutorial with all instructions
[XPERIA X10 Android Development] boromkeurgui:
ok we wait . thanks
[XPERIA X10 Android Development] Gam3-KiNG:
Will really appreciate tutorial....please add some faqs to common errors like read only, etc....
[XPERIA X10 Android Development] anantshri:
First post updated with installation instructions.....

FAQ i will try to write one soon....

removing dropbox links as people are still trying to click them although i marked that links are banned right noww...
[XPERIA X10 Android Development] depulle87:
Gonna try it tommorrow thanks
[XPERIA X10 Android Development] anantshri:
instructions

Copying the instructions in post so that no one misses...

Instructions already updated on Post 1.

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

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

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)

Busybox configured (although it gets automatically configured @ rooting)

Android terminal application. (I use android terminal emulator)

Android VNC Viewer

********************************************

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

download all 3 parts of image and place them in single folder.

extract using first file and you will get following files

bt

bt.img

startbt

stopbt

installbt.sh

Copy these files on your phone under /sdcard/bt

using terminal emulator run following commands

Code:

su

cd /sdcard/bt

sh installbt.sh

Now your BT should be configured automatically.

to use your BackTrack you can use following commands.

startbt <- mounts and prepares the system for usage.

stopbt <- unmounts and free up all resources.

bt <- a command line version of BT chroot.

Inside bt shell.

ui <- will start vncserver (default password is 12345678, you can change it using vncpasswd command on bt shell)

killui <- stops the running vncserver.

Any Available VNC client can be used to connect to the BT GUI.
[XPERIA X10 Android Development] fauz33:
"chroot applet not found"

this statement has shown.....

how to solve this???

i have googled n found need to install busybox.....

already done that....

but still can solve the problem......

can u solve my problem???

i have googled it since yesterday.....
[XPERIA X10 Android Development] DooMLoRD:
@anantshri

dude add some logging codes into the scripts...
[XPERIA X10 Android Development] anantshri:
If i am not wrong this error occured when you tried `bt` command

Ohk please post output of following

# which busybox

#busybox

command on shell..

also make sure you go to su mode before using bt command.

TIP : use adb shell to connect to device.

command sequence.

on your desktop

adb shell

# which busybox

/system/bin/busybox

# busybox

just copy paste the output here..... need to check

IN THE MEAN TIME THIS IS WHAT I GET ON MY DEVICE....

BusyBox v1.15.3 (2010-02-06 17:13:19 CET) multi-call binary

Copyright (C) 1998-2008 Erik Andersen, Rob Landley, Denys Vlasenko

and others. Licensed under GPLv2.

See source distribution for full notice.

Usage: busybox [function] [arguments]...

or: function [arguments]...

BusyBox is a multi-call binary that combines many common Unix

utilities into a single executable. Most people will create a

link to busybox for each function they wish to use and BusyBox

will act like whatever it was invoked as!

Currently defined functions:

[, [[, arping, ash, awk, basename, bbconfig, bunzip2, bzcat, bzip2,

cat, catv, chattr, chgrp, chmod, chown, chroot, chrt, chvt, cksum,

clear, cmp, cp, crond, crontab, cut, date, dc, dd, deallocvt, depmod,

devmem, df, dhcprelay, diff, dirname, dmesg, dnsd, dnsdomainname,

dos2unix, du, dumpkmap, dumpleases, echo, egrep, env, ether-wake, expr,

false, fbset, fbsplash, fdisk, fgrep, find, fold, free, freeramdisk,

fsck, fuser, getopt, grep, gunzip, gzip, head, hexdump, hostname,

hwclock, ifconfig, ifdown, ifup, insmod, install, ip, ipaddr, ipcalc,

iplink, iproute, iprule, iptunnel, kbd_mode, kill, killall, killall5,

last, length, less, ln, loadfont, loadkmap, losetup, ls, lsattr, lsmod,

makedevs, md5sum, mdev, mkdir, mkdosfs, mkfifo, mkfs.vfat, mknod,

mkswap, mktemp, modprobe, more, mount, mountpoint, mv, nameif, nc,

netstat, nice, nmeter, nohup, nslookup, od, openvt, patch, pidof, ping,

pipe_progress, pivot_root, printenv, printf, ps, pscan, pwd, rdate,

rdev, readlink, readprofile, realpath, renice, reset, resize, rm,

rmdir, rmmod, route, run-parts, sed, seq, setconsole, setkeycodes,

setlogcons, setsid, sh, sha1sum, showkey, sleep, sort, split, stat,

strings, stty, sum, swapoff, swapon, switch_root, sync, sysctl, tac,

tail, tar, tcpsvd, tee, telnet, telnetd, test, tftp, time, top, touch,

tr, traceroute, true, tty, tunctl, udhcpd, udpsvd, umount, uname,

uncompress, uniq, unix2dos, unzip, uptime, usleep, uudecode, uuencode,

vconfig, vi, watch, wc, wget, which, who, whoami, xargs, yes, zcat
[XPERIA X10 Android Development] anantshri:
That's actually a one liner so i didn't places debug code in thier.
[XPERIA X10 Android Development] fauz33:
this is the output

I saw my busybox version does not same as you.....

do I need to downgrade??
[XPERIA X10 Android Development] d4rkwind:
working on the arc
[XPERIA X10 Android Development] anantshri:
Looks like i got the problem...

can you do one thing

run following command on your phone and tell me result then i can proceed and upload a new file back besides image file so that no other person gets this issue.

If you have not `startbt` then do it first... <- this command is for every restart.

then run this and tell me if you get a red `root@localhost` style prompt.

# /system/xbin//busybox chroot /data/mnt/bt /bin/bash
[XPERIA X10 Android Development] Gam3-KiNG:
I am still getting unable to pass install.sh part successfully. After I enter install.sh I get following

Backtrack .....

...Damage Android Os!

Based on....

.....info

Mount: operation not permitted

Then cleaning up chunks making directories goes smooth n in the ed again on ...

Mount: operation not permitted

Please guide

Sent From My Xperia X - 10, BB. 54, Rom Free X 10 2.2.1
[XPERIA X10 Android Development] anantshri:
did you do an su before this steps.

#sh installbt.sh

also if possible please copy paste entire message here.