From c2cbe1dc273984c689c97f5eca8798195d5a35a0 Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Tue, 11 Dec 2007 23:34:36 +0000 Subject: A simple script that fills up opentracker with some peers, if -DWANT_IP_FROM_QUERY_STRING is specifierd --- tests/testsuite.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tests/testsuite.sh (limited to 'tests') diff --git a/tests/testsuite.sh b/tests/testsuite.sh new file mode 100644 index 0000000..b07546d --- /dev/null +++ b/tests/testsuite.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +while true; do + request_string="GET /announce?info_hash=\ +%$(printf %02X $(( $RANDOM & 0xff )) )\ +%$(printf %02X $(( $RANDOM & 0xff )) )\ +2345678901234567\ +%$(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 127.0.0.1 6969 >/dev/null +# echo + +done -- cgit v1.2.3