goscan
goscan copied to clipboard
osx bug
x-MacBook-Pro:main apple$ sudo ./main
Password:
INFO[0000] 本机ip:172.16.238.99
INFO[0000] 内网IP范围:172.16.0.0 --- 172.16.255.255
FATA[0000] pcap打开失败:en0: (cannot open BPF device) /dev/bpf0: Too many open files
FATA[0000] pcap打开失败:en0: (cannot open BPF device) /dev/bpf0: Too many open files
The maximum number of devices(bpf file descriptor) that can be created is 256 default. You can setting this using sysctl debug.bpf_maxdevices=xxx . And I will using thread pool to fix this issue.
刚开始学 go 在下载依赖包的过程简直痛苦,golang.org 无法访问 只能手动从 github.com 克隆,然后拷贝到 $GOPATH 下 不过跑起来还是挺厉害的,给你👍 运行效果如图 https://www.jianguoyun.com/p/DRVxM-4QgO-uBhiz3zo