Nhoya / nmap-skill

nmap skill for Mycroft AI
MIT License
1 stars 3 forks source link

Feature Request: ping scan of local subnet #1

Open jrwarwick opened 6 years ago

jrwarwick commented 6 years ago

nmap skill should do a simple local scan, something like: nmap -Pn 192.168.1.* in response to utterances like: "what are the devices on local network", "scan the local network", "devices connected to the same wifi) Since nmap access is already through commandline, scannable subnets might be acquired by parsing something like: ip address show label "*0" | grep 'inet '

Perhaps if result set exceeds some threshold quantity (maybe 10 net nodes), mycroft could first say "87 network nodes were found in an UP state. Should I email you the list, read them, or cancel?"

Nhoya commented 6 years ago

Hi, thanks for the request, unfortunately this week I'm a bit busy but next week I can write it for sure. If meanwhile someone wants to help PR are welcomed

Nhoya commented 6 years ago

The latest commit should do what you asked for, feel free to test it and leave a feedback :)