yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] michaellee213:
First of all, I have the AT&T version of the Galaxy S3 with the Backtrack 5 image installed to /sdcard/bt5/bt5.img

I can boot up fine. I can share my script if anyone wants to see it.

Here is the problem now with Backtrack on the Galaxy S3. The ARM version of Backtrack was released in May of 2011 and is now very much out of date. Additionally, it does not seem to come with either MySQL or PostgreSQL. This is necessary in order to have functionality with msfconsole (Metasploit) and armitage (metasploit's gui). It is also missing the aircrack suite (airolib for example)

I have created a script to add a few things to the ARM release of Backtrack. It goes something like this. Note that msfupdate is optional (it does take a while)

SCRIPT CENSORED DUE TO ME BEING A NEW MEMBER HERE AS OF SEPTEMBER 5TH, 2012. BECAUSE THE SCRIPT CONTAINS LINKS, I AM NOT ALLOWED TO POST IT UNTIL I HAVE POSTED 10 TIMES HERE ON THESE FORUMS. FILE SHOULD BE ATTACHED TO THIS POST THOUGH

But the PostgresQL issue has been the most difficult. Having either PostgreSQL or MySQL is necessary for use with msfconsole (Metasploit). There is nothing to indicate the presence of either of these in /etc/init.d. Similarly, when a 'service --status-all' is run, nothing of significance is in that list. No postgres, sql, framework, or anything else.

This means that postgresql has to be installed manually, but "apt-get install postgresql" or "apt-get install postgresql-8.4" doesn't work either. They aren't in the default repositories. This further means you have two options if you want postgresql.

You can install the packages manually (I have already written a script that does this) or you can edit /etc/apt/sources.list. Uncomment the first two lines in /etc/apt/sources.list and then add "universe multiverse" to the ends of those two lines. Save, close. Run "apt-get update" and then "apt-get install postgresql-8.4".

The problem is that the PostgreSQL installer can't seem to bind to an IP version 4 loopback (I think). This might be correctable via an edit to /etc/sysctl.conf or sysctl -w *something* or maybe an iptables setting, but I'm not sure. OR COULD IT POSSIBLY BE THE WAY losetup IS DONE IN THESE SCRIPTS YOU GUYS KEEP TRYING TO FIGURE OUT

*Edit on September 7th, 2012*

Metasploit has done away with the db_driver command within msfconsole which forces the use of postgresql. Using mysql or sqlite3 are no longer options within msfconsole. So if there is no postgresql installed, then it must be installed. This seems to be the only obstacle now. I am still trying to find a solution. A higher version of postgresql might be the answer.

In short, this is still being worked on.
[Android Software/Hacking General [Developers Only]] rs2606:
[fixed] The error below was a result of bt folder not being in the root of sdcard:

1|app_49@android:/sdcard/external_sd/bt5 # sh bt

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

Loop device exists

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

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[23]: cannot create /data/local/mnt/etc/resolv.conf: No such file or directory

bt[24]: cannot create /data/local/mnt/etc/resolv.conf: No such file or directory

bt[25]: cannot create /data/local/mnt/etc/hosts: No such file or directory

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: No such file or directory

failed: No such file or directory

failed: No such file or directory

failed: Invalid argument

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

1|app_49@android:/sdcard/external_sd/bt5 #

143|app_49@android:/sdcard/external_sd/bt5 # Killed

137|app_49@android:/ $
[Android Software/Hacking General [Developers Only]] AlexCoolBoss:
SUPPORT

Can it be installed on Samsung Advance :D

Thanks!!!
[Android Software/Hacking General [Developers Only]] Shurley:
Sanity Check - Galaxy Note i717

So I can't get the VNC to work. I used the first Sulivan 3 file download. Installed on local SD at /bt5. Got no verbose when I did busy box but the install checks. I think I have everything pointed the right way. I get no errors aside from a cannot mkdir for the mount I have already made. Session starts. Local X starts. But when I run my viewer I get a 256 failure to config sanity check. I have followed similer threads without luck. Tried SSH then vnc no luck. Hit my head against the wall... no luck. Tried to load the VNC viewer through my computer with the same error. Tried multiple viewers, terminals, busy box, yellow pills. I can use the text version of BT and it says the X desktop has started local. HELP!
[Android Software/Hacking General [Developers Only]] rirozizo:
so the thing that's bugging me is the download hosts, mediafire only works, so i downloaded them and they were corrupted (3 files, there's gotta be a corruption).

anyone that can upload them as a single file? or at least multiple files but different host? (4shared, box, dropbox <--- easiest)

———————————————————

i didn't mean to mock you or to offend you in any kind of way
[Android Software/Hacking General [Developers Only]] liltrip74:
I would be willing to host a mirror for these files as well contact me at admin[ at ]dataowns.com or dbqjpda [ @ ] gmail.com
[Android Software/Hacking General [Developers Only]] romitkin:
Strange. Mediafire works perfect here.

I could try to upload by myself but I have only a 5MBit connection it would take an hour...
[Android Software/Hacking General [Developers Only]] bryanmir:
Come upload ASAP,,we wanna try it..just multi host it in mediafire,megaupload,hotfile and so on...
[Android Software/Hacking General [Developers Only]] msullivan:
It's headed up to Megaupload, Mediafire, and Rapidshare as we speak.

(Mediafire was down for a little while for me, but came back online)
[Android Software/Hacking General [Developers Only]] seji:
Hi,

Backtrack is not booting in my HTC Legend :-(

The following error occurs:

[1] Segmentation fault busybox chroot $
Shutting down BackTrack ARM
losetup : /dev/loop7:Device or resource busy

Anyone have the same error?
[Android Software/Hacking General [Developers Only]] doubleingram:
Boot

Stupid question,

it will allow me to choose OS (Android or Ubuntu BT5) after power on the device or how exactly does it work?

Thanks in advance
[Android Software/Hacking General [Developers Only]] msullivan:
Busybox itself is segfaulting; I'd go grab the newest version you can find and try again.
[Android Software/Hacking General [Developers Only]] msullivan:
Both BT5 and Android use the Linux Kernel; so in effect you're running both simultaneously on top of the same Kernel. After a power cycle you'll return to Android, and BT5 will be completely unloaded at that time. This is a concept called "chroot", if you would like to learn a little more about the technical side of it.
[Android Software/Hacking General [Developers Only]] peperonikiller:
aw, I was going to suggest just stopping by and grabbing myself a local copy :D
[Android Software/Hacking General [Developers Only]] seji:
THX for the advice.

I updatet to 1.8.4. Now i am get this error:

mkdir: can't create directory '/data/local/mnt': File exists
losetup: /dev/block/loop7: No such file or directory
mount: mounting /dev/block/loop7 on /data/local/mnt failed: Device or resource busy
mount: mounting devpts on /data/local/mnt/dev/pts failed: No such file or directory
mount: mounting proc on /data/local/mnt/proc failed: No such file or directory
mount: mounting sysfs on /data/local/mnt/sys failed: 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
umount: can't umount /data/local/mnt/dev/pts: No such file or directory
umount: can't umount /data/local/mnt/proc: No such file or directory
umount: can't umount /data/local/mnt/sys: No such file or directory
umount: can't umount /data/local/mnt: Invalid argument
losetup: /dev/loop7: Device or resource busy
[Android Software/Hacking General [Developers Only]] msullivan:
Try:

ls -l /dev/block | grep loop

Type what the results are in your reply.
[Android Software/Hacking General [Developers Only]] msullivan:
Mirrors are ready to go, see updated first post.

Sorry for all the download troubles, lol.
[Android Software/Hacking General [Developers Only]] seji:
That's the Output:

ls -l /dev/block | grep loop
brw------- 1 root root 7, 0 May 18 16:23 loop0
brw------- 1 root root 7, 1 May 18 16:23 loop1
brw-rw---- 1 root root 7, 10 May 18 16:25 loop10
brw------- 1 root root 7, 2 May 18 16:23 loop2
brw------- 1 root root 7, 3 May 18 16:23 loop3
brw------- 1 root root 7, 4 May 18 16:23 loop4
brw------- 1 root root 7, 5 May 18 16:23 loop5
brw------- 1 root root 7, 6 May 18 16:23 loop6
brw------- 1 root root 7, 7 May 18 16:23 loop7
brw-rw---- 1 root root 7, 8 May 18 16:25 loop8
brw-rw---- 1 root root 7, 9 May 18 16:25 loop9
[Android Software/Hacking General [Developers Only]] romitkin:
**solved*******
[Android Software/Hacking General [Developers Only]] gade12:
New Mirror(megaupload at least) works.Thanks i cant wait to test it
[Android Software/Hacking General [Developers Only]] brilldoctor:
If it would help I could mirror files and guides (unlimited bandwidth)
[Android Software/Hacking General [Developers Only]] msullivan:
What do you mean? They're working fine from here...
[Android Software/Hacking General [Developers Only]] msullivan:
Issue "pwd". Are you sure you installed all the files to "/sdcard/bt5"? Your loop devices are fine, so it's throwing the error because it's looking for the .img file in /sdcard/bt5 and not finding it.
[Android Software/Hacking General [Developers Only]] romitkin:
I think it's /mnt/sdcard/bt5 in Cyanogen. That's what I get when writing "pwd" could be related the the /mnt ?
[Android Software/Hacking General [Developers Only]] msullivan:
In Android the "real" location is often /mnt/sdcard, and then the /sdcard mountpoint is added for simplicity. So yeah, my guess would be that Cyanogen doesn't have the /sdcard mount. You can fix your issue by opening the file "bt" in a Unix-compatible text editor (such as Notepad++, or an editor on the phone itself), and replace all instances of "/sdcard" with "/mnt/sdcard".
[Android Software/Hacking General [Developers Only]] seji:
Output from pwd:

/mnt/sdcard/bt5

So I changed the bt sh script to:

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=/mnt/sdcard/bt5
export bin=/system/bin
export mnt=/data/local/mnt
mkdir $mnt
export PATH=$bin:/usr/bin:/usr/local/bin:/usr/sbin:/bin:/usr/local/sbin:/usr/games:$PATH
export TERM=linux
export HOME=/root
if [ -b /dev/loop7 ]; then
echo "Loop device exists"
else
busybox mknod /dev/loop7 b 7 0
fi
#mount -o loop,noatime -t ext2 $kit/bt5.img $mnt
losetup /dev/block/loop7 $kit/bt5.img
mount -t ext2 /dev/block/loop7 $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"
umount $mnt/dev/pts
umount $mnt/proc
umount $mnt/sys
umount $mnt
losetup -d /dev/loop7

But i get the same error:

/mnt/sdcard/bt5
# sh bt5
sh bt5
sh: Can't open bt5
# sh bt
sh bt
mkdir: can't create directory '/data/local/mnt': File exists
Loop device exists
losetup: /dev/block/loop7: No such file or directory
mount: mounting /dev/block/loop7 on /data/local/mnt failed: Device or resource b
mount: mounting devpts on /data/local/mnt/dev/pts failed: No such file or direct
mount: mounting proc on /data/local/mnt/proc failed: No such file or directory
mount: mounting sysfs on /data/local/mnt/sys failed: 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
umount: can't umount /data/local/mnt/dev/pts: No such file or directory
umount: can't umount /data/local/mnt/proc: No such file or directory
umount: can't umount /data/local/mnt/sys: No such file or directory
umount: can't umount /data/local/mnt: Invalid argument
losetup: /dev/loop7: Device or resource busy

Maybe the problem is that /data/local/mnt/etc/ & co. is nonexistent ?
[Android Software/Hacking General [Developers Only]] byte_rider:
I copied the first post of this thread to a new wiki page:

http://xdaforums.com/wiki/BackTrack_5_for_Android_Smartphones_-_VERY_UNSTABLE

I did not read the whole thread, yet. You are invited to improve the wiki page with your knowledge.

By the way. Thx for working and sharing the Backtrack on Android stuff. Best idea ever. :D
[Android Software/Hacking General [Developers Only]] jago25_98:
If no kernel source like in Chinese copy phones, then probably no ext2 support (how to test?). And if not ext2 then filesize limit of 4gb = too big for the 5gb backtrack iso...

so... need to get into that iso and get it down. It should be about 500mb imho since it only uses a couple of scripts to actually do the wifi work that most people are interested in...
[Android Software/Hacking General [Developers Only]] Pretorian187:
Problem with starting backtrack in VNC

Hi Guys,

I´m desperately trying to run backtrack 5 on my Samsung Galaxy beam I8530 ( the one posted by msullivan), but I just dont manage to open it with vnc. I can start it in the terminal emulator but then when I go to vnc and try to open it from there I get: There is a problem with the configuration server. (/usr/lib/libgconf2-4/gconf-sanity-check-2 exited with status 256). Now I am aware that this problem occured to several users and that it was mentioned before ( not only on xda) but for me these solutions all didnt work out. So far I tried without success:

- change the resolution:

in terminal emulator I gave command tightvncserver -geometry 480x800 ( my phone resolution is exactly like that). I do know that the startup command of the bt image from msullivan is 800x480 -which I think is the same as 480x800 but nevertheless I gave it a try..

-tried these 3 commands seperately- which I found on a ubuntu forum

sudo chmod 755 /etc/gconf/gconf.xml.*

mkdir -p /etc/gconf/gconf.xml.system; chmod 755 /etc/gconf/gconf.xml.system

sudo chmod 755 /etc/gconf/gconf.xml.system

- I tried something which another member posted once:

"Before starting the GUI go to another terminal (use ConnectBot if not already) and SSH to the phone and start the VNC server from the SSH terminal. I don't understand why this works, but it does. At least for me anyways, every time. Its easy with ConnectBot since you can tell it to automate commands when opening a new terminal so you can have it set to where you just click on it and it does everything for you and then go to your VNC viewer and connect to the port"

So what I did I started bt from the terminal, answered "start vnc" with yes, and then opened connectbot and typed root@localhost and I was connected there. Then I went to VNC and typed in the usual commands ( see below) but still no luck..

In VNC I use the following details:

nickname ( empty)

password: root

address: 127.0.0.1

port: 5901 ( tried 5900, 5902, 5903 but these dont let me connect at all)

username ( empty)

color format 24 bit ( also also tried the others without success)

force full screen: auto

Beside the error message I get a grey screen but I am able to move the mouse

Im running on a rooted samsung galaxy beam l8530, stock rom, su access works fine. The BT folder is situated on my external sd in format fat32. Can somebody PLEASE guide me in the right direction? I am running out of options

EDIT: I found the solution now. First I startet bt over terminal e, then when it asked me to start vnc I said no, then I opened connectbot and startet vnc from there with command startvnc. And there you go..
[Android Software/Hacking General [Developers Only]] 0xv:
Hmm.. Interested
[Android Software/Hacking General [Developers Only]] nrzm:
there is error downloading from rapidshare can u upload it again and thank u great work
[Android Software/Hacking General [Developers Only]] MotasemBT:
Thanls working

:cowboy:
[Android Software/Hacking General [Developers Only]] Sz0rTi:
Hmm. I downloaded 3 parts from Mediafire and i have: bt, fsrw, mountonly, unionfs and bt5.img. Where I can download "installbusybox" and "busybox"?
[Android Software/Hacking General [Developers Only]] cdrom1028:
the play store
[Android Software/Hacking General [Developers Only]] Sz0rTi:
OK, I reinstalled rom (NXT 1.3) and I tryied on clean system. Evrything works! THX for all!
[Android Software/Hacking General [Developers Only]] bigal1542:
I'm really new to backtrack on Android but seriously looking into it. I'm assuming that BT will take the place of a ROM. Is there any way to run BT in a virtual machine on the phone or maybe even dual boot?

Thanks
[Android Software/Hacking General [Developers Only]] jashanprt:
http://xdaforums.com/showthread.php?t=1074169

well actually it is possible to run backtrack on ur android phones and is well sucessful on some phones
[Android Software/Hacking General [Developers Only]] deyna:
That is basically what this does. This method runs BT in what's called chroot and is not installed in place of your rom.
[Android Software/Hacking General [Developers Only]] randomz99:
hello

i have samsung galaxy s2 I9100

i want to run backtrack 5 on the phone but i have a problem with this command " sh bootbt "

i searched for it in this forum but didnt find the solution for it.

app_151@android:/ $ su
root@android:/ # cd sdcard/BT5
root@android:/sdcard/BT5 # sh bootbt
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: line 23: can't create /data/local/mnt/etc/resolv.conf: nonexistent directory
bootbt: line 24: can't create /data/local/mnt/etc/hosts: nonexistent 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@android:/sdcard/BT5 #

some information about the phone:

Android version

4.1.2

Basseband version:

I9100XXLS8

Kernel Version:

3.0.31-Siyah-s2-v6.0b4+gm@ubuntu

Build number:

JZO54K.I9100XWLSD

- the phone is rooted

- busybox is installed and updated

so how i can fix this problem?
[Android Software/Hacking General [Developers Only]] the.nebular:
Can't mount loop

I'm attempting this on my rooted stock Bell S3.

I run this:

losetup /dev/loop20 $kit/bt5.img

mount -t ext2 /dev/loop20 $mnt

and I get:

mount: Device or resource busy

this does the same thing:

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

Do i need a new kernel or is something else going wrong?
[Android Software/Hacking General [Developers Only]] jhayton:
Try

root@android:/sdcard/BT5 # sh bootbt.sh
[Android Software/Hacking General [Developers Only]] munnibhai:
thanks... even i am having the same xact problem. have got busybox, vnc and emulator installed and phone rooted on 4.1.2 SGS2. but dont really seem to solve it out as there isnt anyone who can just waste a little time for a solution?

i cant figure out how in the world people have manages to run BT5 on their SGS2
[Android Software/Hacking General [Developers Only]] insignia96:
In order for this to be usable on my device, I need to change the screen resolution to 1280x720. I have tried running:

Xtightvnc -geometry 1280x720

but it never works! When I log into the VNC I am greeted with an X cursor and a striped b&w bg. I'd like to modify it so that it always just starts at 1280x720, but even a workaround in which I don't have to modify the image would rule!

Thanks,

insignia96
[Android Software/Hacking General [Developers Only]] bling8d:
I tried to install bt on my note 2 with "Complete Linux Installer". I extracted the image and ran it. But it's on my extscard so I got an error like mount: mounting /storage on /data/local/mnt/external_sd failed:invalid argument

But except that it ran but when I want to connect to vnc the connection is refused, no idea why. I've tried to reach it from my android and from my computer

Before that I tried to install the arm version from the backtrack website with a script that I found here but I couldn't do it from my external card and I can't make 4+ g free on my internal storage :/