add rubish log generator

This commit is contained in:
Hugo 2021-09-30 17:56:47 +02:00
parent 94519bfd5e
commit b02f459f5b
1 changed files with 10 additions and 0 deletions

10
gen_log.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/bash
for i in {1..34000}; do
n=$( echo "$i % 256" | bc)
echo "10.10.100.$n - - [10/Sep/2021:23:17:55 +0200] \"GET /mentions-legales/ HTTP/2.0\" 301 178 \"https://saxodwarf.fr/tags/h%C3%A9bergement/\" \"Mozilla/5.0 (X11; Linux aarch64; rv:91.0) Gecko/20100101 Firefox/91.0 $i\""
if (( $i % 1000 == 0 )); then
echo $i 1>&2
fi
done