transformerwang / wifijammer

Automatically exported from code.google.com/p/wifijammer
0 stars 0 forks source link

Remove monitoring device #2

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
You say we should manualy remove monitor interface using airmon-ng stop, but 
this can be done automatically in bash using sigint trap which reacts on 
ctrl+c. It would be really cool.

Here is how to do it:

Right under this line:
        WIFI="$WIFI02"

Add this line:
        trap "echo disabling monitor; airmon-ng stop $WIFI; exit" SIGINT

BTW THX for this funny script :-)

Original issue reported on code.google.com by Harvi...@gmail.com on 16 Aug 2012 at 5:56