yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] ricky2299:
i have mailed
[Android Apps and Games] ricky2299:
this happened to me
[Android Apps and Games] ricky2299:
here u go
[Android Apps and Games] ricky2299:
now i modified to get this and it says monitor mod enabled succesfully but gets stuck in waiting for beacon
[Android Apps and Games] ruleh:
Okay so the logs show no signs of bcmon actually trying to load the modules and firmaware.

However reaver shows some decent output.

Can you check if the folder "/data/data/com.bcmon.bcmon/files/" exists and if there are any files in there?

---------- Post added at 18:40 ---------- Previous post was at 18:11 ----------

Can you test monitor mode by running airodump-ng or simmilar?
[Android Apps and Games] ricky2299:
these r the files
[Android Apps and Games] ricky2299:
how can i run airodump -ng

im sorry im a noob
[Android Apps and Games] vrock94:
Hey , i downloaded rfa and bcmon , but it shows :

firmware model is not detected, install tools version:0; installed fw version:0

Nothing works , settings doesnt open and if i click on status , it crashes
[Android Apps and Games] SOEDI:
That’s because your phone doesn’t have a bcmon compatible wifi chipset. Please read the first post and the last 10 pages of this thread.
[Android Apps and Games] vrock94:
Ohh ok , thanks , but what alternative i use for it ??
[Android Apps and Games] ruleh:
Bigfatwifi might work for you if you have an usb wifi dongle and an otg cable

Again it was my fault....these are the scripts I meant.

monitor activation scripts

#!/system/bin/sh
export PATH=$PATH:/data/data/com.bcmon.bcmon/files/tools
svc wifi disable
rmmod dhd
insmod /system/lib/modules/dhd.ko iface_name=wlan0 firmware_path=/data/data/com.bcmon.bcmon/files/bcm4330_sta.bcmon.bin nvram_path=/system/etc/wifi/nvram_net.txt
LD_LIBRARY_PATH=/data/data/com.bcmon.bcmon/files/libs:$LD_LIBRARY_PATH
export LD_PRELOAD=/data/data/com.bcmon.bcmon/files/libs/libfake_driver.so
enable_bcmon
echo "rfasuccess"
exit

warm up script

#!/system/bin/sh
cd /data/data/com.bcmon.bcmon/files/tools
LD_LIBRARY_PATH=/data/data/com.bcmon.bcmon/files/libs:$LD_LIBRARY_PATH
export LD_PRELOAD=/data/data/com.bcmon.bcmon/files/libs/libfake_driver.so
echo "rfasuccess"

monitor deactivation script

#!/system/bin/sh
rmmod dhd
svc wifi enable
echo "rfasuccess"

try these scripts and tell if it works.

and to run airodump-ng, run the following lines after you activated monitor mode.

LD_LIBRARY_PATH=/data/data/com.bcmon.bcmon/files/libs:$LD_LIBRARY_PATH
export LD_PRELOAD=/data/data/com.bcmon.bcmon/files/libs/libfake_driver.so
airodump-ng wlan0
[Android Apps and Games] vrock94:
Thanks bro , i will let you know if these scripts work , btw , my phone doesnt support otg as far as i know , if theres any way to do it , theb pease let me know
[Android Apps and Games] ruleh:
The scripts where for ricky2299.

Instead for you this is a better alternative :

run

"iwconfig wlan0 mode managed"

in terminal.
[Android Apps and Games] sam619:
i have n7000 with 4.1.2 . bcmon crashes when i enable monitor mode. any solution to enable monitor mode with scripts? please help
[Android Apps and Games] ruleh:
#!/system/bin/sh
export PATH=$PATH:/data/data/com.bcmon.bcmon/files/tools
svc wifi disable
rmmod dhd 2>/dev/null
insmod /system/lib/modules/dhd.ko iface_name=wlan0 firmware_path=/data/data/com.bcmon.bcmon/files/bcm4330_sta.bcmon.bin nvram_path=/system/etc/wifi/nvram_net.txt
LD_LIBRARY_PATH=/data/data/com.bcmon.bcmon/files/libs:$LD_LIBRARY_PATH
export LD_PRELOAD=/data/data/com.bcmon.bcmon/files/libs/libfake_driver.so
enable_bcmon 2>/dev/null
echo "monitor-mode ENABLED"
sh

This one seems to work very well (for me).
[Android Apps and Games] sam619:
warm up and stop script?
[Android Apps and Games] ruleh:
You said enable monitor mode. It enables monitor mode. :)

Oh well this is for terminal anyways.

Go back a few posts, there are all three scripts for RfA.

---------- Post added at 16:07 ---------- Previous post was at 16:05 ----------

This is it.
[Android Apps and Games] vrock94:
I tried it " iwconfig wlan0 mode managed" , it doesnt work , shows not found , is there any path i have to specify ?
[Android Apps and Games] ruleh:
Then you have to install iwconfig first.

Look around on google on how to do that.
[Android Apps and Games] vrock94:
Ok , i will check that , thanks , and does rfa actually work or just sets up an infinitely long brute force attack and gives nothing at the end ?
[Android Apps and Games] ruleh:
For me it works (sometimes).

It really is dependent on the router you are attacking.

---------- Post added at 17:35 ---------- Previous post was at 17:01 ----------

BIGFATWIFI

Independence is near!

Freedom is just a few (thousand) steps away.

Status:

--It works like it should on some tested devices

--It can be fully customised in menuconfig (does it work though ?)

Problems:

--difficulty

--really, recompiling the kernel and then recompiling the module is just simply too hard for many.​

-a guide won't solve that because most kernels are different (hell I didn't even knew about boot.img before)​

--flashing is also a bit annoying​

-especially when you have a zimage but all your phones kernels are boot.img (<--why?)​

-or you flash a bad kernel​

-or when it gets only partially flashed​

--compatability

--kernel versions are a pain​

-different kenel versions have different symbols which prevent module loading.​

-or cause bad behaviour (such as the module not wanting to unload)​

Possible soloutions:

--Take the most change prone symbols and include them in the module as "extern" instead of exported symbols .

-This should basically elimante the compatibilty problems.​

-It will take a considerable amount of time to finish.​

--The kernel recompilation problem can be partially "cured" by setting the module up correctly (omitting cfg80211).

-This only works when cfg80211 is fully working. But then you don't need this module anyways.​

--You name a few

( I asume this one will be hard to read. )
[Android Apps and Games] vrock94:
I read about installing iwconfig , it tells me to create some android .mk file , and frankly , i am n total noob in this , can you tell me how to compile this file ?
[Android Apps and Games] ricky2299:
download wifi TX power apk
[Android Apps and Games] ricky2299:
nothing happened bro . i also screen shotted something else and uploaded maybe it will help
[Android Apps and Games] ricky2299:
what to do
[Android Apps and Games] ricky2299:
this might also be helpful :eek:
[Android Apps and Games] ricky2299:
hey i modified by opening bcmon and tried to enable monitor mod before starting an attack . then i got this output

and i have a doubt can we hack wifi in phones thethered
[Android Apps and Games] ricky2299:
:crying:
[Android Apps and Games] SOEDI:
[MENTION=6324821]ruleh[/MENTION]: it’s amazing how you stay calm and keep on answering even the most stupid questions!

In the meantime I integrated the PixieDust attack. I had to rewrite some parts of RfA, pixiewps and reaver itself, but it looks pretty promising now. It was not easy to get the stuff compiled, so keep that in mind when you meet a "Segmentation fault" sometimes ;)

Details (and release) will follow later...

RfA 1.40 is coming soon, yeah :D
[Android Apps and Games] Heartstoler1991:
Xperia SP

i tested it on Xperia SP ( Tested in Both CM 11 and CM 12 ) .but it didnt work ..: :crying: . i had BCMON.apk , and River for Android .apk files.. i installed both .. when i opened RFA it said failed to enable monitor mode .. my SP is Rooted .. helpp :rolleyes:
[Android Apps and Games] osd_daedalus:
Your phone should have a compatible chipset (but ensure it has!)

bcmon can crash for a whatever reason. What logcat says?

Much likely modules are misplaced. For them either you try a rom that works (dunno which) or attempt to activate it manually as per ruleh's scripts
[Android Apps and Games] vrock94:
Hey ruleh , please help out , i cant install iwconfig , i even tried busy box , it installed ifconfig , but no luck in iwconfig
[Android Apps and Games] terawyvenx:
Help with RFA for Galaxy Note 2

for a very long time now, I've been trying get this to work with my galaxy note 2 and I cant seem to it get it working.

can somebody please guide me with which custom scripts I should use for note 2, cos BCMON doesnt work for it and I've read you can use a

wifi kernel to use a USB wifi dongle for which I dont have the time for.

I have no idea which activation and warm-up script to use cos everytime I seem to encounter a "No such file" or file doesnt exist error.

Really cant seem to figure this out at all

Im running a rooted 4.1.2 note 2

any help will much appreciated

thanx
[Android Apps and Games] gustarballs1983:
True.. But isn't it worth atleast checking and/or asking kismet guys if injection is possible. If so than great. if not, than it might be good thing to ask them to help doing that.

