From 03460d5ed0be3f6b22fd396710ac71f731e1a830 Mon Sep 17 00:00:00 2001 From: Edward Beckett Date: Sun, 6 Sep 2015 01:05:52 -0400 Subject: [PATCH] Update gen_badbots Added plus char to the regex for escaping user-agent strings. --- files/gen_badbots | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/gen_badbots b/files/gen_badbots index 278058f7..52732317 100755 --- a/files/gen_badbots +++ b/files/gen_badbots @@ -42,7 +42,7 @@ done \ | grep -h -B4 'S '\ | 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'