Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- if [ -z $1 ];then
- echo Enter time to refresh
- exit
- fi
- echo Usable in background mode
- while [ 1 ] ; do
- rm -f magic.key
- wget -q wap.com -O magic.key
- z=`grepthemagickey magic.key`
- if [ -z $z ] ; then
- #Key not found means there's still internet from the last login
- rm -f magic.key
- else
- echo Refreshing Keepalive
- fi
- curl -sd "username=nagendra.kumar_mba16&password=31820025&magic=${z}" http://wap.com -L --output /dev/null
- sleep $1
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement