yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] bled82:
What tools work from inside bt5 ? Are any gui based tools ? im new to BT5 and testing but not android and linux.

Working on my G2 cm7 nightly #205 .
[Android Software/Hacking General [Developers Only]] hzkindy:
Excellent thread, I'll try this later.

thanks.
[Android Software/Hacking General [Developers Only]] Aymara:
No, the interesting tools are command line based ... more info about BT5 HERE.
[Android Software/Hacking General [Developers Only]] raymund160:
I've been trying to put backtrack5 on my android device (GT-p1000) running on overcome ROM which can be found here http://www.teamovercome.net/

I followed this guide I found on youtube as I assume that it's the same as yours

http://www.youtube.com/watch?v=QnqQpDnoCg4

(I already have BT5 in root directory)

one thing, I don't have ext sdcard and I'm on ext4

I ran these in order:

su

cd sdcard

cd bt5

sh bt

but I'm getting this mkdir failed for data/local/mnt

and this losetup: /dev/loop7: device busy(i think, i can't remember much cause i already deleted bt5 from my root in hope of redownloading a new one)

and errors in between those two lines
[Android Software/Hacking General [Developers Only]] raymund160:
Okay, after following a different guide (http://blog.l-lacker.com/security-backtrack-5-on-a-galaxy-s-phone/)

I got this error:

mkdir failed for -p, File exists

Loop device exists

ioctl LOOP_SET_FD failed: Device or resource busy

mount: No such file or directory

mount: No such file or directory

mount: No such file or directory

sysctl: applet not found

bootbt: cannot create /data/local/mnt/etc/resolv.conf: directory nonexistent

bootbt: cannot create /data/local/mnt/etc/hosts: directory nonexistent

chroot: applet not found

Shutting down BackTrack ARM For Xoom

failed.

failed.

failed.

failed.

#
[Android Software/Hacking General [Developers Only]] sambwel:
You need to make sure you have the correct path to bt depending on your ROM.

Please don't assume you can just follow someone else's instructions to the letter and not have to troubleshoot anything! A guide for a different device/ROM may not and probably will not work.

Out of curiosity - why is everyone so keen to use BT on their android devices? If it's just for curiosity or to use specific tools that actually work, that's fine! But so much of what BT offers is surely crippled by using chroot, hardware limitations, etc... Not an attack on anyone!! Just honestly curious :)
[Android Software/Hacking General [Developers Only]] raymund160:
What do you mean to direct to the correct path? To modify the bt script? what should I modify then pal?
[Android Software/Hacking General [Developers Only]] raymund160:
One more thing, on the first page it sais that there is incompatibility with voodoo lagfix kernel but still not confirmed. I'm ON a voodoo lagfix kernel... could that be causing all of my trouble?
[Android Software/Hacking General [Developers Only]] Reamer09:
I don't believe so. I've used this on a few ROMs that use lagfix. You could try just disabling it through recovery and see if that fixes it though. Instead of flashing a different ROM. I would say the chances are that either the path is just different for your ROM or you have a conflicting app on the SD card though.
[Android Software/Hacking General [Developers Only]] Halfzipp:
Im getting a syntax error when running this.

96: Syntax error: "fi" unexpected (expecting "then")

any ideas?

Tia
[Android Software/Hacking General [Developers Only]] MATPOC:
I uploaded BackTrack5ForARM-MattsLifeBytesEditionv2.zip file to Yandex hosting: BackTrack5ForARM-MattsLifeBytesEditionv2.zip
[Android Software/Hacking General [Developers Only]] sambwel:
If you are getting errors when you run the bt script, saying that directories don't exist, then yes, that is what I mean - you must work out what the paths actually are for your install, and modify the script accordingly.

Like I said - the way each ROM works is different, significantly so. You might find instructions to do something on Galaxy S, but if it's not specifically for Galaxy S ~running the same ROM as you~, they probably won't work without modification. Part of the fun of playing with stuff like this is working these problems out! Google helps, and so can forums, but if you get frustrated when instructions don't work without modification, and have a bad attitude when people do not just hand you the answer on a platter... Well, you probably shouldn't be trying to play with BT in the first place, because the next thing you know you'll be wondering why aircrack doesn't work.... :rolleyes:
[Android Software/Hacking General [Developers Only]] kostasmag:
bt5, can not start it form terminal

Hi

I have samsung galaxy s2 with 2.3.3

i installed busybox

i put bt5 in sdcard.i had it first in the external sdcard but i could not find it in terminal,and i put it in internal sd.

i can not start backtrack from terminal

you can see my problem in the picture below

http://dl.dropbox.com/u/11682229/SC20111010-155113.jpeg

am i doing something wrong with the comands?

can anyone help me with my problem?

thank you
[Android Software/Hacking General [Developers Only]] gabcas:
you need to put a space between cd and /sdcard

it should be "cd /sdcard/bt5"

not "cd/sdcard/bt5"
[Android Software/Hacking General [Developers Only]] kostasmag:
i did it

its this

http://dl.dropbox.com/u/11682229/SC20111010-221016.jpeg

now what?

i know how to use backtrack in pc.is there any guide for using in android?
[Android Software/Hacking General [Developers Only]] parth:
if you use sd card then your path is cd /sdcard/external_sd
[Android Software/Hacking General [Developers Only]] Spieletips:
I would know its work without a router too ???? because when i will have it in outdoor there no will be a router :D
[Android Software/Hacking General [Developers Only]] Reamer09:
Sometimes. Depends on your phone/ROM. One time I installed it, it worked with my cellular data and another time I installed it, it didn't. I have no clue what the difference was.

sent from my Pinnacle Powered Captivate
[Android Software/Hacking General [Developers Only]] qtwrk:
could someone plz help me here ?

i have successfully had it up and running , but every command i type were responded with "command not found"

except ifconfig and iwconfig were responded with rightful information ...

what's going on ?
[Android Software/Hacking General [Developers Only]] qtwrk:
ok... may be not entirely success

...
[Android Software/Hacking General [Developers Only]] scofilde:
Atrix

hi

i try it on Motorola Atrix

when i open " better terminal emulator "

write " su " enter

write " cd sdcard /bt5 " enter ( can't cd to sdcard /bt5)

and i try to move the files in bt5 to root of sd card and try " cd sdcard " ( its work )

but when i write " sh bt " ( Can't open bt )

help me please

:confused:
[Android Software/Hacking General [Developers Only]] scofilde:
hi

when i write " sh bt "

the terminal write on screen

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

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

$su

# cd sdcard-ext/bt5

# sh bt

mkdir failed for /data/local/mnt, File exists

Loop device exists

losetup: /dev/block/loop7: No such file or directory

mount: Device or resource busy

mount: No such file or directory

mount: No such file or directory

mount: No such file or directory

net.ipv4.ip_forward = 1

bt: cannot create /data/local/mnt/etc/resolv.conf: directory nonexistent

bt: cannot create /data/local/mnt/etc/resolv.conf: directory nonexistent

bt: cannot create /data/local/mnt/etc/hosts: directory nonexistent

Ubuntu is configured with SSH and VNC servers that can be accessed from the IP:

eth0: No such device

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

Shutting down BackTrack ARM

failed.

failed.

failed.

failed.

losetup: /dev/loop7: Device or resource busy

#

what i do ?????

---------- Post added at 01:18 PM ---------- Previous post was at 12:26 PM ----------
[Android Software/Hacking General [Developers Only]] matein96:
Could somebody help me?

This is what happens:

$su

#cd sdcard/bt5

#sh bt

mkdir failed for /data/local/mnt, File exists

Loop device exists

sysctl: applet not found

Ubuntu is configured with SSH and VCN servers that can be ac

cessed from the Ip:

eth0: ip 192.168.0.13 mask 255.255.0 flags [up broadcast

running multicast]

chroot: applet not found

Shutting down Backtrack ARM

losetup: /dev/loop7: No such device or address
[Android Software/Hacking General [Developers Only]] z3nful:
Update busybox
[Android Software/Hacking General [Developers Only]] matein96:
Who? Me? jaja
[Android Software/Hacking General [Developers Only]] z3nful:
Yeah lol, and anyone else thats having issues ;] applet not found is usually caused by outdated busybox :p

Sent from HookupCellular.com
[Android Software/Hacking General [Developers Only]] matein96:
I've done it, but the message is still the same. Could you give me the link for updating it or something like that? Or another command to input? Thanks
[Android Software/Hacking General [Developers Only]] z3nful:
Are you sure your properly rooted? Seems like busybox may not be installed properly
[Android Software/Hacking General [Developers Only]] Shamazo:
I got this up nd running on the tablet only problem is the resolution, and its at phone size. could someone ell me how to run this in 1200x800?
[Android Software/Hacking General [Developers Only]] z3nful:
Edit /root/.vnc/xstartup, and change the resolution values in there :)
[Android Software/Hacking General [Developers Only]] Shamazo:
cool thanks,what do I put into the file to set the resolution.
[Android Software/Hacking General [Developers Only]] matein96:
I´m properly rooted because all the other apps which require root work well. I think the problem is busybox so could you give me a link to download the correct version?

Or to unistall it and install it again?
[Android Software/Hacking General [Developers Only]] z3nful:
I've always used the busybox from the busybox installer app. Before updating, open a terminal and do:

ls /system/bin

ls /system/xbin

To find where the current one is located, then use the installer to update the location that busybox is in. (For me it was bin, for alot of other phones, it's xbin)
[Android Software/Hacking General [Developers Only]] matein96:
I' ve done it it was in xbin, i installed the 1.19 v. Is that the last version or do i try again with the installation of backtrack?
[Android Software/Hacking General [Developers Only]] z3nful:
That's the latest version... at this point I'm kinda stumped lol

If you type "busybox chroot --help" does it show anything besides applet not found?
[Android Software/Hacking General [Developers Only]] matein96:
No it doesn't.
[Android Software/Hacking General [Developers Only]] z3nful:
Your busybox is broken :/

Type just "busybox" into the terminal, and check the version it prints.

Then cd into /system/bin and type ./busybox and check versions/if it exists.

Do this for /system/xbin and /system/sbin

After finding the one its using, note the directory its in, then run busybox installer with that directory as the target.

If that doesn't work, try manually removing busybody and run the installer.

To remove it, do this:

type mount

Find the /system line

In terminal:

su

mount -o remount,rw /dev/block/-insert what it shows on system line- /system

cd -busybox directory-

rm busybox

Then reinstall busybox through installer and reboot.

Hope this helps! :)
[Android Software/Hacking General [Developers Only]] matein96:
I´ve got version 1.90 installed in xbin. I'm going to install it again there and i'm gonna try.

If it says applet not found is it broken?

And i don´t get how to uninstall it could you explain it step by step?

I'm very grateful, you're helping me a lot. :D
[Android Software/Hacking General [Developers Only]] bled82:
You might check and see if there is an update to the rom you are running , I had a similar problem with busy box and for the life of me could not get it to uninstall and reinstall and work for what i was trying to do , then i updated my rom and it work , could save you some time it did for me .
[Android Software/Hacking General [Developers Only]] DrMight:
http://www.nerd65536.com/2011/07/installing-ubuntu-in-android-version-2.html

Currently running both Ubuntu 11.10 and Backtrack 5 on my SGS2 w/ CM 7.1.

"modprobe ext2" returned "module 'ext2' not found", but.. well, still works for me.

I used the guide of nerd65536 (url in post title due to new member restrictions) to first install Ubuntu, then I modified his files, used the image from this thread, and managed to get BT5 running in the same way aswell.

When running GUI using VNC, the phone consume more power than my charger could supply, so it seems the best way to use it is through ssh.

Anyways, if anyones interested, I could toss up my modified files, and write a small guide on how I did this. (Off to sleep now, or I'd post it right away)

(If a working solution already have been found for SGS2 on CM, notify me, and Ill slap myself and feel ashamed for not searching/reading enough before posting.)
[Android Software/Hacking General [Developers Only]] possnfiffer:
I'm very interested in your guide, please do create i'd find it very useful. PM me if you do write it please. Thanks
[Android Software/Hacking General [Developers Only]] m16-maniac:
im intrested:

droid-x that was running official rom (.605) that i rooted and installed latest CM4DX GB "CM4DX-GB-20111105.zip"

"modprobe ext2" returned "module 'ext2' not found" <<<<i get this also

will it be ok for me like it was for you?

do we get a regular gui on the phone after this or do we need to be connected to another computer?

btw i only use my phone in wifi already (with skype as my main phone)

would i still be able to install skype too?
[Android Software/Hacking General [Developers Only]] bullman04:
Please Help Motorola Defy wont boot BT5

somebody please have a solution out there here are the specs.:eek:
[Android Software/Hacking General [Developers Only]] akaruna:
phew... thats a long freakin thread lmfao. just kidding. well after going through the entire thread i still am not able to get bt working. using a droid x. can anyone help me out. would love to run bt on my dx, just for ****s n giggles lol. thx op for this. :)

Sent from my DROIDX using the XDA mobile application powered by Tapatalk
[Android Software/Hacking General [Developers Only]] akaruna:
soooo

so i decided to tinker with it some more and change some of the values of the bt, here is what mine now looks like:

perm=$(id|cut -b 5)

if [ "$perm" != "0" ] ; then echo "this script requires root! Type: su"; exit; fi

mount -o remount,rw /dev/block/mmcblk0p5 / system

export kit=/sdcard/bt5

export bin=/system/bin

export mnt=/data/local/mnt

export PATH=$bin: /usr/bin: /usr/local/bin: /usr/sbin: /bin: /usr/local/sbin: /usr/games: $PATH

export TERM=linux

eport HOME=/root

if [ -b /dev/loop15 ]; then

echo "Loop Device exists"

else

busybox mknod /dev/loop15)15 b 15 0

