yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Original Android Development] curioct:
It really troubles me the number of you messing with tools you clearly barely understand without even some basic shell scripting skills.

Guys please if you really want to learn this stuff, please try to do some basic research, there's plenty of material out there.

The last few posts are a clear example of this problem the output screens demonstrate exactly what was wrong and should have taken someone who is remotely competent to use backtrack no more than a minute to figure out and fix in anyone of a number of ways (I can think of three off the top of my head).

This is not meant to pick on this poster, (he/she is simply the latest example) we all start somewhere, but there are tools in backtrack that require at least intermediate skills, and I'd hate to see you get yourselves in trouble trying things you have no idea about.

At the very least visit remote-exploit.org and the other associated sites, learn some basic command line Linux as a base minimum startpoint. Ideally learn some C and assembly as well read some of the older texts smashing the stack, mitm etc etc

Don't say you weren't warned! This stuff can harm not only remote systems but also your own. This without even thinking about how you cover your tracks if God forbid you did manage to exploit something. I'm sure none of you want to end up bubba's biatch!

Just food for thought, and feel free to ignore the old fogey if you wish but don't say you weren't warned, a little knowledge in this area truly can be very dangerous! And none is even worse!
[Galaxy S II Original Android Development] Ramazor:
I did not ask anything related to backtrack sine I'm using it as dualboot along with win7. I just wasnt sure if it's some kind of rom for itself or emulator. But regarding the rest of your post, I definitely agree. Don't mess with these things with out knowing some basics of linux or backtrack. It's too bad that this dev isn't as popular as it should be.
[Galaxy S II Original Android Development] curioct:
I was referring to maggot82 ;)

The problem was blatant and basic and could have been fixed by anyone with even a very basic understanding.
[Galaxy S II Original Android Development] Maggot82:
The problem was basic if it was on a pc however when there is a rick of maybe screwing up my phone I'm a little more careful thanks for your comments they were really helpful. If by some fluke I hack into Microsoft from my phone and I'm then arrested and then given death via injection I will sit there and think I should have paid more attention to that dude........ or maybe just maybe I wanted to educate myself as a young man and asked for help..... only to post not long after saying don't worry I sorted it.

Cheers x
[Galaxy S II Original Android Development] curioct:
No the problem was basic fullstop. As I said in the previous post, as I typed it I could think of at least 3 ways of solving it on my phone, off the top of my head. I am not meaning to single you out specifically, we all started somewhere. All I was trying to say was be careful. I'll add to that if you really want to get something out of your efforts my suggestions will be well worth your time.

That elation you felt solving that problem can come many times over as you learn more and more imagine how you will feel on your first successful hack or better yet finding your own very first exploit.

So you can choose to be ignorant and sarcastic. Or you can choose to educate yourself about these things properly.

Your choice of course, no skin off my nose either way, but to me it seems pretty pointless going through the hassle of installing backtrack on your phone if you're not even going to learn basic Linux shell scripting.

Good luck with it either way. I hope you enjoy yourself with it.
[Galaxy S II Original Android Development] Maggot82:
Well you are making this about me so of course I will come back at you what do you expect ? Again no problem is simple if you don't know the answer, I would give a for instance but as you obviously know everything about everything I won't waste my time.

You have a few points that I agree with but why you feel the need to act like you are I done know, maybe its the whole age thing and how you know best...... well you dont.

Right I have said my bit and I won't respond to any further post from yourself especially if its condersending.

Oh and the whole point wasn't to use it but just to see if I could do it. I actually do use it in a VM box, if you want to help figure out a way to make the built in wifi on my laptop show as wlan0 when in the BT VM box

Again thanks
[Galaxy S II Original Android Development] mistressgemini:
I find it annoying when good advice or input is stomped on. I have started to notice that I get even more annoyed when I see the stomper is another special snowflake. I am an outsider that read this thread from that vantage point, and no one made you the center of attention except for you. I would be willing to bet as the lethal injection was about to be injected, you'd be mulling over all the people that you place blame on for your own actions. The person responding wasn't picking on you, & clearly mentioned that they were speaking about this being an issue that is mentioned more often as time passes.

The difference between successful people that remain successful and the rest of the world is one group chose to observe good advice or input even when it was unsolicited. There is nothing wrong with wanting to solve an issue on your own, & I prefer to do it that way. The first step in anything is to RTFM or folIow the advice of those that have it down. I can promise there is a big difference between getting lucky and truly knowing how to do something the correct way. You can view this in the same way you did the other advice, and I can promise it won't cause me to be up worrying about all the things Bubba has planned for his next cell mate.
[Galaxy S II Original Android Development] Maggot82:
Yawn

The chap clearly states it aimed at me, thank you

that helpful comment was also your first post well done you getting involved in somthing that had nothing to do with you, regarding the other chap we were having some harmless banter and if you read I even invited him to help with a real issue I am having im sure hes not getting to upset by any of this as it would be silly, after all it is just forum chat everone has an argument or a point of view.............
[Galaxy S II Original Android Development] curioct:
Actually what I said originally was that my post was aimed at many people on this thread, in fact it had been a long time coming, your post was simply the final one that triggered me to respond yours and the guy joking about connecting to his school network.

As for your wireless issues, with a VM what you are trying to do is supposedly impossible. Although with the CERT guest /host vulnerability announced last week that might theoretically not be true any more. However VMware deny it affects their products. Either way exploiting this vulnerability simply to activate monitor mode on WiFi would be very difficult even if it was possible and probably a waste of resource.

The VM simply sees the wireless device as another Ethernet port so the VM operating system, in this case Back|track, does not have the level of access required to use monitor mode.

The ways around this are to use a compatible USB wifi device or to install back|track to a USB pen-drive and boot the host computer from that. The second option is perhaps better, whilst the USB WiFi does work I have found it can be a little flaky and only a very select number of USB WiFi devices are supported by the airmon-ng or madwifi drivers.

Before you go to the hassle of installing Back|track to a USB drive or making a bootable DVD (I prefer the pen drive because the OS is then read write though you need to write changes out to a module) you should check that the computer you intend to use it with can boot from usb (some older ones don't) and that its WiFi chip set is compatible with airmon-ng you will be able to find this information from the airmon-ng website (with links to madwifi and so on)

As for your comments about whether or not I know best about the matters I raised .....I'm going to leave that well alone, but you might at least consider the possibility that I might be speaking from first hand experience? Is that more or less likely than me simply wanting to pick on a random stranger on an Internet message board? anyway that's food for thought you believe what you want after all I am not the thought police!
[Galaxy S II Original Android Development] Maggot82:
I went with the whole USB wifi adaptor in the end I found one knocking about and I was lucky I guess and it works fine, thanks for the response though. I have now managed to educate myself with some test networks and I'm a happy bunny, onwards and upwards I love the idea of pen testing I'm only hoping that one day I will be smart enough to do it for a living.
[Galaxy S II Original Android Development] curioct:
If you really want to get into pen testing professionally I would suggest you look at CISSP and CEH certifications, neither are too difficult both will put in you a good position. You might also consider the Cisco Security certification track, not forgetting nokia/checkpoint. Whilst the latter options are not strictly about pen testing they will show you to be a serious IT security professional. You will also need the skills I mentioned previously shell scripting (command line unix/linux), some programming/scripting (c, assembly & java are a good start point, python and perl can also be useful)

A word of caution don't be fooled by the misconception that pulling off some 'wonder hack' will land you a plum job, it wont. Those days are long gone if they ever really existed. If you are going to even consider illegal activity in this field then you should probably read the 'computer misuse act' and the 'data protection act' as a bare minimum in the UK. The computer misuse act for example, the last time I read it at least, was left deliberately open to maximise prosecution potential.

I would also caution you that if you are going to try 'black hat' activity the odds are if you ever get caught you will NEVER land a proper IT security role. Not that I am saying you would or should take this path, just that if you do study the consequences. When I was learning shell accounts in places like Argentina were popular ;).

