1. Set PermitrootLogin yes in /etc/ssh/sshd_config
2. Start sshd:
3. Enable sshd at boot:
4. For security reasons, change the root password and generate new SSH host keys:
|
root@kali:~# passwd [...] root@kali:~# rm /etc/ssh/ssh_host_* root@kali:~# dpkg-reconfigure openssh-server root@kali:~# service ssh restart |
5. Ninjas only! hostapd (Host access point daemon) is a user space software access point capable of turning normal network interface cards into access points and authentication servers. To manually configure a hostapd service through systemd:
Install and configure prerequisites:
|
apt-get install hostapd nano /etc/systemd/system/hostapd.service |
Add the following test to the hostapd.service file:
|
[Unit] Description=Hostapd WPE Service After=network.target [Service] Type=simple User=root ExecStart=/usr/sbin/hostapd /etc/hostapd/hostapd.conf Restart=on-abort [Install] WantedBy=multi-user.target |
- Create or copy over the hostapd.conf file to /etc/hostapd/hostapd.conf
- Disable Network Manager! Restart the service, and enable it at boot time. Make sure hostapd is really running when the service is started.
|
systemctl stop NetworkManager.service systemctl disable NetworkManager.service sudo nmcli radio wifi off sudo rfkill unblock wlan systemctl enable hostapd systemctl start hostapd ps -ef |grep hostapd systemctl status hostapd systemctl stop hostapd ps -ef |grep hostapd |
Note: If you're working in a VM, or are using an Atheros card, you may have issues ("EEPROM magic" or firmware failures, etc) with the USB-based wireless adapter. If this is the case, "eject" the adapter in your VM settings, unplug it, cleanly shut down the VM. Insert the card, power on the VM. If none of this works, don't fret. This is super tricky particularly because of VM's.
Note: systemctl status hostapd is your troubleshooting pal.