File: testsuite.sh

package info (click to toggle)
opentracker 0.0~git20240622.c854b3d-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 604 kB
  • sloc: ansic: 5,825; perl: 176; makefile: 70; sh: 62
file content (13 lines) | stat: -rw-r--r-- 324 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

for _ in $(seq 4); do
  request_string="GET /announce?info_hash=0123456789012345678\
%$(printf %02X $(( $RANDOM & 0xf )) )\
&ip=$(( $RANDOM & 0xf )).$(( $RANDOM & 0xf )).13.16&port=$(( $RANDOM & 0xff )) HTTP/1.0\n"

echo $request_string
#  echo
  echo $request_string | nc 127.0.0.1 6969 >/dev/null
#  echo

done