Edit /etc/netwok/interfaces like this and add your networks SSID and password: auto lo iface lo ...
https://www.it-connect.fr/creer-un-scanner-de-vulnerabilites-avec-un-raspberry-pi-mais-pas-que/