Kali/Hotspot/Short: Difference between revisions
From charlesreid1
(Created page with "This is the short version of Kali/Hotspot: <pre> service dhcpcd start || service dhcpcd restart service dnsmasq start || service dnsmasq restart ifdown wlan2 || ifconfig...") |
No edit summary |
||
| Line 1: | Line 1: | ||
This is the short version of [[Kali/Hotspot]]: | This is the short version of [[Kali/Hotspot]]: | ||
1. Edit the dhcp and dns config files for private wifi network | |||
2. Start the dhcp and dns services for private wifi network | |||
<pre> | <pre> | ||
service dhcpcd start || service dhcpcd restart | service dhcpcd start || service dhcpcd restart | ||
service dnsmasq start || service dnsmasq restart | service dnsmasq start || service dnsmasq restart | ||
</pre> | |||
3. Connect to existing wifi network with wlan2 | |||
<pre> | |||
ifdown wlan2 || ifconfig wlan2 down | ifdown wlan2 || ifconfig wlan2 down | ||
rfkill unblock wifi && rfkill unblock wlan | rfkill unblock wifi && rfkill unblock wlan | ||
sleep 3 | sleep 3 | ||
ifup wlan2 || ifconfig wlan2 up | ifup wlan2 || ifconfig wlan2 up | ||
</pre> | |||
4. Start hostapd with wlan1 | |||
<pre> | |||
ifconfig wan1 down | |||
rfkill unblock wifi | |||
rfkill unblock wlan | |||
ifconfig wlan1 192.168.4.1/24 up | |||
# restart the dhcp service too | |||
service dhcpcd start || service dhcpcd restart | |||
service hostapd start || service hostapd restart | |||
</pre> | </pre> | ||
Revision as of 08:42, 1 December 2019
This is the short version of Kali/Hotspot:
1. Edit the dhcp and dns config files for private wifi network
2. Start the dhcp and dns services for private wifi network
service dhcpcd start || service dhcpcd restart service dnsmasq start || service dnsmasq restart
3. Connect to existing wifi network with wlan2
ifdown wlan2 || ifconfig wlan2 down rfkill unblock wifi && rfkill unblock wlan sleep 3 ifup wlan2 || ifconfig wlan2 up
4. Start hostapd with wlan1
ifconfig wan1 down rfkill unblock wifi rfkill unblock wlan ifconfig wlan1 192.168.4.1/24 up # restart the dhcp service too service dhcpcd start || service dhcpcd restart service hostapd start || service hostapd restart
Flags