yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Nexus] bhakimi:
Thank you for your prompt reply. Lsusb in terminal emulator returns the following

app_96@android:/ $ export PATH=/data/local/bin:$PATH

app_96@android:/ $ su

app_96@android:/ # lsusb

Bus 001 Device 001: ID 1d6b:0002

Bus 002 Device 001: ID 1d6b:0002

Bus 001 Device 004: ID 04e8:6999

app_96@android:/ #

When you say backtrack is mounted properly what do you mean by that? In terminal I CD to /sdcard/bt5 and do sh bt to start it and then vnc to bt. Also the bind of the USB dev I always do before I run bt. Wasn't sure if that was needed every time or not. Hope this all makes sence..
[Samsung Galaxy Nexus] bhakimi:
did that information help? i really like to get this working but no idea what im doing wrong =(

im a linux sys admin so this isnt hard for me but its simply not working
[Samsung Galaxy Nexus] anton2009:
Can someone please explain to me what this is? I read through all the comments, googled it, and read the wiki, yet I still have no clue as to what this does... Is it that you can have free data anywhere you want? I'm so confused.
[Samsung Galaxy Nexus] auradefect:
It's for cracking WEP keys on wifi networks.
[Samsung Galaxy Nexus] anton2009:
So the point of this is to hack into someone's wifi network (if you are near one) and use their signal for data? Isn't that.... not good?
[Samsung Galaxy Nexus] joelugog:
Depends how u use it ;-)
[Samsung Galaxy Nexus] bhakimi:
i need to use it to easly test the security of our customer wifi networks.. i hate to carry a laptop with me when i can easly do it on my phone.. still not sure why the device does not show up.. can anyone help me to my questions i posted earlier?
[Samsung Galaxy Nexus] michaelmotes:
bhakimi, the page I linked to install bt5 says to create a directory called bt not bt5, that is important as the startbt script assumes the image is in /sdcard/bt/

change you directory to bt not bt5 and be sure to start backtrack and the ui before binding the usb. perform the below commands:

su

cd /sdcard/bt

sh installbt.sh

startbt

bt

then in the bt shell type ui

open your vnc viewer and log into bt, sounds like you have gotten this far, just be sure to change your image directory to /sdcard/bt/, then press the home key on your phone and go back to you terminal app and open another window and execute the command to bind usb there. Then lsusb should work in bt.

Your probable errors:

/sdcard/bt/ not /sdcard/bt5/

run the usb mkdir and mount command after starting and vnc'ing into bt, not before, by using home key and another terminal window.
[Samsung Galaxy Nexus] djxtabay:
I have my img named bt.img in sdcard/bt folder.

Here's my script (named bootbt.sh)

I go to terminal and type:

cd sdcard/bt

sh bootbt.sh

Once I'm in backtrack, I plug my RTL8187. I verify with iwconfig that it is detected and that's it I can run my modified automated wifi scan script and it works on WEP & WPA2 too.

As for WPA2, I send the file to my desktop to aircrack from there and not from my phone.

---------------------------------

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/bt

export bin=/system/bin

export mnt=/data/local/mnt

mkdir -p $mnt

export stor=$mnt/root/storage

export sdcard=$stor/sdcard

mkdir -p $mnt/dev/bus/usb

mount -o bind /dev/bus/usb /$mnt/dev/bus/usb

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

export TERM=linux

export HOME=/root

export USER=root

if [ -b /dev/loop2 ]; then

echo "Loop device exists"

else

busybox mknod /dev/loop2 b 7 0

fi

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

echo "Mounting storage devices in $stor..."

mkdir -p $sdcard

busybox mount --bind /mnt/sdcard $sdcard

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 Creating quit script

echo '#!/bin/bash

stopvnc

echo Shutting down in 5 seconds...

sleep 5

kill -6 $(ps | grep bash | head -n1 | awk '\''{print $1}'\'')' > $mnt/usr/bin/quit

chmod 755 $mnt/usr/bin/quit

echo Configuring nameservers

echo '

nameserver 8.8.8.8

nameserver 8.8.4.4

nameserver 2001:4860:4860::8888

nameserver 2001:4860:4860::8844

' > $mnt/etc/resolv.conf

echo "127.0.0.1 localhost bt" > $mnt/etc/hosts

echo "-=BackTrack is now configured=- VNC servers can be accessed from the IP:"

ifconfig wlan0 2> /dev/null

if [ ! $? = 0 ]; then

ifconfig eth1 2> /dev/null

fi

