yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] stasok:
guys tell me please, in general backtrack work starts, but crashes when you open a terminal error that: "There was an error creating the child process for this terminal" and did not plow all the prog do not work too because of this, this problem can solvable? Help the simple Russian people, we can not expect help from.

Here's my phone:

Software communication module - 32.49.00.32U_5.11.05.27

Kernel - 2.6.37.4-cyanogenmod-82 245-g7f230e8android @ giulio-desktop # 3

CyanogenMod-7.0.3-Disire assembly GRI40

Recovery-clockwork-3.2.0.1-bravo

Sd-card - 4gb fat32

+

bt5(Build thanks to the author)

P.s. highly interesting to see what it takes Google?
[Android Software/Hacking General [Developers Only]] Orexis:
Everything working great on Google Nexus S 2.3.4. Straight up worked, no problems at all.

Question though: Is it possible to remote desktop to the backtrack chroot from another computer? I've tried remote desktoping to the android in hopes of being able to access BT that way, but regardless of what port the VNCs use, it fails. Can someone please step me through accessing BT from a desktop on the same subnet? thanks.

Edit: So I figured out that in order to get the Remote desktop to even start to work you have to start BT fresh, and never connect to it through the vnc on the android. Once it gives the reply that BT has started, a local ip address to vnc to, and asks if you want to start a vnc server, just try to connect to it through a remote desktop service on a computer. It at least will seem to connect and even ask for the password, however after I enter the password, it errors out and says there was a problem with the protocol. If you already vnc'd to it through the android, it wont even get this far and will refuse the connection every time. I kept trying and trying and the connection wouldn't go through until I completely rebooted the droid and started bt again.

Still though, I cant actually get all the way in, so any help with succesfully RD'ing to BT would be much appreciated
[Android Software/Hacking General [Developers Only]] Reamer09:
Run it as root when you type "ssh xxx.xxx.xxx.xxx" on the desktop you are connecting from.

sent from my KF1 Galaxy S Captivate
[Android Software/Hacking General [Developers Only]] Orexis:
figured it out. tight VNC worked fine, for some reason UltraVNC and other clients wouldn't work. I noticed that armitage isn't installed though and I cant seem to get apt-get update to connect to the repositories (404 errors and the like), meaning apt-get install armitage wont work. Metasploit updaded fine though... wierd
[Android Software/Hacking General [Developers Only]] anantshri:
try apt-get update first and then apt-get install armitage.

i think that should do.

however you need to know that armitage will itself require you to have java and a db server running.
[Android Software/Hacking General [Developers Only]] Orexis:
as I said, apt-get update doesn't seem to do anything, mostly 404 errors and the rest dont seem to download anything. Yeah once I get armitage actually on the machine, I know how to get it running, worked with it on bt4r2. Thanks for your help though
[Android Software/Hacking General [Developers Only]] anantshri:
ohk check what repositories are configured coz that's the only case you will get 404
[Android Software/Hacking General [Developers Only]] Orexis:
Yeah, I uncommented all of the sources in sources.list in an attempt to find something that would get me armitage. Still apt-get update doesn't work and apt-get install armitage returns "cannot find package armitage". Is there a way to manually point to a specific server that's hosting the package I need? It seems source.repository.backtrack-linux.org gets the 404, and armel.repository.backtrack-linux.org says "failed to fetch". Most of the others say "hit" or "ign" but don't download anything
[Android Software/Hacking General [Developers Only]] anantshri:
deb http://all.repository.backtrack-linux.org revolution main microverse non-free testing

deb http://source.repository.backtrack-linux.org revolution main microverse non-free testing

deb http://armel.repository.backtrack-linux.org revolution main microverse non-free testing

this works for me

only keep these 3 and ya if it says hit or ign then that means reository local copy up to date.

also try checking in synaptic also inside gui....
[Android Software/Hacking General [Developers Only]] Yenrac10:
Here is my problem now...

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

sh-3.2$ export PATH=/data/local/bin:$PATH

sh-3.2$ su

sh-3.2# cd /sdcard/bt5

sh-3.2# sh bt

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

losetup: /dev/block/loop7

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

bt: line 24: /data/local/mnt/etc/resolv.conf: No such file or directory

bt: line 25: /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.

failed.

failed.

failed.

losetup: /dev/loop7: Device or resource busy

sh-3.2#
[Android Software/Hacking General [Developers Only]] anantshri:
That's your actuall problem either loop file is not working or it busy.

do one thing edit the file bt

and loook fr code something like

losetup /dev/block/loop7 /sdcard/bt/bt.img

try changing this to something higher.

or better have a look at my script set posted under by ubuntu thread that should work for you. or you might need to mix match the file
[Android Software/Hacking General [Developers Only]] Orexis:
all/source/armel all hit now, and apt-get-update seems to work completely now without any errors............. but STILL, apt-get install-armitage doesn't work :( I tried looking for it in synaptic, but it wasn't there either. I'm at a complete loss of what to do now. Was armitage removed from this .img file? Or am I the only one who doesn't have it? I appreciate you trying to help though, just a bit frustrated and not sure why the packages wont list armitage and why armitage wasn't there in the first place
[Android Software/Hacking General [Developers Only]] Reamer09:
Try moving your apps to your phone off of the SD card. I get that error when I have an app (such as network discovery) on the SD that takes up some of the resources needed

sent from my KF1 Galaxy S Captivate
[Android Software/Hacking General [Developers Only]] anantshri:
Armitage is not part of armel repo k just cross checked you will need to getit from official sitel andinstall on your own the reazon could be java is not running on bt chroot version
[Android Software/Hacking General [Developers Only]] Orexis:
K, got armitage itsself running through the standalone jar file. However, I've tried to setup postgre without success. Any idea how to set up the db manually to work with armitage?
[Android Software/Hacking General [Developers Only]] -Sie-:
Wonder if someone can help?

I am having this error.

losetup: /dev/block/loop7

mount: Device or resource busy

However when checking losetup no loops are mentioned.

losetup -f shows loop0 as the first free loop, so I have edited bt.sh to reference loop0 instead, i then get:

losetup: /dev/block/loop0

mount: Device or resource busy

typical huh?

Ideas?

It worked once but ever since I have had this error....

FIXED:

Guys please try this if you are getting the resource busy error:

run "losetup /dev/loop7" in terminal

run "losetup /dev/block/loops7" in terminal

If either show an assigned application go to Application and move that app to the Phone Memory from SD Card and try again.
[Android Software/Hacking General [Developers Only]] SpyFi:
Ettercap Layer2 Issue

Thanks this works on my HTC Evo 3D Flawlessly with Temp Root.
[Android Software/Hacking General [Developers Only]] kanofski:
hay all

if bin messing arount with this, but i have a poblem i get a error

sh -v bt.sh
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
mkdir $mnt
mkdir failed for /data/local/mnt, File exists
mknod /dev/block/loop7 b 7 7
mknod: /dev/block/loop7: File exists
export PATH=$bin:/usr/bin:/usr/local/bin:/usr/sbin:/bin:/usr/local/sbin:/usr/gam
es:$PATH
export TERM=linux
export HOME=/root
if [ -b /dev/block/loop7 ]; then
echo "Loop device exists"
else
/sdcard/bt5/bt5.img busybox mknod /dev/loop2 b 7 2
fi
Loop device exists
#mount -o loop,noatime -t ext2 $kit/bt5.img /data/local/mnt
losetup /dev/block/loop7 $kit/bt5.img
mount -t ext2 /dev/block/loop7 /data/local/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
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 th
e IP:"
Ubuntu is configured with SSH and VNC servers that can be accessed from the IP:
ifconfig eth0
eth0: No such device
echo " "

busybox chroot /data/local/mnt /bin/bash
[1] Segmentation fault busybox chroot /...

echo "Shutting down BackTrack ARM"
Shutting down BackTrack ARM
umount $mnt/dev/pts
umount $mnt/proc
umount $mnt/sys
umount $mnt
losetup -d /dev/block/loop7

it gives a

[1] Segmentation fault busybox chroot /...

error

