yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Original Android Development] noobsgs2:
Is it safe to install this release on ninphetamine 2.1.3 kernel with LR6.0 rom?
[Galaxy S II Original Android Development] Phk:
Probably yes. Go ahead. Try it and report back. Virtually no harm is possible.
[Galaxy S II Original Android Development] noobsgs2:
I get Error: (Status 0) during the installation of the V2 in CWM

Edit1:

Tried to manually copy the files with root permission but terminal gives me permission denied while setting up busybox

Edit2:

Get it works perfectly giving execute permission to busybox..

I noticed some errors about /system/bin/startbt and stopbt displayed in the terminal console..

Edit3:

Had to reinstall my ROM since random reboots..

Anyway we cant do much without wifi drivers
[Galaxy S II Original Android Development] Phk:
You can always nmap or metasploit.......... :D
[Galaxy S II Original Android Development] noobsgs2:
Had to reinstall my ROM since random reboots..
[Galaxy S II Original Android Development] noobsgs2:
Can someone try on ninph 2.1.3 + LR6.0 as i did and report similar issues back?
[Galaxy S II Original Android Development] DooMLoRD:
if flashing thru CWM is not working try the manual way:

download the bt5_sgs2_shell_scripts_v2.zip and place it on SDCARD

using root explorer to extract contents of the zip file to some location... now copy the extracted files (from) to [new location]:

copy <extractedpath>\data\local\tmp\bt\busybox to /data/local/tmp/bt/busybox

copy <extractedpath>\sdcard\bt\bt to /sdcard/bt/bt

copy <extractedpath>\sdcard\bt\installbt.sh to /sdcard/bt/installbt.sh

copy <extractedpath>\sdcard\bt\startbt to /sdcard/bt/startbt

copy <extractedpath>\sdcard\bt\stopbt to /sdcard/bt/stopbt

now use terminal emulator and execute the following commands

su
busybox chown root.root /data/local/tmp/bt/busybox
busybox chmod 0777 /data/local/tmp/bt/busybox

thats it...

also make sure that u have extracted the archive (big one) and that the bt.img file is in /sdcard/bt/ folder
[Galaxy S II Original Android Development] noobsgs2:
Well i actually gave to busybox all the permissions but the problem was later... i had killui exit and stopped all.. even rebooted as u said but some randoms crashes started up so i decided to reinstall all... what could be the prob?

I tryed your codes too but after

busybox chown root.root /data/local/tmp/bt/busybox

i had "chown: unknown user/group root:root

I issued the second command without the first

busybox chmod 0777 /data/local/tmp/bt/busybox

And now it seems to work good without crashes or reboots.. was the first necessary?
[Galaxy S II Original Android Development] gangster429:
if it could be useful here link for connecting with putty to android

http://xdaforums.com/showthread.php?t=1274635
[Galaxy S II Original Android Development] bykr_dude15:
It works

Just tested this out on my att sgs 2 and works amazingly well thank you
[Galaxy S II Original Android Development] curioct:
Man I am absolutely astounded, I haven't messed with BT since V3 when I helped Daoid out with some stuff i the airoscript which eventually made it into the BT build and still carry BT3 on a USB stick.

but running it on the phone what an awesome piece of work, not sure I have the bottle to install it on my pride and joy new phone yet but I have downloaded it for when my bottle catches up. concerns about rom count and warranty I have already rooted the phone and that set my rom count to 1 :(

What a great piece of work

[update]

just bought a jig :)
[Galaxy S II Original Android Development] curioct:
AAAH well the manual install off the scripts mentioned a few posts above and my own impatience got the better of me.

I am happy to report a fully working BT5 on my SGS 2

Stunning work doom and anantshri absolutely awesome. :D:D:D
[Galaxy S II Original Android Development] Omegavirus:
Jsut one question. Shouldn't we shut down backtrack normally, like with the shutdown command? so backtrack can unmount everything and clean everything? cause if we shut down backtrack like in your tutorial, this would be equal to simply plugging out the power cable out of your pc instead of shutting down the pc normally? or is backtrack shut down normally?
[Galaxy S II Original Android Development] n1nj4dude:
hey when i had bt5 on my acer tablet, someone added linesto the script to allow you to browse the internal sdcard, external sdcard and usb drive. i tried to add changes to the script myself to get the same thing to work on this phone but to no avail.... maybe someone can help?

ill post his script "bootbt.sh"

