blackretina

imagedl-linux

Apr 27th, 2015
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. read -p "Enter The referer URL: " REFERER
  4. read -p "Enter the file name prefix: " FNP
  5. read -p "Enter any number prefix for values 0-9: " PREFIX
  6. read -p "Enter lower bound: " LOWERBOUND
  7. read -p "Enter upper bound: " UPPERBOUND
  8.  
  9. echo "$REFERER/$FNP$PREFIX[$LOWERBOUND-$UPPERBOUND].jpg"
  10.  
  11. if (($LOWERBOUND < 10)); then
  12. for (( n=$LOWERBOUND; $n < 10; n++)) ;
  13. #do echo "$REFERER/$FNP$PREFIX$n.jpg";
  14. do wget --random-wait --referer=%URL% -r -p -e robots=off -U "$REFERER/$FNP$PREFIX$n.jpg";
  15. done
  16. LOWERBOUND=10;
  17. fi
  18.  
  19. for (( n=$LOWERBOUND; $LOWERBOUND < $UPPERBOUND; n++)) ;
  20. do wget --random-wait --referer=%URL% -r -p -e robots=off -U "$REFERER/$FNP$PREFIX$n.jpg";
  21. #do echo $URL/$FNP$PREFIX$n.jpg;
  22. done
Advertisement
Add Comment
Please, Sign In to add comment