Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
Script CoinURL Bot Mac or Linux
SUBMITTED BY:
Guest
DATE:
Feb. 10, 2014, 8:20 p.m.
FORMAT:
PHP
SIZE:
1.2 kB
Raw
Download
Tweet
HITS:
40110
Go to comments
Report
#!/bin/bash
function help_ {
echo " -h - show help message and exit"
echo " -u <uuid> - specify unique user id"
echo " -l <number of times> - limit the number of times the script will loop (default: 10000)"
echo " -b <browser> - browser to open the links in (default: default browser)"
}
function launch_ {
if [[ -n $* ]]; then
while [[ -n $* ]]; do
if [[ $1 = -u ]]; then
uuid=$2
shift 2
elif [[ $1 = -h ]]; then
help_
exit
elif [[ $1 = -b ]]; then
browser=$2".app"
browser_proc=$2
shift 2
elif [[ $1 = -l ]]; then
limit=$2
shift 2
fi
done
else
help_
exit
fi
if [[ -z $limit ]]; then
limit=10000
fi
num=0
randid=$RANDOM
}
function pull_ {
while true; do
killall $browser_proc
url=$(curl -s -S "https://coinurl.com/api.php?uuid="$uuid"&url=https://www.google.com/$randid/$num")
echo -en "\rNumber of urls generated: $num | Current URL: $url"
((num++))
open -g -a $browser "$url"
sleep 4
if [[ $num -gt $limit ]]; then
break
fi
done
}
launch_ $* && pull_
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus