日期: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