sirpedrotavares / wifi-lord3

GNU General Public License v3.0
9 stars 2 forks source link

Network Manager #1

Open harbinc opened 6 years ago

harbinc commented 6 years ago

I noticed when I start wifi-lord3 that the Network Manager is shutdown. I have two wireless cards. Wlan0 is used to connect to my phone's hotspot. Wlan1 is the adapter i'd like to use for the fake AP. How can I tell the script to ignore network manager so wlan0 doesn't get shutdown?

Thanks the great work.

harbinc commented 6 years ago

How can I make this work with two wireless cards. I see this in the code killing the wifi connection to my host spot. How can I prevent this from killing wlan0?

function list_ifaces_wireless {

#unblock interfaces
rfkill unblock all

# Kill all interfaces in mode monitor
INTERFACES_MODE_MONITOR=`iwconfig 2>&1 | grep Monitor | awk '{print $1}'`

for obj in ${INTERFACES_MODE_MONITOR[@]}; do
    airmon-ng stop $obj >$output_device
done