summaryrefslogtreecommitdiff
path: root/testsuite.sh
blob: 1af1499b9be2e0ec08751d3f023aa9ed6c616828 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

while true; do
  request_string="GET /announce?info_hash=0123456789012345678%$(printf %02X $(( $RANDOM & 0xff )) )&\
ip=10.1.1.$(( $RANDOM & 0xff ))&port=$(( $RANDOM & 0xff )) HTTP/1.0\n"

#  echo -e $request_string
#  echo
  echo -e $request_string | nc 23.23.23.182 6969 >/dev/null &
#  echo

done