the bold lines are the changes he made

i feel dumb that i cant figure it out, but im a noob when it comes to a lot of this stuff

---------- Post added at 01:27 AM ---------- Previous post was at 12:41 AM ----------

the stopbt script unmounts everything. thats what that command is there for
[Galaxy S II Original Android Development] curioct:
more useful would be how you integrated these in to the current bt, startbt and stopbt scripts.

understanding how you used the variables in these scripts would give us more chance to see what is going wrong and if this was already installed prior to modifying the scripts, also understing if you are editing the scripts that reside in the /system/bin directory or at least reinstalling the them after editing.
[Galaxy S II Original Android Development] n1nj4dude:
On the acer we used the download that was available on backtracks official site, it didnt have a bt, startbt, stopbt scripts it only had the one "bootbt.sh" script, (which i quoted in its entirety) and those bold changes in the script are the ONLY changes made from the original files (here being the bootbt.sh file) from backtrack-linux, i hope this helps?

here is a link to the original post by the member who added the changes http://xdaforums.com/showpost.php?p=14787852&postcount=28
[Galaxy S II Original Android Development] curioct:
ok, unless I am misunderstanding the situation, you were trying to integrate these changes into the the current scripts to make this work with the version discussed in this thread no?

so my point was trying to understand what exactly you tried to make this work?

or am I mistaking what you were saying?
[Galaxy S II Original Android Development] n1nj4dude:
Sorry I misunderstood your post. What I did was take the mounting lines and added only the sdcard one (I figured since the externals are read through the internal sd then that's all I needed, unlike on a500 to the bt and startbt scripts. And added umount line to the stopbt, that didn't work, so I tried adding the others which didn't make a difference. That's all I tried
[Galaxy S II Original Android Development] curioct:
ok so to be clear here you edited the files in /sdcard/bt ?

and this was after you had previously installed BT and run it successfully?

did you then run the install.sh script again? only that script copies these files into the /system/bin directory

when you run 'startbt' then 'bt' and after the session 'stopbt'

you are actually running /system/bin/startbt , /system/bin/bt and /system/bin/stopbt respectively

so unless you run the install.sh script again you are actually running the original unedited versions of these scripts

if I have some time tomorrow night I will have a play see if I can get this working there is no reason why they shouldnt and realistically this would be a good addition for doom to roll into the released version.
[Galaxy S II Original Android Development] n1nj4dude:
Yes in the /sdcard/bt, and yes.

I didn't before, but I just ran the installbt.sh and checked and my changes still didn't show (I'm sure I'm just forgetting or not doing something simple)

That sounds great, I really appreciate the help
[Galaxy S II Original Android Development] n1nj4dude:
Thank you! this works great! and i tested the usbStorage and theres no problem there either, i appreciate you getting this working!
[Galaxy S II Original Android Development] deepflash:
is it possible to run java or linux applications with this?

btw it worked on my GS2 just fine.. I just wondered what I can do with it right now.
[Galaxy S II Original Android Development] curioct:
Yes
[Galaxy S II Original Android Development] deepflash:
did anyone try JDownloader with Backtrack?
[Galaxy S II Original Android Development] Da_Choko:
Hey guys what am im doing wrong :confused:

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

$ su

# cd /sdcard/bt

# sh ./installbt.sh

BackTrack CHroot v0.3 for SGS2

This process does NOT damage Android OS!

based on Xperia X10 Customization by Anant http://anantshri.info

modded for SGS2 by DooMLoRD

[ STEP 1 ]

>> Remounting system as R/W

>> Cleaning up old Chunks

>> Creating necessary directories

mkdir: can't create directory '/data/local/bt': File exists

>> Copying files to /system/bin/

>> Checking premissions of copied files

>> Remounting system as R/O

BackTrack is now configured!

[ STEP 1 COMPLETE ]

to Start BackTrack type 'startbt' (without the quotes)

# sh ./startbt

BackTrack Loader by Anant based on ubuntu loader

[ STEP 2 ]

>> Setting variables

>> Creating nodes

>> Mounting image

>> Setting other mount points

>> Seting environment

net.ipv4.ip_forward = 1

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

[ STEP 2 COMPLETE ]

BackTrack is ready just type 'bt' (without the quotes)

# sh ./bt

[ STEP 3 ]

>> Setting variables

>> Correcting resolution issues

[ STEP 3 COMPLETE ]

Customized script for BackTrack by Anant shrivastava http://anantshri.info

modded for SGS2 by DooMLoRD

Enjoy BackTrack 5 }:)

