Skip to content

Instantly share code, notes, and snippets.

@decuant
decuant / test.cmd
Created March 22, 2016 06:37
launches nmap and performs a test with bittorrent-report.nse
REM nmap -F -v0 --script bittorrent-discovery --script-args newtargets,bittorrent-discovery.torrent="D:\UTENTE\Documents\Downloads\Tigerland.torrent" > out.txt
REM D:\_TEST_\_ERROR_
REM D:\UTENTE\Documents\Downloads\__Archived__
nmap -F -d1 --script bittorrent-report --script-args bittorrent-report.rdir="D:\UTENTE\Documents\Downloads\__Archived__\__J--L__",bittorrent-report.blist="blacklist.txt"> __J--L__.txt
pause
@decuant
decuant / bittorrent-report.nse
Created March 22, 2016 06:36
recurse directory and test each .torrent file for available seeds and number of leeches
local stdnse = require "stdnse"
local table = require "table"
local target = require "target"
local lfs = require "lfs"
local bittorrent = stdnse.silent_require "bittorrent"
description = [[
This script is an adaptation of <bittorent-discovery.nse> and can be used
to retrieve the number of [seeders] and [leeches] for a variable number of
@decuant
decuant / blacklist.txt
Created March 22, 2016 06:31
sample black list of trackers
udp://open.demonii.com:1337/announce
udp://tracker.istole.it:80
udp://tracker.publicbt.com:80
udp://fr33domtracker.h33t.com:3310/announce
udp://tracker.1337x.org:80/announce
udp://tracker.publicbt.com:80/announce
udp://tracker.istole.it:80/announce
udp://tracker.ccc.de:80
udp://tracker.ccc.de:80/announce
udp://tracker-ccc.de:6969