Besides RTL 8187 always allowed packet injection so i see no reason why it would not allow to do so while used as an external driver.. :)

Regards

Gus.T
[Android Apps and Games] killadm:
Hi SOEDI,Sorry for my pool english.

I use MEIZU MX2(bcm4330 chipsets),I have a problem

When I press "test monitor mode" button, it says "Monitor-Mode activation failed.Are you sure you have bcmon installed and your device is compatible"

But,Reaver in bcmon terminal And AircrackGUI 1.2 working pretty good

I start bcmon，enable Monitor-Mode,start bcmon terminal,run iwconfig，output like this：

I have full rw-permission for data/data/com.bcmon.bcmon/files/tools and tried to test Monitor-Mode without starting bcmon first,and restart my phone Many times,but the problem remains.
[Android Apps and Games] fantas21:
Hi. I have an SGS2 with siyah kernel v6.0b5+, android version 4.1.2. When i trid to install Rfa.apk the package installer says "app not installed".

Bcmon and aircrackgui works fine.

Some solution?

thanks.

installation success with lucky patcher as system app.

now I have de same problem that "seraph2013"

exactly the same!!
[Android Apps and Games] fantas21:
installation success with lucky patcher, installing as system app.

now I have de same problem that "seraph2013"

exactly the same!!
[Android Apps and Games] Moon83:
Use 'nasser4life' work around..

_a weirdo but im real tho_
[Android Apps and Games] jakuburban:
Same for me. And nothing happens after this one :(

Android 4.0.4 n7000

Sent from note, a phone like never before :D
[Android Apps and Games] daron9:
HTC ONE X+ International

Hello ,will it work on my Htc one x+ android 4.2.2?It is very cool app ,please answer me ))
[Android Apps and Games] discbreak:
can you?

Can you make it works on xperia L? It's about bcmon is not work. Can anyone help??
[Android Apps and Games] SOEDI:
Hi killadm,

Sorry for the late answer, I was busy the whole week.

I'm going to release a new version of RfA today, maybe it'll help you.

regards,

SOEDI
[Android Apps and Games] SOEDI:
Hi jakuburban,

please use the workaround provided by nasser4life.

Originally Posted by nasser4life:

And if I enabled monitor mode in bcmon before scanning in rfa no router is found. how I got it to work was to scan first and once I found my router i tested for monitor mode. Before starting attack i used home button and then open bcmon and enabled monitor mode ( I had already said yes to install tool on first run), press and held home button and went back to rfa and started attack.

regards,

SOEDI
[Android Apps and Games] SOEDI:
Hi daron9,

It seems like the HTC One X+ has a different wifi chipset, but the only way to prove it is to install bcmon and see if it works.

Good luck!

regards,

SOEDI
[Android Apps and Games] SOEDI:
Hi discbreak,

Sadly, if bcmon says your phone is not supported, it's a thing I can't do anything about.

regards,

SOEDI
[Android Apps and Games] SOEDI:
Update

Updated to v 1.06

Changes:

Some Bug fixes
[Android Apps and Games] jakuburban:
Nah, didn't work also.

It gave some failure errors (I wasn't that fast to take a screenshot) and left me a black screen only and not working wifi adapter :(
[Android Apps and Games] SOEDI:
Are you able to enable monitor-mode over bcmon and run wash via terminal?

regards,

SOEDI
[Android Apps and Games] jakuburban:
When I'm pressing "enable monitor mode" the app freezes for about 8 seconds (with highlighted button) and after that I am not able to search for any network anymore (only phone reboot helps).

And what do You mean with "wash"?
[Android Apps and Games] BauerIvan:
He means the wash comment --> wash -i mon0 -C
[Android Apps and Games] SOEDI:
After the app "defreezes", what happens next?
[Android Apps and Games] jakuburban:
Doesn't work. (busybox installed)

Nothing. The app acts as normal, but the wifi "driver" gets damaged, so I have to reboot the phone to make it work again.
[Android Apps and Games] SOEDI:
Please install the normal terminal emulator app from jackpal.

Does bcmon show you the screen where you can disable monitor-mode?
[Android Apps and Games] zutyenka:
What should I do when I get this message? (This thread has a dedicated Q&A section, I know. But there I don't get answer :( Thanks!)
[Android Apps and Games] SOEDI:
You've got root?
[Android Apps and Games] ruleh:
Here we go again

Okay so I'm back....l

Download iwconfig from here and copy it to /system/xbin/ (or anywhere else).

That's it.

Look at this in case you do want to use usb wifi.

Specifically look at drivers/zzbigfatmod/

There are also scripts included for RfA use.

Other than that there is no way.

I'll be looking forward to it. :)
[Android Apps and Games] zutyenka:
yes (Huawei G620S, 4.4.4, Kingroot)
[Android Apps and Games] ruleh:
try

chmod 766 /data/data/com.bcmon.bcmon/files/tools/reaver

Or use another method to set execute permission on the reaver binary.
[Android Apps and Games] zutyenka:
Thanks, it's working! :thumbup:

One more question: (with the default settings) when I start the attack, there is a line

Why?
[Android Apps and Games] ruleh:
I think it means that the device is not on or not connected at all.

try

ifconfig wlan0 up

also run

iwconfig

to make sure that wlan0 actually exists
[Android Apps and Games] zutyenka:
:thumbup: :thumbup: :thumbup:

when the attack start, the phone's wifi always turned off. it is right? :eek:
[Android Apps and Games] ruleh:
It is on but it isn't managed through android anymore (it will tell you it is off).

However we need to see if you actually have an interface called wlan0 and turn it on if it isn't yet.
[Android Apps and Games] zutyenka:
I don't know (sorry :(), you can see the result on the attached picture.

Q2: on my other phone (Sony Ericsson Live with Walkman) I also tried this app, and the message while attack:

Is it good?
[Android Apps and Games] nvo2411:
[MENTION=6324821]ruleh[/MENTION]. You are humbly genius. Keep up the good work
[Android Apps and Games] ruleh:
waiting for beacon means that monitor mode didn't work.

Also your iwconfig seems a bit suspicious.

run this script

#!/system/bin/sh
export PATH=$PATH:/data/data/com.bcmon.bcmon/files/tools
svc wifi disable
rmmod dhd
insmod /system/lib/modules/dhd.ko iface_name=wlan0 firmware_path=/data/data/com.bcmon.bcmon/files/bcm4330_sta.bcmon.bin nvram_path=/system/etc/wifi/nvram_net.txt
LD_LIBRARY_PATH=/data/data/com.bcmon.bcmon/files/libs:$LD_LIBRARY_PATH
export LD_PRELOAD=/data/data/com.bcmon.bcmon/files/libs/libfake_driver.so
enable_bcmon
iwconfig
ifconfig wlan0 up
iwconfig
exit

and screenshot the output of it.

It should enable monitor mode as well as show a before and after case of "ifconfig wlan0 up"
[Android Apps and Games] zutyenka:
Sony Ericsson output:

Huawei output:
[Android Apps and Games] ruleh:
my bad..

Turn on wifi and run

lsmod
[Android Apps and Games] zutyenka:
so, in this order?
[Android Apps and Games] ruleh:
more like:

run lsmod

screenshot

post here

:)
[Android Apps and Games] zutyenka:
oh, sorry :D

SE:

Huawei:
[Android Apps and Games] ruleh:
Seems like there is no bcmon support for your device.

BUT I saw something rather interesting.

please install iwconfig on your SE

then run

iwconfig wlan0 mode managed

on both devices, again show me the output.

It looks to me like your SE has a complete network stack (which make using monitor mode much easier)
[Android Apps and Games] lionsmatara:
Im noob... but still try this.. :rolleyes:
[Android Apps and Games] zutyenka:
SE:

H:

I try to install iwconfig with this method:

http://goo.gl/c129oD :(
[Android Apps and Games] ruleh:
My bad again....(what is wrong with me?)

This is what you should try.

iwconfig wlan0 mode monitor
[Android Apps and Games] zutyenka:
(no problem! :))

SE:

H: I can't remount /system ( :eek: ), so I can't copy iwconfig file to /system/xbin
[Android Apps and Games] SOEDI:
Are you using Terminal Emulator?

Type:

su

<press enter and then>

iwconfig wlan0 mode monitor
[Android Apps and Games] ruleh:
to remount try

mount -o remount,rw /system

on your SE

run the following lines one by one

ifconfig wlan0 down
iwconfig wlan0 mode monitor
ifconfig wlan0 up

It seems good so far.
[Android Apps and Games] zutyenka:
SE:

H:

