Advertisement
Guest User

Untitled

a guest
Nov 29th, 2011
528
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.91 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. mkdir -p "infohashes"
  4. cd "infohashes"
  5.  
  6. ## source: The Pirate Bay. Décommenter "while" et "done" pour boucle.
  7. #while true; do
  8.  target=`shuf -i 3200000-7000000 -n 1`
  9.  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`
  10.  if [ "${#hash}"=40 ]; then echo "" >"$hash";fi
  11. sleep 0.5
  12. #done
  13.  
  14.  
  15. ## source: Isohunt. Décommenter "while" et "done" pour boucle.
  16. #while true; do
  17.  target=`shuf -i 100000000-400000000 -n 1`
  18.  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`
  19.  if [ "${#hash}"=40 ]; then echo "" >"$hash";fi
  20. sleep 0.5
  21. #done
  22.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement