Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- page=$1
- notfound=0
- while true
- do
- content=$( curl --silent --cookie i_need_it=fapfap http://apina.biz/$page )
- if echo $content | grep anon > /dev/null 2>&1
- then
- echo $page - $(date) - anon
- page=$(($page + 1))
- elif echo $content | grep 'Entry not found' > /dev/null 2>&1
- then
- echo $page - $(date) - not found
- notfound=$(($notfound + 1))
- sleep 30
- else
- curl --silent --cookie i_need_it=fapfap --form comment="My name is Nathan and I always win" http://apina.biz/$page
- echo $page - $(date) - first | tee -a apina_log
- page=$(($page + 1))
- fi
- if [ "$notfound" -eq "10" ]
- then
- page=$(($page + 1))
- notfound=0
- if curl --silent --cookie i_need_it=fapfap http://apina.biz/$page | grep 'Entry not found' > /dev/null 2>&1
- then
- echo $page - $(date) - "not found!"
- page=$(($page - 1))
- fi
- fi
- done
Advertisement
Add Comment
Please, Sign In to add comment