if [ ! $? = 0 ]; then

echo "Sorry, no Wireless interface detected"

fi

echo "Type 'quit' to exit -=Backtrack=- CHRoot"

echo " "

busybox chroot $mnt /bin/bash

echo "Shutting down -=Backtrack=- for Galaxy Nexus"

umount $sdcard

umount $mnt/dev/pts

um_result=$?

umount $mnt/proc

um_result=${um_result}$?

umount $mnt/sys

um_result=${um_result}$?

umount $mnt

um_result=${um_result}$?

if [ ! "$um_result" = "0000" ]; then

echo $um_result

echo "Failed to unmount some resources, did you exit with 'quit'?"

fi

---------------------------------
[Samsung Galaxy Nexus] hamburgerman:
please do this
[Samsung Galaxy Nexus] devil_pombo:
Hi

i have a question, whats the problem on using the wireless card on samsung galaxy nexus!?

its a drivers problem?

i read the post and i cant figure out what is the problem using the wireless card from nthe nexus device...

Regards
[Samsung Galaxy Nexus] michaelmotes:
Yes, it is a driver problem. The wifi device on the gnex doesn't support promiscuous mode and can't inject packets. To do so would require a complete rewrite of the device drivers, if the wifi card is even capable of doing so, as certain registers might be permanently stuck or pulled up on the device to prevent that functionality on a hardware level. Anyway, no one is going to write a driver for a proprietary card, as that would take massive effort to reverse engineer. So, we use an external card that does support the features we want.

I would expect it is cheaper to build a wifi card without these features and probably consumes less power, so that is why most cell phones don't support it.
[Samsung Galaxy Nexus] filmaker:
Darn, I just sold my Galaxy Nexus a few weeks ago. Too bad I can't do this on my Evo LTE :(
[Samsung Galaxy Nexus] colonelcack:
Can you make a backup of this working properly and share the backup? I'd like to have the ability to do this when needed but it wouldn't be often. Would nice to just have a backup of this working I could switch to when needed and then switch back.
[Samsung Galaxy Nexus] earl00:
lsusb is also coming up blank after binding command. Same issue after rebooting and reflashing different rom Any times. What is causing this not to lsusb in backtrack. Working fine outside of chroot - devices are listed.
[Samsung Galaxy Nexus] michaelmotes:
You are binding outside of chroot, in a second terminal window, besides the one in which the chroot is running?
[Samsung Galaxy Nexus] earl00:
Yes, outside chroot binding in second terminal window then lsusb in backtrack blank. Lsusb works outside chroot.
[Samsung Galaxy Nexus] michaelmotes:
Well, make sure /data/local/bt/dev/bus/usb exist.

Then, try "ls -al /dev/bus/usb" and "ls -al /data/local/bt/dev/bus/usb" from a terminal outside chroot. Are they the same?
[Samsung Galaxy Nexus] solo13:
Boss . I don't believe that it is useful at this moment to use your handset with back track.

What is the use of running reaver for 10 hours on your handset ? Unless you are not using it .

It will a revolutionary to use it on a handset but not at this moment . Still BT needs to be build for handsets.
[Samsung Galaxy Nexus] michaelmotes:
Once you start a console app in backtrack in the chroot, it continues to run even if you're not in the vnc window.
[Samsung Galaxy Nexus] truon112:
hey man, I keep getting the same result when I type this in and hit enter, it says

"dpkg --install libssl-dev_0.9.8k-7ubuntu8.6_armel.deb"

"dpkg: warning: 'ldconfig' not found on PATH"

"dpkg warning: 'start=stop-daemon' not found on PATH"

"dpkg: 2 expected programs(s) not found on PATH"

"NB: root's PATH should usually contain /usr/local/sbin. /usr/sbin and /sbin"

I tried looking for other tutorials but I always get stuck at that step. I would appreciate it if you could help me out. Thanks in advance!
[Samsung Galaxy Nexus] michaelmotes:
truon112,

You have:

Not used the BackTrack installation linked to in this post, or

Not rooted your phone, or

Not used a gnex.

I found this article about your problem. It suggests something is wrong with your super user binary. It recommends:

apt-get upgrade sudo

and after the "Defaults env_reset" line you must add :

Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
[Samsung Galaxy Nexus] JPMoneyStock:
Aircrack Errors

First here something about usr/bin

can I install aircrack on the Acer a500 or/and the LG Optimistic 2x 2.34? I have backtrack 5 installed with backtrack installer 2.0 APK which gets me the image from scourgeforce. I tried the commands and get an error

after entering this:

dpkg --install libssl-dev_0.9.8k-7ubuntu8.6_armel.deb

dpkg: warning: ldconfig' not found on PATH

dpkg: warning: start-stop-daemon' not found on PATH

dpkg: warning: 2 expected program(s) not found on PATH

NB: should usually contain /usr/local/sbin, /usr/sbin and /sbin.

I tried this one anyways to see what would happen:

apt-get install source-aircrack-ng

it reads and installs one pkg

source-aircrack-ng

0 upgraded 1 newly installed 0 to remove and 28 not upgraded

need to get 0B/3214 KB of archives

dpkg: warning: ldconfig' not found on PATH

dpkg: warning: start-stop-daemon' not found on PATH

dpkg: warning: 2 expected program(s) not found on PATH

NB: should usually contain /usr/local/sbin, /usr/sbin and /sbin.

Total disk space freed by localepurge: 0kib

E: Sub process /usr/sbin/dpkg returned error code (2)

Are the programs on backtrack 5 under applications- backtrack the same as aircrack? There is a lot of programs there. As you already know, I'm a newbie at this but I have knowledge with rooting, iPhone jailbreaking hacks, some computer knowledge and am looking to learn some difficult stuff. Is there a way to get aircrack working on Acer a500 an LG optimistic 2x? Can aircrack be run on a USB storage, would it be better if I could? Also, with the LG you can unmount the internal SD card, can I use a 32 gb SD card and use that as my phone SD and run aircrack on there. I used to use a flash drive on windows vista or XP to increase my ram by using 3gb on flashdrive for ram, can that be done on android tablet or phone? I am thinking about securing my network and if I get the hang of this, I might get into security or/and programming so if there's any sites/vids you that can help me learn please add that to the help with aircrack. Thanks for all the work.
[Samsung Galaxy Nexus] JPMoneyStock:
this fixed the errors on my tablet

export PATH=/sbin:/usr/sbin:$PATH

now I just need someone to add Acer a500 and LG optimistic 2x drivers
[Samsung Galaxy Nexus] 09sparky:
AWUS036H Not working!

Hello,

So I believe I have everything installed with the r42 Kernel by farcno and BT5 installed. My last step (of course) is the one that is troubling. I am ultimately trying to use Airodump-ng on my Nexus7. when I perform an "lsusb" I see "Bus 002 Device 002: ID 0bda:8187 Realtek Semiconductor Corp. RTL8187 Wireless Adapter" However, when I type "iwconfig" I only see the internal wireless card wlan0. I for kicks tried "airmon-ng" on the wlan0 card and then started airodump-ng but it starts, but of course no data populates.

Can anybody please assist me with this final step?

Thanks,

Sparky

Specs:

Model Number: Nexus 7

Android Version: 4.2.1

Kernel Version: 3.1.10-franco.kernel

Build number JOP40D
[Samsung Galaxy Nexus] Lex_Michdeandroid:
Re: Aircrack-ng on the Galaxy Nexus with AWUS036H wifi usb adapter

I don't have this stuff on my Gnex, but I use it all the time pentesting networks. Did you:

'airmon-ng start wlan0' ?

If so, in stead of using interface wlan0, you should use the mon0 you created by running above command.

So you get:

'airodump-ng mon0' to get the mac for desired AP, and then you use:

'reaver -i mon0 -b [mac] -vv' or whatever you're trying to do. But you should use mon0 for the stuff that needs monitor mode.

Verstuurd vanaf een Galaxy Nexus met CM10
[Samsung Galaxy Nexus] 09sparky:
Sorry, I should have clarified. Yes, I am very familiar with the airodump-ng processes and its working. I did try running "airodump-ng mon0" (as su) and the program starts, but nothing gets displayed (as far as clients/APs). Additionally, I don't see any lights on the Alfa wireless card either, but I haven't used it in awhile, so I don't exactly recall when/if its light up.

Thanks,
[Samsung Galaxy Nexus] michaelmotes:
My own opion is that you don't have the proper drivers installed. If you see the alfa wfi card when you lsusb, but only have one wlan listed, then the device wasn't initialized. Be sure to use the kernel from the first post.
[Samsung Galaxy Nexus] 09sparky:
I was thinking that as well, but I actually used Franco.Kernel Updater. It made the process of updating the kernel extremely easy/organized. It auto found the latest kernel and auto-updated it (r42). Do you think that this could still be the wrong kernel?

Which Kernel Version/File should I try to manually install? The Kernel-xp site has allot of different releases
[Samsung Galaxy Nexus] 09sparky:
Anybody out there willing to offer any assistance?

Am I not able to install a AWUS036H installed driver kernel because I have Andriod Version 4.2.1? or is something else wrong?

Any assistance would be appreciated,

Thanks
[Samsung Galaxy Nexus] fernandoavc:
Re: Aircrack-ng on the Galaxy Nexus with AWUS036H wifi usb adapter

This thread seens to be almost dead but something just came up my mind.... With the release of the Canonical Ubuntu will our phone finally "air crack" enabled????
[Samsung Galaxy Nexus] michaelmotes:
Man, this phone is already aircrack enabled, just takes some work.

Yes, auto update with franco.updater is not going to work. The kernel with the proper drivers is a modded franco kernel that contains the drivers needed for the usb wifi. Franco never compiled such a kernel. I don't know if kernel-xp has an kernel with the rtl8187 drivers for JB 4.2.1. I know if you download the zip file attached to the first post, you can flash it with clockwork mod onto a JB 4.1 system. I looked over kernel-xp and looks like only JB 4.1 kernels, so you will need 4.1 to run aircrack.

***Update: added kernel for JB 4.2.1 to first post
[Samsung Galaxy Nexus] fernandoavc:
Re: Aircrack-ng on the Galaxy Nexus with AWUS036H wifi usb adapter

When you say some work you mean the external USB dispositive?
[Samsung Galaxy Nexus] michaelmotes:
Don't know what dispositive means, looked it up and it was an adjective, meaning relating to or bringing about the settlement of an issue or the disposition of property. Seems misused, unless you meant your statement was a dispositive one.

Needing the external wifi is a little more than work, it is capital, but still most computers wifi cards and wifi routers don't allow the use of monitoring mode, just like the one on the galaxy nexus doesn't.
[Samsung Galaxy Nexus] fernandoavc:
Re: Aircrack-ng on the Galaxy Nexus with AWUS036H wifi usb adapter

Sorry bro you right I was meaning adapter... I don't like the idea of need another WiFi adapter to be connected to the cell phone and probably need extra power supply... I wish it works just like the old N900 ...

Sent from my Galaxy Nexus from Brazil
[Samsung Galaxy Nexus] Cjen1987:
So how would you go about this on the galaxy s3 l710.

I have the alfa card and pcap app picks it up. I have ubuntu 12.04 and aircrack.
[Samsung Galaxy Nexus] michaelmotes:
Read the whole thread, it describes the whole process.

Get rtl8187 driver source, integrate into kernel source as built-in module, recompile kernel, load kernel onto phone. That's the hardest part, fraught with many (or at least a few) config and make hardships.
[Samsung Galaxy Nexus] Cjen1987:
I have the drivers but I don't even know where to start with the kernel besides

But I don't know where to find it.
[Samsung Galaxy Nexus] Cjen1987:
Heres the kernel im gonna use: http://www.mediafire.com/?exe16ltbqh0eyca

Help?
[Samsung Galaxy Nexus] michaelmotes:
The kernel you linked is version 3.4, on your phone is 3.0.62, so they might not be compatible. I think this is what you need: https://github.com/sgs3/SPH-L710_Kernel

Or you can get it straight from samsung:

http://opensource.samsung.com/index.jsp;jsessionid=B24F8EC91AD1C4F0C7E65AE172805952

If the link doesn't work, just search SPH-L710.
[Samsung Galaxy Nexus] Cjen1987:
http://www.mediafire.com/?yk72qbh062tq588

Pretty much need 3.0.68?

So how would I do this?

Can I just unzip and add

Rtl8187.ko

Mac80211.ko

Eeprom_93cx.ko

Into the modules directory and rezip and update in recovery?
[Samsung Galaxy Nexus] michaelmotes:
I have never done it. I believe it would be something like that. Just find out how the built-in modules are added to the build and add compat-wireless modules in the same manner.

I know it is not including the compiled ko modules , you need the source used to compile the ko files and therer will be some make file somewhere that you edit to include those kernel modules into the kernel, and then they will be directly compiled into the kernel. It might take some research, you might start here: Customizing a kernel or a few pages back I noticed info about selecting device drivers for the kernel (which is what you need to do) under configuring and building.

Will you let us know what you find?
[Samsung Galaxy Nexus] Cjen1987:
Thanks for the information. I'm going to check into it tomorrow.
[Samsung Galaxy Nexus] michaelmotes:
Looked a little closer at your link and I think it is for the MR1 type for your device, looking at the screen shoot you showed earlier, I believe your device type is LJ7. Use the samsung link to get the kernel source, search SPH-L710 and download the LJ7 package.

