[NetBehaviour] trackers
James Morris
james at jwm-art.net
Wed Oct 1 21:42:06 CEST 2014
#!/bin/bash
URL="https://www.talentbin.com/tracker/pixel/"
ID="3098af159948a6eb3116b14544f0a15d"
START=0
COUNT=100
CHARS=${#COUNT}
if [ $CHARS -gt 9 ]; then
echo "COUNT '$COUNT' too large."
exit -1
fi
if [ ${#START} -gt ${#CHARS} ]; then
echo "START '$START' greater than COUNT '$COUNT'"
exit -1
fi
S1=${ID:0:${#ID} - $CHARS}
N=$START
C=0
while [ $C -lt $COUNT ]
do
S=$(printf "%s%0${CHARS}x" $S1 $N)
echo -e "Requesting tracker ${URL}${S}..."
wget -q "${URL}${S}" -O /dev/null && echo "ok" || echo "error"
sleep 1
N=$((N+1))
C=$((C+1))
done
More information about the NetBehaviour
mailing list