HOME>>>>>>>>>

File targets-sniffer

脚本使用类型: prerule
脚本所属分类: broadcast, discovery, safe
脚本下载地址: http://nmap.org/svn/scripts/targets-sniffer.nse

User Summary

Sniffs the local network for a configurable amount of time (10 seconds by default) and prints discovered addresses. If the newtargets script argument is set, discovered addresses are added to the scan queue.

Requires root privileges. Either the targets-sniffer.iface script argument or -e Nmap option to define which interface to use.

Script Arguments

targets-sniffer.iface

The interface to use for sniffing.

targets-sniffer.timeout

The amount of time to listen for packets. Default 10s.

newtargets

If true, add discovered targets to the scan queue.

max-newtargets

See the documentation for the target library.

Example Usage

执行格式

nmap -sL --script=targets-sniffer --script-args=newtargets,targets-sniffer.timeout=5s,targets-sniffer.iface=eth0

Script Output

Pre-scan script results:
| targets-sniffer:
| 192.168.0.1
| 192.168.0.3
| 192.168.0.35
|_192.168.0.100

Requires


Author: Nick Nikolaou

License: VER007 整理 http://www.ver007.com