日期:2019-06-27 15:54:19
作者:Bay0net
介绍:在 mac os 下,如何安装 netdiscover 及基本使用方法
0x01、当前环境
MAC os 10.14.4
已安装 brew
0x02、安装方式
使用 brew 安装
brew install sidaf/pentest/netdiscover
安装后,在命令行直接使用 netdiscover
命令出错
查找一下其路径,发现是 /usr/local/sbin/netdiscover
将 /usr/local/sbin/
加入到环境变量中
vi ~/.zshrc
# add this in the last line of the document
export PATH="/usr/local/sbin/:$PATH"
在 iTerm2
中重新打开个 tab
即可。
0x03、使用说明
Usage: netdiscover [-i device] [-r range | -p] [-s time] [-n node] [-c count] [-f] [-S]
-i device: your network device
-r range: scan a given range instead of auto scan. 192.168.6.0/24,/16,/8
-p passive mode do not send anything, only sniff
-s time: time to sleep between each arp request (miliseconds)
-c count: number of times to send each arp reques (for nets with packet loss)
-n node: last ip octet used for scanning (from 2 to 253)
-S enable sleep time supression betwen each request (hardcore mode)
-f enable fastmode scan, saves a lot of time, recommended for auto
Some Examples
# use eth0 scan 10.1.2.0/24
netdiscover -i eth0 -r 10.1.2.0/24
# passive mode
netdiscover -p