CoinURL Bot, Mac or Linux v[1.0]


SUBMITTED BY: Guest

DATE: Dec. 15, 2013, 4:23 p.m.

FORMAT: Text only

SIZE: 1.8 kB

HITS: 1427

  1. Usage:
  2. -h - show help message and exit
  3. -u <uuid> - specify unique user id
  4. -l <number of times> - limit the number of times the script will loop (default: 10000)
  5. -b <browser> - browser to open the links in (default: default browser)
  6. Example usage: coinURL -u 529d189542657801002944 -l 10 -b Safari
  7. Requirements: cURL (http://curl.haxx.se)
  8. bash v3.2 or greater (It will probably work with lower versions of bash, but I haven't tested those.)
  9. [code]
  10. #!/bin/bash
  11. function help_ {
  12. echo " -h - show help message and exit"
  13. echo " -u <uuid> - specify unique user id"
  14. echo " -l <number of times> - limit the number of times the script will loop (default: 10000)"
  15. echo " -b <browser> - browser to open the links in (default: default browser)"
  16. }
  17. function launch_ {
  18. if [[ -n $* ]]; then
  19. while [[ -n $* ]]; do
  20. if [[ $1 = -u ]]; then
  21. uuid=$2
  22. shift 2
  23. elif [[ $1 = -h ]]; then
  24. help_
  25. exit
  26. elif [[ $1 = -b ]]; then
  27. browser=$2".app"
  28. browser_proc=$2
  29. shift 2
  30. elif [[ $1 = -l ]]; then
  31. limit=$2
  32. shift 2
  33. fi
  34. done
  35. else
  36. help_
  37. exit
  38. fi
  39. if [[ -z $limit ]]; then
  40. limit=10000
  41. fi
  42. num=0
  43. randid=$RANDOM
  44. }
  45. function pull_ {
  46. while true; do
  47. killall $browser_proc
  48. url=$(curl -s -S "https://coinurl.com/api.php?uuid="$uuid"&url=https://www.google.com/$randid/$num")
  49. echo -en "\rNumber of urls generated: $num | Current URL: $url"
  50. ((num++))
  51. open -g -a $browser "$url"
  52. sleep 4
  53. if [[ $num -gt $limit ]]; then
  54. break
  55. fi
  56. done
  57. }
  58. launch_ $* && pull_
  59. [/code]
  60. Donations, if you're feelin' it 1KEcwexeZkR1LzTMPFBoHo6T8zMxU79Hi2

comments powered by Disqus