blob: dc4f4bd0a1cb707873aa10373293f52bd89fbf14 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
#!/bin/sh
#Description: Takes in files and makes torrents for them. Outputs the torrent file to the /tmp/ directory. Gets latest public torrent trackers using a curl command for effective distribution.
#Axioms:
#Dependencies: https://packages.debian.org/sid/mktorrent https://packages.debian.org/sid/curl
mktorrent -v -a udp://tracker.coppersurfer.tk:6969/announce -a udp://tracker.opentrackr.org:1337/announce -a $(curl https://raw.githubusercontent.com/ngosang/trackerslist/master/trackers_all_udp.txt |sed -e '/^$/d'|shuf|head -1) -o "/tmp/$1.torrent" -n "$1" "$1"
|