Kali/Hotspot
From charlesreid1
Turning a Kali Laptop into a Hotspot
Materials
1 laptop
2 wifi cards
Setup
Create a wifi hotspot/access point with 1 wifi card (wlan2)
Connect to an existing wifi network with 2nd wifi card (wlan1)
Tunnel traffic from AP (wlan1) through to internet-connected wifi network (wlan2)
Procedure
Install Software
Install DNS, DHCP, and AP-hosting software:
sudo apt install dnsmasq dhcpcd5 hostapd
Set up DHCP
For dhcp we'll use the dhcpcd utility.
Edit dhcpcd config file
Edit /etc/dhcpcd.conf and modify it to contain this:
interface wlan1
static ip_address=192.168.4.1/24
nohook wpa_supplicant
replace wlan1 with whatever interface you want to use.
Restart dhcpcd service
sudo service dhcpcd restart
Flags