EDIT

Never mind the other version of the phone was called MB1 not MR1, still I would use kernel source from samsung, but I don't from where you're getting those mediafire links.
[Samsung Galaxy Nexus] Cjen1987:
If I run lsusb On the android without Linux running.

I copied the ko files over to module.

0002 = is the ota adapter

8187 = alfa card

u0_a72@android:/ $ lsusb

Bus 001 Device 001: ID 1d6b:0002

Bus 001 Device 002: ID 0bda:8187

u0_a72@android:/ $

Well I upgraded my rom to the stable version of liquid.

The mediafire link is a kernel I want to change to for a aosp.

Still no usb devices reading in ubuntu or backtrack.

Here's a screen shot of the update:

So a thought was can I was able to mount the android usb to Linux and install the drivers on Linux.

But as of right now I'm stuck. I read a little into those links and was looking thru my android device. I found a bcmdhd.ko and wonder if that's related to my wife card in my device.

If I can get that to work without a external usb. I'd be a happy camper.

By the way the location was in /system/libs/modules/

The same location I added the alfa ko files.
[Samsung Galaxy Nexus] michaelmotes:
New kernel for JB 4.2.2

--Added modified franco.Kernl r370 with RTL8187 drivers built-in (see main post).
[Samsung Galaxy Nexus] fernandoavc:
That means that I can have it working only flashing the Franco kernel?

Sent from my Galaxy Nexus from Brazil
[Samsung Galaxy Nexus] michaelmotes:
I will only be a providing franco.Kernel with RTL8187 drivers built-in. That is what I use. You can build them into any kernel, by recompiling.
[Samsung Galaxy Nexus] GT-I9250M:
Cjen1987, what font are you using? i like those serifs
[Samsung Galaxy Nexus] michaelmotes:
Aircrack patches for RTL8187 drivers implemented

--Added kernel with patches for Fragementation attack and Negative one channel error (see main post)
[Samsung Galaxy Nexus] JPBeard21:
I see a lot of posts about compiling kernels with RTL8187 support, but has anyone saw the working monitor mode modules for the BCM4329 and BCM4330 at www.bcmon.blogspot.nl? These modules can be compiled and built into a kernel using our built-in hardware rather than OTG and adapters. I've only compiled one ROM so far or I would attempt this myself. I still may eventually if no one who has experience with this is interested.
[Samsung Galaxy Nexus] fernandoavc:
[POST REMOVED]

Forget I've just messed up... I though I was on another thread that I follow for N7 custom kernel...

Sent from my Nexus7 Android
[Samsung Galaxy Nexus] michaelmotes:
The reason I haven't tried this, as bcmon has been around for while, is that you can't use a wifi interface in managed and monitor mode at the same time. So, you would have to add additional steps to switch the wifi interface back to managed when you were done hacking and you wouldn't be able to hack and use wifi at the same time. Also, the built in wifi is much less powerful and so see's fewer APs. Given these difficulties that can't be surmounted, I decided it wasn't worth going through the difficulty of integrating bcmon into the kernel, as I tried once but got compile errors because it doesn't support the linaro toolchain, which compile kernels with greater optimizations and thus that run faster than those compiled with the standard arm-eabi toolchain. So, i used the stndard toolchain and it compiled but didn't work, and I came to discover you also need to change the firmware file elsewhere in the kernel source tree, not just the driver. I quit there. I may look into it though as it would be nice to use the built in wifi, even if you do need to tear it down and pull it up every time.
[Samsung Galaxy Nexus] JPBeard21:
My interest in this is because I do not have a USB adapter with RTL8187 ATM. I was aware of needing to switch modes, heck I'd be okay flashing a kernel before and after. If I knew more about compiling, I would have done it, if it works like they say it does. Obviously you made good progress and are much more capable than I am. This is the first I've heard of anyone even trying on the GNex, so many thanks for that :). I've never used aircrack or really have the need, other than to mess with friends/family ;)

---------- Post added at 01:39 PM ---------- Previous post was at 01:09 PM ----------

Here is another thread and a post that may be relevant to help you further if you decide to take another look.

http://xdaforums.com/showthread.php?p=31913499

And here is a link to an error others have had while trying. I don't know enough to troubleshoot this error but may it be incompatible with different kernel versions?

https://code.google.com/p/bcmon/issues/detail?id=4