Fix hostapd bug with empty channel
This commit is contained in:
parent
3f031aaf34
commit
ee242d9aba
11
fluxion.sh
11
fluxion.sh
|
@ -1843,15 +1843,14 @@ fi
|
||||||
function preattack {
|
function preattack {
|
||||||
|
|
||||||
# Check if channel is negative
|
# Check if channel is negative
|
||||||
if [ $CHANNEL < 0 ];then
|
if [ "CHANNEL" = "" ];then
|
||||||
CHANNEL=$(echo $(($CHANNEL*-1)))
|
CHANNEL=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Config HostAPD
|
# Config HostAPD
|
||||||
echo "interface=$WIFI
|
echo "interface=$WIFI
|
||||||
driver=nl80211
|
driver=nl80211
|
||||||
ssid=$Host_SSID
|
ssid=$Host_SSID
|
||||||
channel=$Host_CHAN" > $DUMP_PATH/hostapd.conf
|
channel=$Host_CHAN" > $DUMP_PATH/hostapd.conf
|
||||||
|
|
||||||
# Creates PHP
|
# Creates PHP
|
||||||
echo "<?php
|
echo "<?php
|
||||||
|
|
Loading…
Reference in New Issue