opentracker/testsuite.sh

13 lines
308 B
Bash
Raw Normal View History

2007-01-04 21:34:10 +00:00
#!/bin/sh
while true; do
2007-01-05 00:00:41 +00:00
request_string="GET /announce?info_hash=0123456789012345678%$(printf %02X $(( $RANDOM & 0xff )) )&\
ip=10.1.1.$(( $RANDOM & 0xff ))&port=$(( $RANDOM & 0xff )) HTTP/1.0\n"
2007-01-04 21:34:10 +00:00
# echo -e $request_string
# echo
2007-01-12 01:58:25 +00:00
echo -e $request_string | nc 127.0.0.1 6969 >/dev/null &
# echo
2007-01-04 21:34:10 +00:00
done