summaryrefslogtreecommitdiff
path: root/testsuite.sh
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite.sh')
-rw-r--r--testsuite.sh7
1 files changed, 3 insertions, 4 deletions
diff --git a/testsuite.sh b/testsuite.sh
index 001bc5f..6b2dad9 100644
--- a/testsuite.sh
+++ b/testsuite.sh
@@ -1,13 +1,12 @@
1#!/bin/sh 1#!/bin/sh
2 2
3while true; do 3while true; do
4 request_string="GET /announce?info_hash=012345678901234567%$(printf %02X `jot -r 1 0 255`)%$(printf %02X `jot -r 1 0 255`)&\ 4 request_string="GET /announce?info_hash=0123456789012345678%$(printf %02X $(( $RANDOM & 0xff )) )&\
5ip=10.1.1.`jot -r 1 0 255`&\ 5ip=10.1.1.$(( $RANDOM & 0xff ))&port=$(( $RANDOM & 0xff )) HTTP/1.0\n"
6port=`jot -r 1 0 255` HTTP/1.0\n"
7 6
8 echo -e $request_string 7 echo -e $request_string
9 echo 8 echo
10 echo -e $request_string | nc erdgeist.org 6969 | tr -C "[:print:]" _ 9 echo -e $request_string | nc 213.73.88.214 6969 | tr -C "[:print:]" _
11 echo 10 echo
12 11
13done 12done