[Android Apps and Games] ruleh:
TL;DR : Some things simply don't work

So this will be a long one, explaining monitor mode and custom scripts

Regarding monitor mode:

The most common way to activate monitor mode is

airmon-ng start wlan0

Sadly, android hasn't got airmon-ng so we won't use it (but you can use it through chroot).

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

A more android friendly way is through the use of iwconfig (which is easy to install)

It would be a simple line like this

iwconfig wlan0 mode monitor

you can run

iwconfig

again to check if it worked; it should show "mode: monitor" under wlan0.

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

Another way of getting monitor mode is through iw (need to install).

This is helpful for when your wifi interface doesn't support iwconfig

this would be like this

iw dev wlan0 set monitor none

To check if your device supports monitor mode using iw, run

iw list

and look for "supported interface modes:".

If monitor is listed there, it works. Otherwise, it doesn't.

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

The last method (that I know of) is the bcmon method which uses a modified firmware.

THIS WILL NOT WORK ON ANY DEVICE AFTER EARLY 2012!!!!!!

I posted the scripts for this one a few times now so I won't do it again.

Also there are not many phones that support bcmon anymore.

If you want to know if it works or not, download the bcmon apk and run it. If it fails, your chip isn't supported.

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

So how are those monitor activation methods related to RfA?

CUSTOM SCRIPTS!

It seems that many people don't read this (even though it is on the first page).

Basically,

if your phone has monitor mode

, you can use scripts to activate it

instead

of doing it manually.

This is because RfA only uses monitor mode while attacking, not while scanning.

The scripts should do 3 things

--activate monitor mode (the way shown above)

--cd to reaver directory and load libraries

--deactivate monitor mode

So a decent monitor activation script for non bcmon devices looks like this

#!/system/bin/sh
iwconfig wlan0 mode monitor
exit

or like this

#!/system/bin/sh
iw dev wlan0 set monitor none
exit

Did you notice the line "iwconfig wlan0 mode monitor" ?

It is the same way we usually activate monitor mode but this time inside a script.

We could also use "airmon-ng start wlan0" there but our phones don't have airmon-ng.

The deactivation scripts should do the exact opposite of he activation scripts.

I leave that one up to you.

but the most important things is:

IF YOUR PHONE DOESN'T SUPPORT MONITOR MODE, CUSTOM SCRIPTS WON'T HELP IT.

There is also a (tested) method of using an external wifi card, however it requires kernel recompilation and isn't easy to understand.

[Another potential method using external wifi cards is through pcap (an app on the playstore), however I did not test it so I don't know]

I hope this cleared up a few things.

---------- Post added at 11:25 ---------- Previous post was at 11:21 ----------

Make sure that you are root at all times and that the scripts have 755 permissions.

You can do this by running:

chmod 755 /path/to/scripts

However I couldn't open the link so I don't know exactly what you used in your scripts.

Please make sure that the links are valid.