mirror of https://github.com/fail2ban/fail2ban
Update gen_badbots
Added plus char to the regex for escaping user-agent strings.pull/1180/head
parent
835b3ff483
commit
03460d5ed0
|
@ -42,7 +42,7 @@ done \
|
|||
| grep -h -B4 '<td class="smallcell" nowrap>S </td>'\
|
||||
| sed -e 's/ //g' \
|
||||
| awk '/^--/{getline; gsub(" ",""); print $0}' \
|
||||
| sed -e 's/\([.\:|()]\)/\\\1/g' \
|
||||
| sed -e 's/\([.\:|()+]\)/\\\1/g' \
|
||||
| uniq \
|
||||
| tr '\n' '|' \
|
||||
| sed -e 's/|$//g'
|
||||
|
|
Loading…
Reference in New Issue