/goscan

goscan is a simple and efficient IPv4 network scanner that discovers all active devices on local subnet.

Primary LanguageGoApache License 2.0Apache-2.0

goscan

image

特点:

  • 扫描整个内网IPv4空间
  • 向整个内网发送ARP包
  • 显示IP/MAC地址/主机名/设备厂商名
  • 利用SMB(Windows)和mDNS(Mac OS)嗅探内网主机名(hostname)
  • 利用MAC地址计算设备的厂商信息

更多细节可以查看 用Go开发可以内网活跃主机嗅探器

Features:

  • Scan the whole IPv4 address space
  • Scan your local network with ARP packets
  • Display the IP address, MAC address, hostname and vendor associated
  • Using SMB(Windows devices) and mDNS(Apple devices) to detect hostname

Usage:

# install dependencies
$ go get github.com/Sirupsen/logrus
$ go get github.com/timest/gomanuf
$ go get github.com/google/gopacket

# build
$ go build

# execute
$ sudo ./main  
# or
$ sudo ./main -I en0

Goscan must run as root.

Goscan work in Linux/Mac using libpcap and on Windows with WinPcap.

If you need English comments, check this fork: https://github.com/skoky/goscan/tree/english