BackTrack shell will now be lauched

to start GUI (vncserver) type 'ui' (without the quotes)

bash-4.1# ui

bash: ui: command not found

bash-4.1#
[Galaxy S II Original Android Development] curioct:
You don't don't need sh or ./ when invoking bt.

sh starts a new shell which is why you are seeing the bash prompt and ./ tells the interpreter to use the current folder, which is not needed because bt is in the phones bin folder.

Are you sure you're ready for Back|track?
[Galaxy S II Original Android Development] Da_Choko:
No not really but I always wanted to try this.

When im using

su

cd /sdcard/bt

sh installbt.sh

startbt

bt

Im getting bash-4.1# instead of the red root@localhost:# and

ui: command not found
[Galaxy S II Original Android Development] Ashtrix:
Is this possible on SGS :confused:..??
[Galaxy S II Original Android Development] curioct:
I can see no technical reason off the top of my head why it should not work.

I am fuzzy about the chroot element, as I have not tried making such a solution, but I would simply give it a try and see what happens

The hardware limitations of the sgs might be an issue performancewise, without the dual core and the lower ram level, but I would try the scripts and see if I was you.

you might need to edit the

$bboxpath mknod /dev/block/loop254 b 7 254

$bboxpath mount -t ext2 /dev/block/loop254 $mnt

lines if anything

but I think it will work

---------- Post added at 04:28 PM ---------- Previous post was at 04:18 PM ----------

ok not exactly sure why your getting the bash prompt (I cant repeat it)

it's tod do with the command you used to install I think.

but after entering a root shell with su use the following command to check the installation of the scripts

ls -al /system/bin/*bt*

then after running startbt and bt (do not rerun the install script)

try the following commands

ls -al

pwd

/root/bin/ui

echo $PATH

then and post their output here this should give us enough information to ascertain what's going on.
[Galaxy S II Original Android Development] Ashtrix:
that's nice i'll give a try for sure..!

;)
[Galaxy S II Original Android Development] jorge_moran_jams:
Skyrocket

Would this work on a Galaxy SII Skyrocket?
[Galaxy S II Original Android Development] DooMLoRD:
Yes it should... Please test out and let us know...
[Galaxy S II Original Android Development] pman860507:
Thanks for the great tutorial.

I cant access the links for shell scripts v2. (404 Error Access denied.)

In the mediafire mirror only v1 is in there which was not working for me.

Thanks for the help. Look forward to having this running soon.

I'm on the Skyrocket so i will post back after its been completed.

-update-

still cant get it working. (404 Error Access denied.)

using script file in mediafile mirror.

flashing didnt work.

(starting installation)

(aborting installation)

manual didnt work.

first there is no busybox in the zip file not sure if there needs to be in there since i cant access the v2 or the scripts.

and when i run the command.

su (worked great)

busybox chwn root.root /data/local/tmp/bt/busybox

chwn: unknown user/group root:root.

I know others have reported this not working but the second command working but i dont have a busybox file inside of my bt folder.

Guess im not sure what to do. I would love to get the V2 files.

this is also what my terminal says.
[Galaxy S II Original Android Development] curioct:
Ok well the modded versions i.made of the v2 scripts are two pages back you should be able to suss it from there. You can simply manually copy those to the right locations.

But the errors look like the mount command is failing did busybox get installed correctly?
[Galaxy S II Original Android Development] pman860507:
I ran though the busybox installer again. It's version 1.19.3.

It's installed in /system/xbin/. (that was the default option.)

-update-

Tried installing busybox to /system/bin/. After that my busybox command would work so i moved it back over to /system/xbin/

when i was reading though the post. some of the vesrion of busybox was not working so the developer added a busybox inside the package.

I also dont have any files in this location. should i copy my busybox over there?

/data/local/tmp/bt/busybox

Will try with your added scripts.

(same errors)

i think my problem lies in /data/local/tmp/bt/busbox.

i know in /data/ i cant see any of the files in there. (using ASTRO) but i tried to create /data/local and it said it was already there, so why am i not able to see the folders?

Im still 100% new to this. i will keep looking for answer on the forum.

I rerooted my phone hoping that would solve the problem. but still no luck.
[Galaxy S II Original Android Development] [Z][E][U][S]:
Any luck of getting wep/wpa things work? Because this is pretty much main thing having it installed on SGS2 for obvious reasons :P
[Galaxy S II Original Android Development] pman860507:
What i have searched of this topic people are working on it but nothing is done yet. you should search the rest of the forum to see if anything is posted. if its not then im sure that they're not complete.
[Galaxy S II Original Android Development] curioct:
This requires a modded kernel I have done some work on it but no joy yet.
[Galaxy S II Original Android Development] dark-fiction:
Can you please rehost the script pack for the internal storage install, I get an error from your file host saying I don't have access.

Thanks
[Galaxy S II Original Android Development] [Z][E][U][S]:
too bad, but go, go, go, go :p

--

Sent from my imaginary device.
[Galaxy S II Original Android Development] pman860507:
So i got it 90% figured out. The error that im getting now is Permission denied. with the busybox. i ran the command busybox 0777 /...... without any errors that should give me r/w for everything
[Galaxy S II Original Android Development] curioct:
you seem to be over complicating this do you have root explorer? it's a paid app but great, if not you can use root browser

copy busybox to /data/local/tmp/bt (or create a symlink here) make sure it has read write excute perms (chmod 0755 or root explorer)

copy bt, startbt and stopbt /system/bin make sure they have read write excute perms

You can do all this with root explorer/browser and dont even need the install script

then all you need so do in connect is type three commands

$su

#bt

#startbt

simple if you want to install my scripts which include the path fix and the android file system premounted within Back|track but you don't want this to run from the external sd card simply use a text editor and open the startbt script edit the line that reads :-

export kit=/sdcard/external_sd/bt

to read:-

export kit=/sdcard/bt

if you have the default ones they point to the internal sd card anyway but last I had them they had an export path bug in them which lead to problems inside back|track

if you want my advice given the simplicity of these tasks, if you use my scripts I would highly recommend putting a # in front of the three lines that begin:- $bboxpath mount --bind this will comment them out (prevent them from running in the script)

This will for the time being stop back|track mounting your android internal / external and USB drives thus preventing you acidentally screwing them up from within back|track

given that this stuff is basic linux command line you might want to consider learning more of it before playing with back|track, just a thought.
[Galaxy S II Original Android Development] pman860507:
Yep that was easy. Thanks. using external sd method.
[Galaxy S II Original Android Development] curioct:
glad I can help
[Galaxy S II Original Android Development] PunkOz:
Question, can i use aircrack with this?
[Galaxy S II Original Android Development] curioct:
not at the moment, plus I dont think it will ever be possible with the standard wifi I am working a usb solution but too be honest I am hitting barriers and time issues.
[Galaxy S II Original Android Development] KurskS:
maybe I am too noob to understand but what exactly does it do?:D Can anyone explain what is this topic about?:P
[Galaxy S II Original Android Development] curioct:
back|track is a linux live distribution, specifically built for penetration testing packed full of all sorts of tools
[Galaxy S II Original Android Development] PunkOz:
So with Backtrack5 for SGS2 i can test my WiFi password?
[Galaxy S II Original Android Development] curioct:
ok I already answered this largely in your previous post.

the answer is currently no and this might be permanent.

In order to 'test' wi-fi in any meaningful way you need a device that supports 'monitor' mode and a driver that does likewise, then you need that driver to support packet injection.

Currently as best I can ascertain the SGS2 has none of these. (problem 1)

Secondly even if the hardware could support it the driver needs to be compiled for arm architecture (not impossible just a little more challenging) there might be a way to use a legacy patched driver, but probably not (option 1 did a little looking into this built some modules etc and ruled it out as primary approach)

The SGS2 will support usb devices and there are usb wifi devices with supportable packet injection. (option 2 where I have concentrated most efforts)

So I have spent a good deal of time investigating the compiling of kernel modules to support this option. Given the investigations I have done so far I have come to the conclusion that loadable modules will not add the support needed to achieve monitor mode with the default kernel (problem 2)

So I am forced to conclude that I will required a full custom built kernel to achieve this (if it is even possible) (option 3) this is where I have run out of time on the project plus my phone is a key daily use item in my life and work so having to rebuild and reinstall more than 400apps is not attractive to me.

I may come back to this but it's not high priority for me.

So no testing 'your wifi' from your sgs2 is not as far as I know possible as yet at least not through the work I have done.

If someone else has been able to achieve it I'd love to know the methods used :D someone has done it on one of the nokia's from what I read.

When ICS is released and stable it may be worth another look depending in whats in those kernel sources but I suspect it wont change much as I think this is a hardware limitation, I may e-mail the manufacturer to confirm this at some point. But the change to the version 3 kernel may change things.

IF anyone has any useful insight I am happy so share methodology and results so far.
[Galaxy S II Original Android Development] cytrax:
Great job, Curioct!

No one should be attempting to put BT5 on their SG2 if the only application they want it for is to crack wifi. BT5 is a broad penetration testing and vulnerability assessment operating system that far exceeds packet injection. I would suggest to those not sure what BT5 really is to try it out on their PC first.
[Galaxy S II Original Android Development] bofh999:
Nice to have backtrack , sad no listening wifi

hey ahm just a stupid question - wouldnt it be possible to use an usb wlan adapter for that purpose ?

huh how could i overlooked this one : http://xdaforums.com/showthread.php?t=1185793&page=2
[Galaxy S II Original Android Development] samipower:
bofh999

curioct

Yes usb wlan adapter the solution .

In theory in ics full stable samsung rom or in gingerbread xkl1 2.3.6

Galaxy s2 wireless off native broadcom card and plug in a usb wireless chipset support wl1251 might be run ok???

htc g1 wl1251 and run well

http://xdaforums.com/showthread.php?t=1271854

Or other wlan usb adapter (linux port drivers for compile in arm) and usb host recognize

I am searching one usb wifi with chipset support wl1251 (after I founded it , compile drivers port to linux etc..... ) Now searching..

This is the only way I think because broadcom network card very very hard work for can put in monitor mode.

Regards for your reports/opinions

The user Td8f4 well well way but your galaxy S2 died .

JDouce compiled a driver that works
[Galaxy S II Original Android Development] chris331022:
I've got a big problem with the GUI of bt. I can't get it running the way I want it to.

My files are in /sdcard/bt and I put in the following commands in "Better terminal emulator":

startbt

bt

ui

The vnc server seems to be set up, but if I connect with RealVNCviewer to 127.0.0.1:5901, username blank, password=12345678 I get a grey screen with an error message in it. I hope the login data for the vnc server are right.

I hope somebody knows whats the problem. Two screenshots are attached!

EDIT: I'm using CheckRomRevHD v4 with Siyah Kernel 2.6.8! Before the 2.6.8 update of siyah kernel my phone reboots everytime when I entered "ui" in the bt terminal. Since the 2.6.8 update this bug is fixed.
[Galaxy S II Original Android Development] chris331022:
Does nobody has got an idea?
[Galaxy S II Original Android Development] brukhabtu:
I kept getting errors when trying to do that so I unziped the bt5_sgs2_shell_scripts_v2.zip and threw all the files in to /sdcard/bt/

Works perfectly now.
[Galaxy S II Original Android Development] gastruder:
can enyone reupload file:

bt5_sgs2_shell_scripts_v2.zip

its not accesible anymnore.
[Galaxy S II Original Android Development] DooMLoRD:
here u go... file is now mirrored on XDA server
[Galaxy S II Original Android Development] 13pointseven:
Having a problem updating metasploit, any ideas?

svn: Failed to add directory 'data/svn' : an unversioned directory of the same name already exists
[Galaxy S II Original Android Development] Emblema:
Working on ICS ?
[Galaxy S II Original Android Development] DooMLoRD:
This doesn't depend on android OS version...
[Galaxy S II Original Android Development] pierrex10:
i flashed bt5_sgs2_shell_scripts_v2.zip in cwm but when the phone reboots, i didint find these in the bt folder:

•/sdcard/bt/bt

•/sdcard/bt/bt.img

•/sdcard/bt/installbt.sh

•/sdcard/bt/startbt

•/sdcard/bt/stopbt

what sould i do ?

best regards :)
[Galaxy S II Original Android Development] curioct:
flashing the scripts does not put them into the sdcard folder it puts them in the live folders for use. From memory they are installed to the /system/bin folder.

if you followed the install correctly then it should simply be a matter of running them correctly from the command line, connect bot or a similar app will allow you to run them.
[Galaxy S II Original Android Development] pierrex10:
i downloaded connectbot app, when i entered the command everything was running fine but when i wrote: "sh installbt.sh" , its says can't find "sh installbt.sh", what i meant to say that in the bt folder there is only the bt.img, and im following all the steps to the word !