Fixed wrong AP service configuration location.

This commit is contained in:
Matias Barcenas 2017-08-14 04:14:23 -05:00
parent 615da0f702
commit 490fea94ff
2 changed files with 6 additions and 2 deletions

View File

@ -10,6 +10,8 @@ VIAP=$WIAccessPoint
# and creates a separate interface, atX, for dhcpd. # and creates a separate interface, atX, for dhcpd.
VIAPAddress="$VIGWNetwork.2" VIAPAddress="$VIGWNetwork.2"
# APServiceConfigDirectory=$FLUXIONWorkspacePath
function ap_stop() { function ap_stop() {
killall airbase-ng &> $FLUXIONOutputDevice killall airbase-ng &> $FLUXIONOutputDevice

View File

@ -10,6 +10,8 @@ VIAP=$WIAccessPoint
# to master, which is supported by dhcpd. # to master, which is supported by dhcpd.
VIAPAddress=$VIGWAddress VIAPAddress=$VIGWAddress
APServiceConfigDirectory=$FLUXIONWorkspacePath
function ap_stop() { function ap_stop() {
killall hostapd &> $FLUXIONOutputDevice killall hostapd &> $FLUXIONOutputDevice
@ -46,7 +48,7 @@ interface=$VIAP
driver=nl80211 driver=nl80211
ssid=$APTargetSSID ssid=$APTargetSSID
channel=$APTargetChannel\ channel=$APTargetChannel\
" > "$APRogueMAC-hostapd.conf" " > "$APServiceConfigDirectory/$APRogueMAC-hostapd.conf"
# Spoof virtual interface MAC address. # Spoof virtual interface MAC address.
ifconfig $VIAP down ifconfig $VIAP down
@ -60,7 +62,7 @@ channel=$APTargetChannel\
} }
function ap_start() { function ap_start() {
xterm $HOLD $BOTTOMRIGHT -bg "#000000" -fg "#FFFFFF" -title "FLUXION AP Service [hostapd]" -e hostapd "$APRogueMAC-hostapd.conf" & xterm $HOLD $BOTTOMRIGHT -bg "#000000" -fg "#FFFFFF" -title "FLUXION AP Service [hostapd]" -e hostapd "$APServiceConfigDirectory/$APRogueMAC-hostapd.conf" &
# Wait till hostapd has started and its virtual interface is ready. # Wait till hostapd has started and its virtual interface is ready.
while [ ! $(ps a | awk '$5~/^hostapd/ && $0~/'"$APRogueMAC-hostapd.conf"'/{print $1}') ] while [ ! $(ps a | awk '$5~/^hostapd/ && $0~/'"$APRogueMAC-hostapd.conf"'/{print $1}') ]