File bittorrent-discovery
Script types:
prerule
Categories:
discovery, safe
Download: http://nmap.org/svn/scripts/bittorrent-discovery.nse
User Summary
Discovers bittorrent peers sharing a file based on a user-supplied torrent file or magnet link. Peers implement the Bittorrent protocol and share the torrent, whereas the nodes (only shown if the include-nodes NSE argument is given) implement the DHT protocol and are used to track the peers. The sets of peers and nodes are not the same, but they usually intersect.
If the newtargets script-arg is supplied it adds the discovered
peers as targets.
Script Arguments
bittorrent-discover.timeout
desired (not actual) timeout for the DHT discovery (default = 30s)
bittorrent-discover.include-nodes
boolean selecting whether to show only nodes
bittorrent-discovery.magnet
a string containing the magnet link of the torrent
bittorrent-discovery.torrent
a string containing the filename of the torrent file
max-newtargets, newtargets
See the documentation for the target library.smbdomain, smbhash, smbnoguest, smbpassword, smbtype, smbusername
See the documentation for the smbauth library.http.max-cache-size, http.max-pipeline, http.pipeline, http.useragent
See the documentation for the http library.Example Usage
nmap --script bittorrent-discovery --script-args newtargets,bittorrent-discovery.torrent=<torrent_file>
Script Output
| bittorrent-peers: | Peers: | 97.88.178.168 | 89.100.184.36 | 86.185.55.212 | Total of 3 peers discovered | Nodes: | 68.103.0.189 | 67.164.32.71 | 24.121.13.69 | 207.112.100.224 | Total of 4 nodes discovered |_ Use the newtargets script-arg to add the results as targets
Requires
Author: Gorjan Petrovski
License: Same as Nmap--See http://nmap.org/book/man-legal.html


