Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- mkdir -p "infohashes"
- cd "infohashes"
- ## source: The Pirate Bay. Décommenter "while" et "done" pour boucle.
- #while true; do
- target=`shuf -i 3200000-7000000 -n 1`
- hash=`wget -U "Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20100101 Firefox/8.0" -O - http://thepiratebay.org/torrent/$target | grep -o "href=\"magnet:?xt=urn:btih:[^[:space:]]*\"" -m1 | sed -e "s/href=\"magnet:?xt=urn:btih://" | cut -c 1-40`
- if [ "${#hash}"=40 ]; then echo "" >"$hash";fi
- sleep 0.5
- #done
- ## source: Isohunt. Décommenter "while" et "done" pour boucle.
- #while true; do
- target=`shuf -i 100000000-400000000 -n 1`
- hash=`wget -U "Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20100101 Firefox/8.0" -O - http://isohunt.com/torrent_details/$target | grep -o "SL_desc'>info_hash: [^[:space:]]* " -m1 | sed -e "s/SL_desc'>info_hash: //" | cut -c 1-40`
- if [ "${#hash}"=40 ]; then echo "" >"$hash";fi
- sleep 0.5
- #done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement