diff options
author | erdgeist <> | 2007-01-04 21:34:10 +0000 |
---|---|---|
committer | erdgeist <> | 2007-01-04 21:34:10 +0000 |
commit | 3d54ca32fe676c9a47a8e1e914f78cbd9c461906 (patch) | |
tree | add9fc220d37303553fdcf709731c8cbf2444d6c | |
parent | 33eaf54da7409258bd0d78459eaca939cfdfe458 (diff) |
Shell Testsuite
-rw-r--r-- | testsuite.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite.sh b/testsuite.sh new file mode 100644 index 0000000..001bc5f --- /dev/null +++ b/testsuite.sh | |||
@@ -0,0 +1,13 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | while true; do | ||
4 | request_string="GET /announce?info_hash=012345678901234567%$(printf %02X `jot -r 1 0 255`)%$(printf %02X `jot -r 1 0 255`)&\ | ||
5 | ip=10.1.1.`jot -r 1 0 255`&\ | ||
6 | port=`jot -r 1 0 255` HTTP/1.0\n" | ||
7 | |||
8 | echo -e $request_string | ||
9 | echo | ||
10 | echo -e $request_string | nc erdgeist.org 6969 | tr -C "[:print:]" _ | ||
11 | echo | ||
12 | |||
13 | done | ||