fi

#mount -o loop,noatime -t ext2 $kit /bt5.img $mnt

losetup /dev/block/loop15 $kit/bt5.img

mount -t ext2 /dev/block/loop15 $mnt

mount -t devpts devpts $mnt/dev/pts

mount -t proc proc $mnt/proc

mount -t sysfs sysfs $mnt/sys

busybox sysctl -w net.ipv4.ip_forward=1

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 bt5" > $mnt/etc/hosts

echo "Ubuntu is configured with SSH and VNC servers that can be accessed from the IP:"

ifconfig eth0

echo " "

busybox chroot $mnt /bin/bash

echo "shutting down BackTrack ARM"

unmount $mnt/dev/pts

unmount $mnt/proc

unmount $mnt/sys

unmount $mnt

losetup -d /dev/loop15

So everything is pretty much the same, with the exception that i changed loop7 to loop15

and removed mkdir /data/local/mnt (i think thats what it was)

now the error im getting is:

bt: 13: Syntax error: ")" unexpected (expecting "fi")

any ideas?
[Android Software/Hacking General [Developers Only]] z3nful:
Change /dev/loop15 to /dev/loop/block15

For the if error, look through your script and make sure all if statements are closed. The loop setup if looks right, but there's something off on it, not quite sure what tbh
[Android Software/Hacking General [Developers Only]] akaruna:
which part would i change /dev/loop15 to /dev/loop/block15?

Sent from my DROIDX using the XDA mobile application powered by Tapatalk
[Android Software/Hacking General [Developers Only]] z3nful:
The if statement loops. They need to match the one on the losetup line and the mount line that grabs the loop
[Android Software/Hacking General [Developers Only]] akaruna:
nope, it didn't work :( i so want to get this to work on my droid x... its my entertainment phone, i should be getting an hd2 pretty soon to use as an actual phone. but i really really want to use this on my dx.
[Android Software/Hacking General [Developers Only]] DrMight:
How I installed Ubuntu and BT5 on my SGSII running CM7.1

How I installed Ubuntu and BT5 on my SGSII running CM7.1

At first, I followed most of nerd65536's guide to install Ubuntu, though, I had to rewrite some files as the memorycard is at a different location on SGSII.

In the install.sh file, I changed

Line 1: [B]sdcard=$(readlink -f /sdcard)[/B] #to# [B]sdcard=$(readlink -f /mnt/emmc)[/B]

and the same change in /scripts/linux,

Line 2: [B]sdcard=$(readlink -f /sdcard)[/B] #to# [B]sdcard=$(readlink -f /mnt/emmc)[/B]

Following the rest of the guide as written, I soon booted up a working version of Ubuntu.

I then made a new folder named bt5, put all the files but the img fom the Ubuntu folder, using the bt5.img supplied by OP in this thread instead.

Renamed the files

[B]/scripts/linux[/B] #to# [B]/scripts/bt5[/B]
[B]/root-scripts/ssh.sh[/B] #to# [B]/root-scripts/ssh5.sh[/B]
[B]/root-scripts/vnc.sh[/B] #to# [B]/root-scripts/vnc5.sh[/B]

Then onto edit the files to support the new names/image

install.sh

Line 3: [B]kit=$sdcard/linux[/B] #changed to# [B]kit=$sdcard/bt5[/B]
Line 4: [B]img=$kit/linux.img[/B] #changed to# [B]img=$kit/bt5.img[/B]
Line 26: [B]$bin/linux mount[/B] #changed to# [B]$bin/bt5 mount[/B]

bt5 (previously named linux)

Line 4: [B]kit=$sdcard/linux[/B] #changed to# [B]kit=$sdcard/bt5[/B]
Line 5: [B]img=$kit/linux.img[/B] #changed to# [B]img=$kit/bt5.img[/B]
Line 18: [B]loopno=254[/B] #changed to# [B]loopno=253[/B]
Line 77: [B]chroot $mnt /root/scripts/ssh.sh[/B] #changed to# [B]ssh5.sh[/B]
Line 81: [B]chroot $mnt /root/scripts/vnc.sh[/B] #changed to# [B]vnc5.ssh[/B]
Line 84: [B]echo "Usage: linux [[u]mount|chroot|ssh|vnc]"[/B] #changed to#
[B]echo "Usage: bt5 [[u]mount|chroot|ssh|vnc]"[/B]

Followed the same procedure as installing Ubuntu, but using bt5/bt5 ssh/bt5 vnc to start backtrack/ssh/vnc instead.

I've uploaded all the scriptfiles here, you'll have to get the bt5.img from OP's first post.

NB: Ubuntu and BT5 cannot be mounted at the same time, you gotta reboot the device to properly dismount before attempting to mount the other.

This is because ssh&vnc are set up to use the same ports, and I dont have enough knowledge to edit that.

Most likely just a command that needs tu be ran after the image is mounted, any got a tip?

PNB: Any attempt to do the same as I did may or may not give the same result. I take no responsobility if anything should happen to your device should you chose to do as I've explained above.
[Android Software/Hacking General [Developers Only]] danielkaboom:
LG optimus 3D

confirm its working on LG optimus 3D, put in internal or external sd, using ROM v21A GingerBread.

thanks all.

edit : i wonder if the backtrack that provide by OP could read and have access to sdcard or external sd. because i run maverick with edited .img, and i can get access to my sd card and external sd, like read and write to it. and its not dissappear when i reboot. for a simple experiment, i make a folder both on my sd card and external sd named "testing", then i reboot my phone, after i get back to ubuntu, the folder i've created is still there. just wondering if this version of backtrack 5 could do the same,..it will be awsome.

thanks to all,..
[Android Software/Hacking General [Developers Only]] z3nful:
Change the mount script to include the sdcard :) mount it into where you would like it to appear on bt
[Android Software/Hacking General [Developers Only]] Allamann:
Someone got this to work on a Galaxy Note?
[Android Software/Hacking General [Developers Only]] netssi:
Please help me..im going nuts :(

Ive been trying to install BT on my Galaxy s2 but i got the same errors ..

Any ideas please? here is the screenshot :confused:
[Android Software/Hacking General [Developers Only]] b0mb3d:
Samsung Galaxy sII epic touch rooted, starburst rom. i have bt5 working at terminal emulater root@localhost, im having trouble getting vnc to work. i connect just fine, i get a grey screen. any ideas?
[Android Software/Hacking General [Developers Only]] jjfoxph:
it mentioned to changed the screen resolution to fit the phones resolution..

hope it helps.
[Android Software/Hacking General [Developers Only]] E:V:A:
Great and useful work!

Please don't forget to UPDATE FRONTPAGE with current status updates. What is working and not working etc. Thanks! :)
[Android Software/Hacking General [Developers Only]] Reamer09:
Use ConnectBot if you are not already. Start one session in backtrack like normal, then while keeping that one open, back out and start a new SSH session to the backtrack session you just created. Now try to vnc, it should work.

sent from my Galaxy S Captivate
[Android Software/Hacking General [Developers Only]] b0mb3d:
Are you saying start it in terminal emulator, use connectbot to ssh the session then run vnc? As of the ssh part, what is it connecting to? localhost:? The IP? And what port i have no idea lol. Ive tried connecting to root@127.0.0.1:5901,5900, connection reset by peer. Close session
[Android Software/Hacking General [Developers Only]] Reamer09:
Yeah, you've got it, except open both sessions in connectbot. It can run more than one at a time. Sorry about the lack of detail, it has actually been awhile since I've tried it. But it does work.

sent from my Galaxy S Captivate
[Android Software/Hacking General [Developers Only]] anduios:
can you try download the latest busybox (1.19.3) and install it in /system/xbin. that would rid some of mount errors.

if it still not install, then use the scripts from the op. i notice u use different scipts (use all the files from 1st page) start over again.

that work for me on o3d. hope it would work for u.
[Android Software/Hacking General [Developers Only]] zedklind:
btw confirmed working on asus transformer prime. thanks to nachoroot and busybox installer(in market)
[Android Software/Hacking General [Developers Only]] dynasty123:
It works for me. T-Mobile G2 w/Andromadus Alpha 7 ICS ROM. One thing: when I start up the bt.sh file, it tells me "eth0: No such device", but after that, it runs fine. Is that telling me it cant find the ethernet port on my phone and is that ok?

Edit: I found what's wrong with the eth0 dilemma. I have to change it to wlan0, but when I do it, it says an error about an if being unmatched. How can I change it properly?
[Android Software/Hacking General [Developers Only]] Reamer09:
I don't think it is that you need to change it to wlan0, you just need to be connected over wifi before starting the bt.sh script.

sent from my Galaxy S Captivate
[Android Software/Hacking General [Developers Only]] dynasty123:
I'm cool now. I was using Wordpad to edit. I used a script editor I found in the market instead. It was cool to mod it that way and I found a way to have the sdcard seen in it and all of the changes stuck without a problem. This is great! I've changed the ROM and it still works.
[Android Software/Hacking General [Developers Only]] djohnswv:
nice guide!

works great on my us cellular samsung mesmerize sch-i500 with rooted 2.3.5 on stock rom!

I don't have service on the mesmerize anymore, but I was trying to install backtrack on it (for cracking wifis) along with google voice (VoIP thru wifi). the network adapter doesn't work with aircrack tho... it says chipset not supported :(

maybe somebody will get it working in the future....