2: wlp4s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
inet 192.168.1.106/24 brd 192.168.1.255 scope global dynamic wlp4s0
valid_lft 6903sec preferred_lft 6903sec
3: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default
inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0
valid_lft forever preferred_lft forever
Thx, actually the script currently only supports just one network card. I'll add support to detect only the networks that are "UP" and iterate the scan for every class-C network that could be found.
see: