yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] avistylein3105:
Re: Installing bt5 on android

REQUIREMENTS:

1.your phone must be rooted

2.apps to be installed on your phone androidvnc,terminal emulator.get these from market

TUTORIAL:

on pc:

After downloading arm version of backtack5 extract it on ur pc and must have 5 files on it .

1.bt

2.bt5.img

3.fsrw

4.mountonly

5.unionfs

step1:

open the bt file in wordpad,delete all its contents and paste the following code and save it

##########################################

#Back Track boot script V5 for Android #

#Built by Zachary Powell (zacthespack) #

#Modded for Galaxy S3 by Michael Lee on 01SEP2012 #

#Thanks to everyone at XDA! #

##########################################

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 sdcard=/mnt/sdcard

export extsd=/mnt/extSdCard

export USER=root

if [ ! -d "$mnt" ]; then

mkdir $mnt

fi

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

export TERM=linux

export HOME=/root

if [ -b /dev/block/loop255 ]; then

echo "Loop device exists"

else

busybox mknod /dev/block/loop255 b 7 255

fi

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

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

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

mount -t devpts devpts $mnt/dev/pts

mount -t proc proc $mnt/proc

mount -t sysfs sysfs $mnt/sys

mount -o bind /mnt/sdcard $sdcard

mount -o bind /mnt/extSdCard $extsd

if [ ! -d "/data/local/mnt/sdcard" ]; then

mkdir /data/local/mnt/sdcard

fi

busybox mount -o bind /sdcard /data/local/mnt/sdcard

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 "Back Track is configured with SSH and VNC servers that can be accessed from the IP:"

ifconfig wlan0

echo " "

busybox chroot $mnt /bin/bash

echo "Shutting down BackTrack ARM"

umount $sdcard

umount $extsd

umount $mnt/dev/pts

umount $mnt/proc

umount $mnt/sys

umount $mnt

losetup -d /dev/block/loop255

step 2:

create a folder named bt5 and move all the 5 files to that folder

connect phone's sdcard to the pc and copy bt5 folder to the root of your sdcard

ON PHONE:

STEP3:

open terminal emulator

code:

cd sdcard/bt5 [you must be on bt5 folder]

su [for granting super user access]

sh bt

then it asks for [do you want to start a vnc server]? type y

then terminal window is like this

root@localhost:~#

then type startvnc and press enter

root@localhost:~# startvnc

minimize the terminal emulator app

STEP 4:

open androidvnc app

in the connection option select new

in the nickname option type root

in the password option type root

in the address option type 127.0.0.1

in the port option type 5901

in the color format option select 24-bit color

and leave the others

STEP 5:

click on the connect button.:)

BACKTRACK5 WILL SURELY RUN ON YOUR ANDROID PHONE
[Android Software/Hacking General [Developers Only]] i860:
I dl the arm version and i have those files: not the ones like in your post.

I assume bt in this cause is bootbt i copy the code in, but i have this error when sh .

Nexus 4 root install busybox
[Android Software/Hacking General [Developers Only]] avistylein3105:
Reply:

first type the command $ su

and then type $ sh bootbt

still you experience errors post that
[Android Software/Hacking General [Developers Only]] avistylein3105:
you can try the post #600
[Android Software/Hacking General [Developers Only]] i860:
This is the error with the commands above.

Edit bootbt

install busybox

go in terminal

su

cd /sdcrad/BT5

sh bootbt

Ps

mange to install another version of bt5 on my nexus 4. But mitm is not working. Also injection not working. So i need to go back to my Nokia n900
[Android Software/Hacking General [Developers Only]] caribpapi:
I am going by this post, but I am unable to run BT5 successfully. I get this error in Better Terminal Emulator Pro:

[7]: cut: not found

[36]: syntax error: 'if' unmatched

When I extracted the ARM version of BT5, I renamed the bootbt file to bt and erased and pasted the text in post #600. I also DID NOT extract the bt5.img file and left it in the bt5.img.gz archive since storage is in FAT32. Last, I don't want to put the bt5 folder on my internal SD and would like it on my external_sd card.

If I have to extract the full bt5.img file from the gz archive, would formatting my external_sd to NTFS cause any issues with bt5 or other apps? (I'm a Windows user) and... is there anything in the script that has to be changed if I want my bt5 folder on my external_sd?
[Android Software/Hacking General [Developers Only]] avistylein3105:
reply

Download backtrack5 arm version from mirror1,links are given in the first page of this thread.

it contains part1,part2,part3 files.

after download these 3 files in windows pc,right click on the first file and extract using 7zip software.For extraction of these three files u need to download 7zip software.

u have to free up about 3.5 gb of external sdcsrd memory space so that u may be able to place the extracted bt5 folder on the external sdcard after that follow my post #600 .

the script doesn't cause any damage to the external sdcard.i am damn sure about that.
[Android Software/Hacking General [Developers Only]] caribpapi:
Thanks for the reply avistylein. I used all the files included in the archive from the first post, edited the bt file with the script that was posted in post #600 and transferred all files from the bt5 folder to my external_sd. However, I still get the same error after running the command from the external_sd/bt5 folder.

[7]: cut: not found

[36]: syntax error: 'if' unmatched

Any suggestions? Possibly just move it over to my internal SD?
[Android Software/Hacking General [Developers Only]] Pons:
Do you have a full busybox install? Try, from the terminal,

cut

If not, pick up a busybox installation app from the Play Store.
[Android Software/Hacking General [Developers Only]] caribpapi:
I went into my terminal emulator and typed in "cut" but I get a "cut: not found" message. (I tried typing the command after a "su" command as well.

I do have Busybox installed though. (installed in system/xbin/ version v1.20.2-cm9)
[Android Software/Hacking General [Developers Only]] Pons:
Sounds like an incomplete install/busybox. Search on the Play Store.
[Android Software/Hacking General [Developers Only]] caribpapi:
Got it! Uninstalled the version I had, downloaded the latest and now the "cut" error message is gone. Thanks Pons!

However, now I'm getting:

bt[36]: syntax error: 'if' unmatched
[Android Software/Hacking General [Developers Only]] avistylein3105:
reply:

please upload the screenshots
[Android Software/Hacking General [Developers Only]] caribpapi:
Attached the screenshot.
[Android Software/Hacking General [Developers Only]] avistylein3105:
Reply:

move the bt5 folder to sdcard that is it should seems like this sdcard/bt5 and not like this sdcard/external_sd/bt5.

if u have any problem in moving bt5 folder to sdcard reply me
[Android Software/Hacking General [Developers Only]] caribpapi:
Moved over the folder fine, but I get the same error message when trying to run it from the sdcard.
[Android Software/Hacking General [Developers Only]] SmokedDuvel:
Will works well on Samsung Galaxy TAB 2 GT-P5100 ?

I need compatible wi-fi card with airom0n included.
[Android Software/Hacking General [Developers Only]] caribpapi:
Is there a possibility that something with the bt script from post #600 is not compatible with the img file that I downloaded from the 1st post?
[Android Software/Hacking General [Developers Only]] avistylein3105:
The script in the post 600 is compatible with the img file that was downloaded from the mirror1 of 1st post.check that ur kernal supports loop devices.
[Android Software/Hacking General [Developers Only]] ShadowTech13:
I successfully got Backtrack running, but I have a problem. Whenever I open a terminal it says: there was an error creating the child process for this terminal

How do I fix this?
[Android Software/Hacking General [Developers Only]] carloswii5:
Every time I run the command sh bt all it does is open a new line in the emulator
[Android Software/Hacking General [Developers Only]] caribpapi:
Well I guess the script on post 600 works for some, but I can confirm it is not working for me when I have my bt5 folder located on my external SD card. (sdcard/external_sd/bt5) I also verified that the kernel that I am on (stock) does show it supports loop devices.

There was a bt script posted here that worked perfectly for me on a previous Android device I had, but now the link is gone. :( Does anyone have a working script that runs while the bt5 folder is located under external_sd?
[Android Software/Hacking General [Developers Only]] junxracr:
bt5 should be on internal sdcard.

Although maybe you could try formatting the external sdcard something other than Fat32.
[Android Software/Hacking General [Developers Only]] xkaushx:
Need help!!!

whenever i try to get GUI using vnc viewer i get the following thing(see the attached picture) it did showed up the first time but then it was not in full screen it was the size of the grey area in the pic! please help :(
[Android Software/Hacking General [Developers Only]] aurjun:
problem please help me

#su

#cd /sdcard/BT5

#sh bt

sh:can't open bt

please help me it shows that
[Android Software/Hacking General [Developers Only]] Westnile:
Hey you all should know bt5 has been dropped check out Kali it has arm specific builds and better features everyone on bt5 went to Kali its good stuff trust me.

Edit here's the link http://www.kali.org/

Sent from my immorality
[Android Software/Hacking General [Developers Only]] muid02:
can anyone please help me to open backtrack. i did all the steps and all the steps went as written. first i got the screen which is posted just 3 posts above this. then i fixed my geometry to 1280x720 and then all i got was a white screen with a mouse pointer in the middle which doesnt move. please help me to run this. i have been trying this for a long time now
[Android Software/Hacking General [Developers Only]] abgder:
can anyone help me up to provide busybox installer..im currently using n9000 running omni kitkat...tired of using laptop and would like to use bt on my android..
[Android Software/Hacking General [Developers Only]] ankahuja:
:( aircrack tools removed from this repacked version?

how do i port them back?
[Android Software/Hacking General [Developers Only]] StonebridgeGr:
i have xperia e single rooted!!! i want to install backtrack 5. can i install it?
[Android Software/Hacking General [Developers Only]] BlackStorm94:
u0_a211@android: / $ su

root@android:/ # cd/sdcard/bt5

sh: cd/sdcard/bt5: not found

127|root@android:/ #

What is the problem??
[Android Software/Hacking General [Developers Only]] k1ll3r8e:
U have lost a space...

root@android:/ # cd /sdcard/bt5
[Android Software/Hacking General [Developers Only]] BlackStorm94:
The problem is still there.
[Android Software/Hacking General [Developers Only]] k1ll3r8e:
Maybe u have no "BusyBox" installed? Try to download "BusyBox" from PlayStore.
[Android Software/Hacking General [Developers Only]] BlackStorm94:
I have already BusyBox, and I have everything you need to start BT 5. And I have a Galaxy S Duos 2.
[Android Software/Hacking General [Developers Only]] k1ll3r8e:
Hmm that's weird...

1. Does the folder named "bt5" really exists? (no typo like "bt 5")

2. Can u change to another directory with the "cd" command?

Regards,

Sebastian
[Android Software/Hacking General [Developers Only]] BlackStorm94:
1. Yes, the folder exists "bt5".

2. No.
[Android Software/Hacking General [Developers Only]] k1ll3r8e:
Well, i think ur "cd" command got lost or is corrupt...

I tested the command just for fun on 3 different (Stock) AVD's all working fine...

- My thoughts -

In ur situation, i would try to re-install the rom or even try another to check if the same issue happens there...

Hope i could help u with this.

Regards,

Sebastian
[Android Software/Hacking General [Developers Only]] abdullahxda:
Hi friends...

I have installed the BT5 on my android...

When I entered into the BT5 via VNC.

The screen display blanck[emoji53]
[Android Software/Hacking General [Developers Only]] paramzzthakkarzz:
7z

7zip isnt detecting the downloads by mediafire host. Plzz help.
[Android Software/Hacking General [Developers Only]] Minia89:
Great work :D
[Android Software/Hacking General [Developers Only]] abdullahxda:
Try this link:

http://ftp.cc.uoc.gr/mirrors/linux/backtrack/

&

download

The BT5-GNOME-ARM.7z file..

And Extract

Its WORKING:thumbup:
[Android Software/Hacking General [Developers Only]] abdullahxda:
FOR THOSE WHO ARE GETTING TROUBLE WHILE INSTALLING BT5:mad:

INSTALL KALILINUX ITS AMAZING AND BETTER THAN BT5:D
[Android Software/Hacking General [Developers Only]] TrafalgarD:
don't support ext card, sad :(
[Android Software/Hacking General [Developers Only]] aram1900:
Can you help me I get this :

u0_a46@msm8625:/ $ su

root@msm8625:/ # cd /sdcard/bt5

root@msm8625:/sdcard/bt5 # sh bt

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

Segmentation fault

Segmentation fault

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

eth0: No such device

Segmentation fault

Shutting down BackTrack ARM

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

1|root@msm8625:/sdcard/bt5 #
[Android Software/Hacking General [Developers Only]] OneMoreMember:
Hello im trying to run bt5 on my Samsung Tab A wifi, after i login to vnc server it shows a blank screen no GUI
[Android Software/Hacking General [Developers Only]] autoprime:
hmm so issues with getting this to run with cm7 eh? id like to run this on my cm7 Incredible.. on the internal 8gb storage. guess i'll be having double issues?

either way.. thanks for all of this OP. i know i'll get it working eventually :)
[Android Software/Hacking General [Developers Only]] msullivan:
If you want to run on internal it should actually be fine, provided you modify the file "bt" to point to the location.
[Android Software/Hacking General [Developers Only]] msullivan:
The reason it's non-existent is because the loop can't attach to the .img file, so that mountpoint remains empty. What I can tell you is that for whatever reason, the loopback device cannot find your /mnt/sdcard/bt5/bt5.img file. Perhaps try re-copying that file; honestly I don't have a good idea of why the issue is occurring.
[Android Software/Hacking General [Developers Only]] svejstrup:
I get this error when i try:

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

$su

# cd /sdcard/bt5

# sh bt

cut: not found

[: not found

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

[: not found

mknod: /dev/loop7: File exists

losetup: not found

mount: Invalid argument

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: not found

#
[Android Software/Hacking General [Developers Only]] msullivan:
svejstrup, sounds like a bad/old Busybox install; try installing a new, fresh copy from an official source.
[Android Software/Hacking General [Developers Only]] shenye:
here's a direct http mirror :) (courtesy of the VR server :P)

http://shenye.co.uk/files/BackTrack5ForARM-MattsLifeBytesEditionv2.zip
[Android Software/Hacking General [Developers Only]] peperonikiller:
Thank you good sir.
[Android Software/Hacking General [Developers Only]] Lizzo:
sweeeet..gonna try this on my hd2 :D
[Android Software/Hacking General [Developers Only]] brilldoctor:
another direct HTTP server http://brilldoctor.co.cc/Files/BackTrack5ForARM-MattsLifeBytesEditionv2.zip (feel free to visit http://brilldoctor.co.cc/ as well)

if anyone has issues use the contact form on the blog or pm me
[Android Software/Hacking General [Developers Only]] brilldoctor:
and if it helps i have reason to believe my site may be hosted in Pennsylvania about 100 miles from new york (either that or I cant use google maps)
[Android Software/Hacking General [Developers Only]] msullivan:
Scranton, Pennsylvania
[Android Software/Hacking General [Developers Only]] brilldoctor:
that is if you believe ip lookups

on another note: i see rapidshare have doubled their wait time

By the way how do you know scranton
[Android Software/Hacking General [Developers Only]] msullivan:
IP lookup databases are reasonably accurate these days.

http://www.maxmind.com/app/locate_demo_ip?ips=184.82.87.42

I have been writing a network visualization tool that uses IP2City data and draws the traffic on a Google Earth globe, and honestly I've noticed the MaxMind database is often dead-on.
[Android Software/Hacking General [Developers Only]] brilldoctor:
to about 30 miles for me
[Android Software/Hacking General [Developers Only]] Dr_Death:
rapidshare link: https://rapidshare.com/files/2989231807/BackTrack5ForARM-MattsLifeBytesEditionv1.zip
[Android Software/Hacking General [Developers Only]] msullivan:
So, we've got tons of downloads now... are people having success running this? If so please say so, and on what hardware (+ROM, if custom)!
[Android Software/Hacking General [Developers Only]] kuceens007:
all seems to be ok but what i need to do after get a text root@bla bla bla ? :)
[Android Software/Hacking General [Developers Only]] msullivan:
It's in the first post.

If all is well you’ll now be running BackTrack 5 on your Android device; you can SSH to it via Wi-Fi (password ‘root’), or access it from VNC if you said “Yes” to the prompt asking if you wanted a VNC session

To get a GUI for BackTrack on your smartphone’s screen, download a VNC viewer from the market (many are free), then connect to host “127.0.0.1″, port “5901″, password “root”
[Android Software/Hacking General [Developers Only]] kuceens007:
android is usable only for connection? other things with pc?
[Android Software/Hacking General [Developers Only]] msullivan:
I don't understand what you are asking, sorry.
[Android Software/Hacking General [Developers Only]] PIIcoding:
Unfortunatly not -.-

As many reported before me somehow the initial mounting fails .. dont know why yet but I'm on it.

Busybox is tested (from Market btw.) and should be okay.

The script hangs on:

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

My System:

Milestone (1) with latest CM7 from nadlabak
[Android Software/Hacking General [Developers Only]] a8ksh4:
I'm trying this on a Droid 2 w/ latest stock ROM, using BusyBox installer.

Here are the errors I'm seeing:

# sh bt
mkdir failed for /data/local/mnt, File exists
Loop device exists
losetup: /dev/block/loop7
mount: 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
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 an dVNC servers that can be accessed from teh 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

Busybox seems to be installed okay. I see /sdcard/busybox, and if I run busybox, it shows all the cmnds that are available.

The problem seems to be when it tries to mount the loopback device:

mount -t etx2 /dev/block/loop7 /data/local/mnt
mount: No such device

Is ext2 supported on the droid2?
[Android Software/Hacking General [Developers Only]] KoczkaHUN:
you typed "etx2" vs "ext2" if this helps.
[Android Software/Hacking General [Developers Only]] romitkin:
How have you manage to use it in Cyanogen?

I am having trouble as well as other people with this ROM.

Have you changed anything in order to get it working?
[Android Software/Hacking General [Developers Only]] msullivan:
Do an ls -l /dev/block | grep loop and see what comes out.
[Android Software/Hacking General [Developers Only]] Nexz:
Where can i find this file :O?
[Android Software/Hacking General [Developers Only]] Dr_Death:
:confused:
[Android Software/Hacking General [Developers Only]] msullivan:
The busybox installer was removed, was causing too many problems.
[Android Software/Hacking General [Developers Only]] msullivan:
Well guys... my theory of it being "universal" apparently sucks. I'm apparently quite wrong. I'm going to ask that this be pulled off the front page, and I'll work on it and see if we can do better, but right now it just seems way too unstable on other devices.
[Android Software/Hacking General [Developers Only]] Nexz:
hm, the Samsung Galaxy S-Series should be compatible to it, if your phone runs bt well :\
[Android Software/Hacking General [Developers Only]] KoczkaHUN:
could it be somehow smaller in size...? I just can't copy 3.5 gB to a 4 gb card which has got 1,5gb free space...
[Android Software/Hacking General [Developers Only]] a8ksh4:
Ah, the ext2 was a typo copying over to the browser :)

Here's loop devices....

# ls -l /dev/block/loop*

brw------- root root 7, 0 2011-05-17 18:54 loop0

brw------- root root 7, 1 2011-05-17 18:54 loop1

brw------- root root 7, 2 2011-05-18 08:48 loop2

brw------- root root 7, 3 2011-05-17 18:54 loop3

brw------- root root 7, 4 2011-05-17 18:54 loop4

brw------- root root 7, 5 2011-05-17 18:54 loop5

brw------- root root 7, 6 2011-05-17 18:54 loop6

brw------- root root 7, 7 2011-05-17 18:54 loop7

#
[Android Software/Hacking General [Developers Only]] guerreroxp:
Hi

great i have a problem in my instalation

code:

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

$su

# cd /sdcard/bt5

# sh bt

net.ipv4.ip_forward = 1

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

eth0: No such device

[1] Segmentation fault busybox chroot $...

Shutting down BackTrack ARM

losetup: /dev/loop7: No such device or address

#

from kyros 7015

thanks
[Android Software/Hacking General [Developers Only]] PIIcoding:
I think this is a good point to start!

After some checks I found out, that CM7 in some derivates lacks ext2 (boot up ?!) support.

Nadlabak provides a patch for all Androidiani Users:

code.google.com/p/cyanogenmod4milestone/downloads/detail?name=OR1.46extfs_update.zip&can=2&q=

For me it does not work yet with the patch...
[Android Software/Hacking General [Developers Only]] msullivan:
Sorry guys I think it's just not quite ready for general release; I'm going to go ahead and say everyone is "on their own" with this version, and in the meantime I'll continue to work on it and see if we can get it optimized to be what I hoped it would be.
[Android Software/Hacking General [Developers Only]] kuceens007:
Is there all ok?
[Android Software/Hacking General [Developers Only]] spookamiester:
Yeah, good idea. I've lost root access and tried to reboot. Now my phone won't even go past the HTC screen :(

Hopefully I can fix this in CWM.
[Android Software/Hacking General [Developers Only]] msullivan:
Holy crap... How the hell did that happen? Thank goodness for easy ROM flashing, at least.
[Android Software/Hacking General [Developers Only]] spookamiester:
Also if anyone can offer any suggestions here, that would be nice.

Gonna be a little bit upset if I lose my DHD :(
[Android Software/Hacking General [Developers Only]] msullivan:
Giant red banner put up on top post. Please read!