1
0
mirror of git://erdgeist.org/opentracker synced 2025-01-12 16:00:06 +00:00
opentracker/tests/testsuite2.sh

15 lines
343 B
Bash

#!/bin/sh
while true; do
request_string="GET /announce?info_hash=012345678901234567\
%$(printf %02X $(( $RANDOM & 0xff )) )\
%$(printf %02X $(( $RANDOM & 0xff )) )\
&ip=$(( $RANDOM & 0xff )).17.13.15&port=$(( $RANDOM & 0xff )) HTTP/1.0\n"
echo $request_string
echo
echo $request_string | nc 23.23.23.237 6969 >/dev/null
echo
done