Hello,
Kinda of a beginner with regex so i would like some help on this.
Got around 1000 bots bouncing in and out on my network.
Ex:
[USA|00|XP|P|25874]
BGR|00|XP|SP3|2745
GBR|00|UN|SP1|2320
[FRA|00|XP|MP|1879]
[ITA|02|XP|P|25113]
[USA|01|VIS|P|54031]
[SAU|00|XP|P|56781]
[ITA|00|XP|P|97075]
[USA|00|XP||822760]
USA|00|XP|SP3|8635
And so on.
Needs something that kills and keeps them out.
Thankfull for anykind of help.
Regex for botnet
Re: Regex for botnet
^\[[A-Z]{3}\|\d{2}\|[A-Z]{2,3}\|[A-Z]{1,2}\d\|\d{4,5}!
^[A-Z]{3}\|\d{2}\|[A-Z]{2,3}\|[A-Z]{2,3}\|\d{5,6}!
Give a try these two
^[A-Z]{3}\|\d{2}\|[A-Z]{2,3}\|[A-Z]{2,3}\|\d{5,6}!
Give a try these two
Re: Regex for botnet
Well that did nothing.. Maby i missed something.
/spamfilter add u gline 3d BOTS ^\[[A-Z]{3}\|\d{2}\|[A-Z]{2,3}\|[A-Z]{1,2}\d\|\d{4,5}!
/spamfilter add u gline 3d BOTS ^\[[A-Z]{3}\|\d{2}\|[A-Z]{2,3}\|[A-Z]{1,2}\d\|\d{4,5}!
Re: Regex for botnet
Try switching the ! at the end with $ (dollar sign). $ denotes the end of a line, ! is just a normal character in terms of regular expressions.
Re: Regex for botnet
Same thing with the $ nothing happens.
Re: Regex for botnet
I've done some progress.
Got: [A-Z]{3}\|\d{2}\|[A-Z]{2,3}\|[A-Z]{1,2}\d\|\d{4,5}! To work. So half of the bots are gone. but the otherone i cant really tell why it isnt working.
Its exact the samething but with \[[A-Z]{3}\|\d{2}\|[A-Z]{2,3}\|[A-Z]{1,2}\d\|\d{4,5}\]! so that should kill the bots.
Am i doing something horribly wrong here ?
Got: [A-Z]{3}\|\d{2}\|[A-Z]{2,3}\|[A-Z]{1,2}\d\|\d{4,5}! To work. So half of the bots are gone. but the otherone i cant really tell why it isnt working.
Its exact the samething but with \[[A-Z]{3}\|\d{2}\|[A-Z]{2,3}\|[A-Z]{1,2}\d\|\d{4,5}\]! so that should kill the bots.
Am i doing something horribly wrong here ?
Re: Regex for botnet
Well got it to work now
Rebooted the server and somehow it worked.
Well thnx for all the help
Rebooted the server and somehow it worked.
Well thnx for all the help