diff options
Diffstat (limited to 'tests/testsuite2.sh')
-rw-r--r-- | tests/testsuite2.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/testsuite2.sh b/tests/testsuite2.sh new file mode 100644 index 0000000..5189187 --- /dev/null +++ b/tests/testsuite2.sh | |||
@@ -0,0 +1,14 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | while true; do | ||
4 | request_string="GET /announce?info_hash=012345678901234567\ | ||
5 | %$(printf %02X $(( $RANDOM & 0xff )) )\ | ||
6 | %$(printf %02X $(( $RANDOM & 0xff )) )\ | ||
7 | &ip=$(( $RANDOM & 0xff )).17.13.15&port=$(( $RANDOM & 0xff )) HTTP/1.0\n" | ||
8 | |||
9 | echo $request_string | ||
10 | echo | ||
11 | echo $request_string | nc 10.0.1.3 6969 >/dev/null | ||
12 | echo | ||
13 | |||
14 | done | ||