Advertisement
Guest User

Untitled

a guest
Aug 27th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. if [ -z $1 ];then
  4. echo Enter time to refresh
  5. exit
  6. fi
  7.  
  8. echo Usable in background mode
  9.  
  10.  
  11.  
  12. while [ 1 ] ; do
  13.  
  14.  
  15. rm -f magic.key
  16. wget -q wap.com -O magic.key
  17.  
  18. z=`grepthemagickey magic.key`
  19.  
  20. if [ -z $z ] ; then
  21. #Key not found means there's still internet from the last login
  22. rm -f magic.key
  23. else
  24. echo Refreshing Keepalive
  25. fi
  26.  
  27. curl -sd "username=nagendra.kumar_mba16&password=31820025&magic=${z}" http://wap.com -L --output /dev/null
  28. sleep $1
  29.  
  30. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement