liveHostPortScan

less than 1 minute read

  less than 1 minute read

Discover live hosts in subnet and scan for open ports using ping and nc method.

Usage:

  • change the desire subnet value at line 13
  • change the desire ports to be scanned in the array at line 27

Requirement:

  • ping
  • nc [v1.10-41.1+b1], netcat-traditional_1.10-41.1+b1_amd64.deb or apt-get install netcat-traditional

Source code:

Tested on Kali Linux 2020.2

  • Output