\/\/iFi:

- Location
- Spectrum
- Equipment
- Data
- Collection
- Beacon
- Hotspots
- 

-Equipment:


Raspberry Pi 3
tp-link TL-WN722N v1 wireless usb adapter
DC 5V 2.5A Power Supply
16GB MicroSD card










wlan0 - The RPi3 internal WiFi (AccesPoint) is setup as an Captive Portal:


/etc/dnsmasq.conf

####>>>>>———>

no-dhcp-interface=wlan1 
except-interface=wlan1
interface=wlan0

listen-address=192.168.4.1
# Add other name servers here, with domain specs if they are for non-public $
server=/wifi4garden/192.168.4.1
# Add local-only domains here, queries in these domains are answered from /et$
local=/wifi4garden/
# Make all host names resolve to the Raspberry Pi's IP address
address=/#/192.168.4.11
# Specify the interface that will listen for DHCP and DNS requests
interface=wlan0
# Set the domain for dnsmasq
domain=wifi4garden.com
dhcp-range=192.168.4.120,192.168.4.240,12h # Assign IP addresses with a 12 hou$
# Specify the default route
#dhcp-option=3,192.168.4.1
# Specify the DNS server address
#dhcp-option=6,192.168.4.1

dhcp-option=option:dns-server,192.168.4.1
# Set the DHCP server to authoritative mode.
dhcp-authoritative
bind-interfaces

####<———




wlan1 - The TL-WN722N WiFi usb is used in MonitorMode:

####>>>>>———>

def start_scan():
    if not tshark_is_running():
        for filename in glob.glob("/tmp/tshark-temp*"):
            os.remove(filename)
        subprocess.Popen(("/usr/bin/tshark -I -i wlan1 -b files:4 -b filesize:10000 -w /tmp/tshark-temp").split(),
                         stdout=subprocess.PIPE, stderr=subprocess.PIPE)
        logger.debug("open tshark")
        if tshark_is_running():
            logger.debug("Starting scan")

####<———