Finally 'White Hat' Pen testing and computer security is not simply about the finding and patching of vulnerabilities although that, of course, remains a significant part, but it is more about ensuring correct processes, audit trails and providing the organisation you are working for with reporting and process that will protect it from corporate governance laws and PCI / other regulatory audits the latter being a relatively 'dark art' with individual QSA's interpreting the rules in different ways. You might even consider working for a QSA if you cant get straight into a pen testing role.

Some of these topics are covered in the CISSP and CEH certs I mentioned above.

Either way I hope you enjoy it, it gave me a great deal of pleasure and a pretty decent career learning this stuff. No I am not a directly a pen tester, but I do have some of the skill sets and to this day I keep half an eye on it hence being heavily involved on this thread.

Good luck!

p.s. if you still think I am 'full of it' you might perhaps look at the airoscript in back|track no I didn't write it a french (I think? was a while back) guy called daouid did but recently I was pleasantly surprised to see I still have a credit it in for helping him with some of the scripting! or even look at some of the simple tweaks I offered in this thread! not uber hacks but still...
[Galaxy S II Original Android Development] Maggot82:
Hey, I never thought you were full of it, I was just sticking up for myself, I appreciate the advice and now from your last post have my full attention. I would very much like to talk to you more regarding the above if you are willing ?
[Galaxy S II Original Android Development] curioct:
Sure no problem.
[Galaxy S II Original Android Development] ArmorD:
EDIT: Solved. Thanks curioct! And Doom of course!
[Galaxy S II Original Android Development] n_vitek:
Hi guys!

I have found following site: ing.unibs.it/~openfwwf/ where located BCM43xx microcode in ASM language.

link for sourcecode: ing.unibs.it/~openfwwf/firmware/b43_v4.6.tar.gz

I not know a lot of these things, but probably it could help somebody who can and who want to do working monitor mode on SGS2.

So, guys look on that site :)

Best Regards

update: link on last version: ing.unibs.it/~openfwwf/firmware/openfwwf-5.2.tar.gz

also, on that site present tool to compile this source code.

Code not similar to x86 ASM, so it seems like to Broadcom chips ASM.

and open-source driver for broadcom - cs.umd.edu/projects/maranello/#code

Will be great if it possible to adapt for Galaxy S2
[Galaxy S II Original Android Development] Jayman007:
what wifi adapter are you using successfully? I have the usb adapter and I have a few wifi adapters that I use on my laptop with BT4. I am just interested in being able to use monitor mode on my sg2 using the bt4 image. That would be very handy indeed. Injection would be even better.

Have you been successful with this yet using the usb wifi?
[Galaxy S II Original Android Development] curioct:
He's referring to using a vm not the sgs in this instance.

Personally I have tried and failed to compile driver modules for the sgs2 for either the native or usb.

That was under android v2 not had the chance to try with android v4 (different kernel/sources) and unlikely to find the time anytime soon. But it might be possible, I'm pretty sure it wasn't with simply the Samsung sources for v2.
[Galaxy S II Original Android Development] 000zui:
Thanks works like a charm :) I just stuck for 2 secs at the start of installation cause I didn't give the right permissions to the busybox *dumb*

Inviato dal mio GSII @ NeatRom Lite XWLPI / CM10 # Siyah 3.5.2 # Jkay&Mod personali
[Galaxy S II Original Android Development] SmokedDuvel:
Is it possible to run Backtrack on Original Android ROM ?

If is it, I cant install script throught CWM and standard recovery. I have error:

E: Error in /sdcard/bt5_sgs2_shell_scripts_v2.zip

(Status 0).

Installation aborted.
[Galaxy S II Original Android Development] curioct:
Read the thread properly mate the install script doesn't work properly you have to do it manually and yes it should work on virtually any rom but definitely stock ones as long as they're rooted of course
[Galaxy S II Original Android Development] Phk:
Any testing at the SGS3 ?

It should flyyyyyyyyyyyyyy
[Galaxy S II Original Android Development] curioct:
Works fine on sgs3
[Galaxy S II Original Android Development] Phk:
How can I format my external_sd to ntfs or ext* ?

Using S3 and Cm9 or 10
[Galaxy S II Original Android Development] curioct:
Use a partition tool
[Galaxy S II Original Android Development] Phk:
Please quote or post link because i couldn't find it.

Only reference I saw was Franco kernel which doesn't run on CMx roms
[Galaxy S II Original Android Development] curioct:
A partition tool on your pc, Google is your friend
[Galaxy S II Original Android Development] Phk:
heh, i know how to fdisk and mkfs, that's not the issue :)

If I format the whole card to ext4 or ntfs, the sdcard binary needs to be custom :(

Are you saying that if I partition it, it will mount the secondary partition in ext4 automagically? :D

cheers
[Galaxy S II Original Android Development] curioct:
Doesn't really belong in this thread but no if you create a partition on an external card you will still need to mount that partition in Android.

Apps like link2sd will do that for you (at least for ext4 partitions) or you can manually create a boot time script etc (obviously you'd need root but I'm guessing since you posted here you'd know that).

Ntfs will not necessarily work the kernel modules were not compiled for earlier versions of android, though I confess I haven't checked v4 and above, there are mods and roms for ntfs support in ics about and compiling the modules is not impossible I seem to recall doing it for ics stock roms when I was trying to get monitor mode modules for wifi working. But not messed with compiling for v4 and up its possible ntfs support is in built now I guess but you need to look around on that one
[Galaxy S II Original Android Development] anuben:
Edit. Delete
[Galaxy S II Original Android Development] AndroGeeker:
Anyone knows how to configure BT to use wifi network which is connected to my mobile. I connected to a network using a proxy.

For example proxy address is 128.10.100.2 and port is 6588. How can I configure BackTrack to use my wifi?
[Galaxy S II Original Android Development] :
Afaik u can't do that because bt5 don't have proper wifi drivers for our phones
[Galaxy S II Original Android Development] Phk:
I'm still waiting for someone who finds a good usb Wifi dongle that has injection drivers for bt5\kali\ubuntu arm... any1?
[Galaxy S II Original Android Development] :
That's good idea.... maybe someone could try to connect usb wifi adapter via otg to phone and run bt5 on phone, and if bt recognizes wifi adapter maybe we can just install drivers and thats it, or if bt recognizes adapter but not as adapter then maybe there is some app for bt which will mount adapter as adapter... ahaha how much adapter things :)

someone who is good with linux/bt will realy should try to do sonething, or even to port aircrack ng feature to android.... just saying....
[Galaxy S II Original Android Development] curioct:
thanks for your input however you should consider reading the thread properly then/or making use of the search facility before posting this kind of window licking post, you might actually learn something

fyi it has been achieved on one or two devices but is unlikely on most and the usb thing has been attempted on pre jelly bean builds
[Galaxy S II Original Android Development] jakuburban:
It wasn't that easy to launch it as You say. Many things weren't mentioned in Your instructions.

Here's what I had to do to launch backtrack after i downloaded all the necessary files:

-the scripts don't flash, so I had to manually copy all of the files (and change permissions)

-create those directories:

/data/local/bt/root/storage/external_sd

/data/local/bt/root/storage/sdcard

/data/local/bt/root/storage/usbflash

-follow those commands:

su

cd /sdcard/bt

sh installbt.sh

sh startbt

sh bt

After 1h I finally made it all work :)
[Galaxy S II Original Android Development] sanglxagdm:
I launch backtrack but i cant use any command as airmon, reaver... it said command not found.
[Galaxy S II Original Android Development] jakuburban:
Yes, I know it doesn't work. That's the same reason I wanted to have backtrack on my phone.
[Galaxy S II Original Android Development] sanglxagdm:
Can you show me the way to run command ?

Sorry, my english is bad.
[Galaxy S II Original Android Development] Keshukas:
Look https://play.google.com/store/apps/details?id=ru.meefik.linuxdeploy

This program can do for you

I recommending Kali Linux install instead of black track
[Galaxy S II Original Android Development] jakuburban:
Nope, I told You. It doesn't work and I don't know a way to fix that.
[Galaxy S II Original Android Development] anantshri:
inside bt.img there is a file named as ui

in terminal emulator if you follow steps till you type bt and get a root@localhost prompt

at this point you cna go to

cd /root/bin

and here you will see there is a file named ui

inside ui file you can see the text somthing like

vncserver -- geometry abcXdef

here abc=854 and def=480 for X10i simmilarly what ever is your screen resolution you just need to place that in correct place all done

@Doom please provide update script with correct resolution, as i am not sure about exact size of screen.

directly updating ui file once bt command has been fired and img is mounted should do the trick
[Galaxy S II Original Android Development] bentez2003:
bracing myself for the backlash but could someone clue me in on why this awesome thing is awesome?
[Galaxy S II Original Android Development] jastonas:
Is there any editor to change this file easily?

I tried vi but it doesn't seem to work properly. Backspace (as well as other stuff) won't work.
[Galaxy S II Original Android Development] DooMLoRD:
Ok will do! Sgs2 resolution is 800x480... so in the ui file (startvnc too???) we just need to change the number 854 with 800... A sed command should do the trick...

Please wait I will post a small updated file (or command for this)
[Galaxy S II Original Android Development] Omegavirus:
Doesn't seem to work for me.. Everything is fine until i connect with android-vnc-app.. only grey screen with black cross which i can move around with my fingers.. :/ no gui loading..
[Galaxy S II Original Android Development] DooMLoRD:
@jastonas, others

after the startbt command and before executing bt command,

just execute the following command:

(u should be at this shell> # )

busybox sed -i 's/850/800/g' /data/local/bt/root/bin/ui

(the above needs to be done only once)

thats odd.. did u get any errors on screen while executing the commands?

if possible can u post screenshots of output after executing each command?
[Galaxy S II Original Android Development] memo855:
Not workin thanks anyway

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

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

$su

# cd /sdcard/bt

# sh installbt.sh

[ STEP 1 ]

BackTrack CHroot v0.2 for SGS2

This process does NOT damage Android OS!

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

modded for SGS2 by DooMLoRD

Usage: mount [-r] [-w] [-o options] [-t type] device directory

Cleaning up old Chunks . . .

Creating necessary directories

Setting up files

[ STEP 1 COMPLETE ]

BackTrack is now configure!

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

Usage: mount [-r] [-w] [-o options] [-t type] device directory

# startbt

[ STEP 2 ]

mknod: /dev/block/loop254: File exists

losetup: applet not found

mount: mounting /dev/block/loop254 on /data/local/bt failed: 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

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

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

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

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

BackTrack Loader by Anant based on ubuntu loader

[ STEP 2 COMPLETE ]

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

# busybox sed -i 's/850/800/g' /data/local/bt/root/bin/ui

sed: /data/local/bt/root/bin/ui: No such file or directory

#
[Galaxy S II Original Android Development] Omegavirus:
screenshots are attached.. thanks for your help! :)

btw i used better terminal, but terminal emulator leaves me with the same problem..
[Galaxy S II Original Android Development] DooMLoRD:
Please restart ur phone and try again (run the commands only once) and please post output ba k here...

Also it seems u are using a diff version of busybox... can u please post output of the following:

(in the terminal emulator program)

busybox

On ur rom busybox symlinks aren't correctly configured... u see those "Toolbox!"... this means that the mount command is still symlinked to /system/bin/toolbox

U can verify this: (in terminal emulator program)

ls -l `which mount`

Can u check it and verify please?
[Galaxy S II Original Android Development] Omegavirus:
i use infusion rom v1.4 and output of the command is one line: "lrwxrwxrwx 1 app_117 app_117"
[Galaxy S II Original Android Development] DooMLoRD:
the command is :

LS -L `WHICH MOUNT`

Everything in small caps ;)
[Galaxy S II Original Android Development] Omegavirus:
yeah, entered it exactly as you described.. :P

screenshot is attached ;)