(Total Commander also don't work to remount :what: )
[Android Apps and Games] ruleh:
It seems like your SE has working monitor mode

use the following three scripts in RfA to make use of it.

monitor activation:

#!/system/bin/sh
ifconfig wlan0 down
iwconfig wlan0 mode monitor
ifconfig wlan0 up
echo "rfasuccess"
exit

Warm-up

#!/system/bin/sh
cd /data/data/com.bcmon.bcmon/files/tools
LD_LIBRARY_PATH=/data/data/com.bcmon.bcmon/files/libs:$LD_LIBRARY_PATH

Deactivation

#!/system/bin/sh
ifconfig wlan0 down
iwconfig wlan0 mode managed
ifconfig wlan0 up
svc disable
svc enable
echo "rfasuccess"
exit

Also you need to install bcmon on your device (and make sure that /data/data/com.bcmon.bcmon/files/ isn't empty)

As for yor H, connect to to your pc and enable adb.

Then run

adb remount
adb shell

from your pc.

Then you can try the same things again from your pc terminal (or cmd prompt).
[Android Apps and Games] SOEDI:
[MENTION=6324821]ruleh[/MENTION]: Look at his SE screenshot. Unix tells us: "No news is good news".

I read some time ago about possible monitor mode on some 2011 Sony devices. He should try to run RfA with those commands as custom script and the wifi-tool-set from bcmon.

Just copy the bcmon data foldet and use the warmupscript to cd to it.

EDIT: Ha, too late this time, you had the same idea :D

bcmon won’t install the tools when the device is not compatible, can you please unpack the files folde from the apk and send it him?
[Android Apps and Games] ruleh:
I have also seen a 2013 device which had monitor mode working.

However I can't remember what device it was. (I even wrote it down somewhere but of course I don't know where...)

Those lucky ones :)

Anywhere here is the content of the bcmon.apk

copy it to /data/data/com.bcmon.bcmon/files/

if that directory does not exist yet, create it with

mkdir /data/data/com.bcmon.bcmon/files/
[Android Apps and Games] zutyenka:
at the moment I have some todos, but I will try these scripts when I have enough time, and I will write down the results.

thanks a lot! :thumbup: :)
[Android Apps and Games] terawyvenx:
Sorry for being a pain here

I wanna start from scratch here. Can you explain to me the necessary steps needed to put my Note 2 into monitor mode in RFA.

Made too much of a mess here with things too many random custom scripts and having a hard time keeping up with solutions that

works for other android phones that I try with the note 2 but turns out unsuccessful.

Can you tell me what I need and how I need to do this. I'm really gonna need some proper guidance with this

I'd really appreciate the help

Thanx
[Android Apps and Games] ruleh:
There are 2 things you can do.

Though only the second one will actually work.

The first thing is to run

lsmod

while wifi is on.

If you see something like "dhd" this method won't work.

if you don't, then run these commands one by one

ifconfig wlan0 down
iwconfig wlan0 mode monitor
ifconfig wlan0 up

in terminal.

You might need to install iwconfig for that. (there is a link to decent guide a few posts back).

If running those commands gives you no errors, use the 3 scripts from my last (or 2nd to last?) post by saving them into a file and loading them in the RfA settings menu.

The other option is to use an external wifi card and an usb otg cable for which a half-way decent guide can be found here

The whole project is here.

This will get a major overhaul some time in the next few weeks.

So if it doesn't work yet, look back later. (and of course tell me the problems so I can fix them.)

Good luck.

Btw: You are not the pain, the one who made your wifi chip is.
[Android Apps and Games] vrock94:
Hey ruleh , i copied iwconfig to xbin , but when i run it in terminal , it shows permission denied , and if i set permissions to executable , in all 3 , it shows no such file or directory
[Android Apps and Games] ruleh:
How did you set permission?

Did you try

chmod 755 /system/xbin/iwconfig

Make sure that you do this as root.
[Android Apps and Games] vrock94:
I tried the above command , it shows read only file system , the i tried mounting it as writable , the commands in previous post doesnot work , so i tried with root explorer and total commander , in both it shows successfully mounted as writable , but in terminal it still shows read only file system , unable to chmod
[Android Apps and Games] terawyvenx:
Thanks for the help ruleh

It seems I'm having the same problem, when I run 1st line of iwconfig code, it also shows permission denied. Tried setting permissions in root explorer and chmod code, it's still doing the same thing? Anyway around this maybe?
[Android Apps and Games] ruleh:
If you have twrp, you can open a terminal session from recovery and run the chmod comand form there.

Make sure that /system is mounted in the mount menu.

If you have cwm, mount /system first and then run

adb remount /system
adb shell
chmod 755 /system/xbin/iwconfig

from a computer with adb installed.
[Android Apps and Games] zutyenka:
I tried the modified scrpits, but on the SE still

message. :(
[Android Apps and Games] ruleh:
You could be too far away from your router.

Sadly I also get the same message eventhough I am right infront of it.

As of right now I know no solution.
[Android Apps and Games] vrock94:
Ok , thanks for all the help ruleh , i will surely try that after few days