Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- read -p "Enter The referer URL: " REFERER
- read -p "Enter the file name prefix: " FNP
- read -p "Enter any number prefix for values 0-9: " PREFIX
- read -p "Enter lower bound: " LOWERBOUND
- read -p "Enter upper bound: " UPPERBOUND
- echo "$REFERER/$FNP$PREFIX[$LOWERBOUND-$UPPERBOUND].jpg"
- if (($LOWERBOUND < 10)); then
- for (( n=$LOWERBOUND; $n < 10; n++)) ;
- #do echo "$REFERER/$FNP$PREFIX$n.jpg";
- do wget --random-wait --referer=%URL% -r -p -e robots=off -U "$REFERER/$FNP$PREFIX$n.jpg";
- done
- LOWERBOUND=10;
- fi
- for (( n=$LOWERBOUND; $LOWERBOUND < $UPPERBOUND; n++)) ;
- do wget --random-wait --referer=%URL% -r -p -e robots=off -U "$REFERER/$FNP$PREFIX$n.jpg";
- #do echo $URL/$FNP$PREFIX$n.jpg;
- done
Advertisement
Add Comment
Please, Sign In to add comment