can some one help me with this? working on it for 3 days now.

thenkx kanofski
[Android Software/Hacking General [Developers Only]] bmullan:
uboot script is missing something

Adam.... I think the uboot script is missing something.

I've followed everything and I have successfully installed Ubuntu 10.10 and from my Nook Color (rooted & CM7) can start ubuntu using the uboot script below.

However, I continuously see an error message displayed when executing

apt-get install xxxxxxx

the error message is:

Can not write log, openpty() failed (/dev/pts not mounted)

I'm no script expert but I tried to follow what yours was doing.

In your script you set the following ENV variable:

export UbuntuMountPoint=/data/local/mnt

and later use that to either mount or check whether

/dev/pts

/dev/proc

/sys

are mounted

this is a piece of your script:

[bi]

echo "Mounting $UbuntuMountPoint/dev/pts"

mount -t devpts devpts "$UbuntuMountPoint/dev/pts"

test $? != 0 && echo "Failed mounting $UbuntuMountPoint/dev/pts as devpts filesystem type"

echo "Mounting $UbuntuMountPoint/dev/proc"

mount -t proc proc "$UbuntuMountPoint/proc"

test $? != 0 && echo "Failed mounting $UbuntuMountPoint/proc as proc filesystem type"

echo "Mounting $UbuntuMountPoint/dev/proc"

mount -t sysfs sysfs "$UbuntuMountPoint/sys"

test $? != 0 && echo "Failed mounting $UbuntuMountPoint/sys as sysfs filesystem type"

[/bi]

If I'm reading this right the above commands would need the following files to "mount to"

/data/local/mnt/dev/pts

/data/local/mnt/dev/proc

/data/local/mnt/sys

But I didn't see anywhere in the script where those files are created first in order to mount to them?

I checked my Android and

/data/local/mnt/dev

was empty?

I've seen quite a few posts in google searches regarding that error message:

Can not write log. openpty() failed (/dev/pts not mounted?)

Is this something that should have been in the uboot script ?

thanks

brian
[Android Software/Hacking General [Developers Only]] anantshri:
its not that simple.

you got the right point that these commands are mounting the files.

however if you remember the script first part of the script is

mount /dev/block/loopX /data/local/mnt

or simmilar.

this actually mounts your image file @ /data/local/mnt

from this point onwards all internal link will be w.r.t /data/local/mnt

so when we say

/data/local/mnt/dev/pts

we are refereing to image fle and inside image file /dev/pts

i hope you got my point

do one thing when you are inside chroot type mount and put the output here that might help us solve the problem.
[Android Software/Hacking General [Developers Only]] bmullan:
Thanks... here's the output from the MOUNT command...

root@localhost:/# mount

rootfs on / type rootfs (rw)

tmpfs on /dev type tmpfs (rw,mode=755)

devpts on /dev/pts type devpts (rw,mode=600)

proc on /proc type proc (rw)

sysfs on /sys type sysfs (rw)

tmpfs on /mnt/asec type tmpfs (rw,mode=755,gid=1000)

tmpfs on /mnt/obb type tmpfs (rw,mode=755,gid=1000)

/dev/block/mmcblk0p2 on /rom type vfat (rw,noatime,nodiratime,uid=1000,gid=1000,fmask=0117,dmask=0007,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,errors=remount-ro)

/dev/block/mmcblk0p5 on /system type ext4 (rw,barrier=1,data=ordered)

/dev/block/mmcblk0p6 on /data type ext4 (rw,nosuid,nodev,noatime,barrier=1,data=ordered)

/dev/block/mmcblk0p7 on /cache type ext4 (rw,nosuid,nodev,noatime,barrier=1,data=ordered)

/sys/kernel/debug on /sys/kernel/debug type debugfs (rw)

/dev/block/vold/179:16 on /mnt/sdcard type vfat (rw,dirsync,nosuid,nodev,noexec,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)

/dev/block/vold/179:16 on /mnt/secure/asec type vfat (rw,dirsync,nosuid,nodev,noexec,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)

tmpfs on /mnt/sdcard/.android_secure type tmpfs (ro,size=0k,mode=000)

/dev/block/vold/179:8 on /mnt/emmc type vfat (rw,dirsync,nosuid,nodev,noexec,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)

/dev/loop0 on / type ext4 (rw,noatime,barrier=1,data=ordered)

devpts on /dev/pts type devpts (rw,mode=600)

proc on /proc type proc (rw)

sysfs on /sys type sysfs (rw)
[Android Software/Hacking General [Developers Only]] sai.suri1983:
how to package the three files downloaded from Mirror 1

Hi,

I've Samsung GT i5503. Updated with froyo from samfirmware. Want to install BT5. I've downloaded the three files from mirror 1 in this thread. How to pack them first?. Does my android suports to BT 5? and Do i need VNC server to install BT 5? if so how to use VNC server? pls suggest....

Thanks in advance.
[Android Software/Hacking General [Developers Only]] z3nful:
Your bt5.img is being mounted in the wrong spot, for some reason its being mounted to / instead of $mnt.

What does your script look like?
[Android Software/Hacking General [Developers Only]] anantshri:
that exactly how it should look like when you are inside chroot. (remember this mount command is run inside chroot and not from android terminal)

@bmullan : this looks all fine can you again put a screenshot or copy paste what exact error you encounter.
[Android Software/Hacking General [Developers Only]] z3nful:
Haha silly me, I knew that :P nvm :D

Sent from my Hyperdroid Pocket Laptop
[Android Software/Hacking General [Developers Only]] utrack:
Hello, i got the problem @ my LG GT540:

UPDATE: Some advices for the script

you'd better use something like

than

because wifi dont hooks with eth' devices.
[Android Software/Hacking General [Developers Only]] m2maynard:
Love this!

So, I was able to get this running relatively easy on an Inspire 4G running Coredroid with a modified kernel. I was also able to connect via vnc on the android to see the GUI. I cant wait to play around further with this! One question is, how does the BT5 session end? do I just close out of the terminal and that essentially shuts down the virtual bt5 machine? Trying to wrap my head around it currently...
[Android Software/Hacking General [Developers Only]] Orexis:
So far I've only been able to completely shut it down by rebooting the phone. I've tried sending reboot/shutdown commands through the terminal on the phone (which is much faster than trying to type into the konsole terminal actually in backtrack btw), and while it stops working, it doesn't seem to completely shut down, as I cannot then resend sh bt and have it start back up.
[Android Software/Hacking General [Developers Only]] m2maynard:
Ok. that seems to be my experience also then. I tried to use the exit command via the terminal emulator via the android device, then was able to ssh into it via my ubuntu desktop and sent the reboot command. either way it was hung. Rebooted the phone and that allowed me to log back in and post this from Backtrack on my phone! :) Now to see what this baby can do. i feel like I did when I first discovered custom roms. kinda giddy. :)
[Android Software/Hacking General [Developers Only]] bmullan:
The error message I keep seeing is:

Can not write log, openpty() failed (/dev/pts not mounted)
[Android Software/Hacking General [Developers Only]] sai.suri1983:
Hi

Here is the script. Unable to find the busybox in bt5 zip folder.there r only 5 files

Bt

Bt5.img

Mountonly

unionfs

fsrw

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

$su

# cd /sdcard/bt5

#sh bootbt

sh: Can't open bootbt

# sh bt

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

losetup: /dev/block/loop7

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

#

Qhat should I do now.
[Android Software/Hacking General [Developers Only]] Reamer09:
As far as this issue, try moving apps off of your SD card onto your phone. I have this error when one of the programs is already using /bin/bash not allowing BT5 to use it.
[Android Software/Hacking General [Developers Only]] sai.suri1983:
Moved all apps to Phone. Again error. Did I miss anything?

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

$ $su

#cd /sdcard/bt5

# sh bt

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

Loop device exists

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

#
[Android Software/Hacking General [Developers Only]] Reamer09:
I'm not sure how to fix that error, but by moving your apps it looks like it fixed the /bin/bash error. That's the one I was telling you how to fix so you don't have to worry about it down the road.
[Android Software/Hacking General [Developers Only]] sai.suri1983:
ThanQ

I'm digging to fix it. One more thing. I'm not using VNC. I'm trying on my mobile with terminal emulator only. Can't configure VNC ....

Any way ThanQ so much
[Android Software/Hacking General [Developers Only]] Reamer09:
You have to start with the terminal no matter what. The VNC comes up because it is programed into the bt file to do so in order to keep the user from having to do one more step if they want a GUI. I'm pretty sure there has been others with your same error so maybe if you search in this thread then you can find someone that has fixed it.
[Android Software/Hacking General [Developers Only]] AWUS036NH:
When i try to run BackTrack 5 on my P500 Optimus One with Gingerbread 2.3 and root installed, i get this error:

mkdir failed for data/local/mnt, File exists

net.ipv4.ip_forward = 1

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: Device or resource busy

Can anyone help me?

:D
[Android Software/Hacking General [Developers Only]] msullivan:
Stop spamming me; that pisses people off (myself included).

It segfaulted, meaning it's probably not compatible with your kernel or something.
[Android Software/Hacking General [Developers Only]] AWUS036NH:
I just sent a private message today because you don't log since June 30.

Here my Kernel 2.6.35.10.

Do you think is a kernel's problem?

:D
[Android Software/Hacking General [Developers Only]] msullivan:
This post, a PM, and an e-mail. All within 5 minutes of each other -_-

But yeah I'm guessing your kernel just doesn't handle something properly, hence the segfault during the chroot process.
[Android Software/Hacking General [Developers Only]] jak12132:
Droid X

I'm not sure what to change, but here is the error that outputs after I type "sh bt" in Terminal Emulator. I've done some things that others have asked for in the past when they were helping other people so I just added them in the picture.

I attached the picture because I can't link when I'm new. The screen isn't normally red, but the screenshot app I used just did that... I have busybox through a busybox installer app and I have root access (obviously...). I'm almost 100% sure that it has to do with /dev/loop7 and /dev/block/loop7. I've tried changing loop7 to loop255 but that produced the results in the second attachment. I hope someone can help! The screenshot app made one of them red, but I'm too lazy to redo it and make it blue.
[Android Software/Hacking General [Developers Only]] jak12132:
I just fixed the errors between "net.ipv4..." and the words "Ubuntu" by adding mkdir $mnt/etc below mkdir $mnt.
[Android Software/Hacking General [Developers Only]] jak12132:
Wow I've been editing the bt script and I've almost got it! Just need to get the /dev/block/loop7 mounting working and it will work!!
[Android Software/Hacking General [Developers Only]] jak12132:
I will post my edited script tomorrow when I have access to my computer. I hope this might help some people even thought it isn't complete yet.

Edit: I will actually keep editing it tonight and see if I can get it working by tomorrow.
[Android Software/Hacking General [Developers Only]] jak12132:
Edited code

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
mkdir $mnt
mkdir $mnt/etc
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 $/bt5.img $mnt
losetup /dev/block/loop7 $kit/bt5.img
mkdir $mnt/proc
mkdir $mnt/sys
mkdir $mnt/dev/
mkdir $mnt/dev/pts
mount -t devpts devpts $mnt/dev/pts
mount -t proc proc $mnt/proc
mount -t sysfs sysfs $mnt/sys
busybox mount -t ext2 /dev/block/loop7 $mnt
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

Please help me edit the script so I can run backtrack on my droid x. The only issue remaining and not allowing it to run is:

busybox mount -t ext2 /dev/block/loop7 $mnt

Terminal Emulator outputs "Device doesn't exist" when I run bt.
[Android Software/Hacking General [Developers Only]] z3nful:
Losetup goes before mount, and mknod goes like this:

busybox mknod /dev/block/loop7 b 7 7

And losetup at the end needs to be /dev/block/loop7

:)

Sent from my HD2 Pocket Laptop
[Android Software/Hacking General [Developers Only]] e123e123e123:
Great ..... i can run it in Acer A500.

2 question ,

1) why can't use "airmon-ng" command ?

2) How to use this mobile version bt5 to check wifi password ?

Thanks.