Raised This Month: $51 Target: $400
 12% 

AntiCommerce


Post New Thread Reply   
 
Thread Tools Display Modes
Scherzo
Senior Member
Join Date: Feb 2007
Location: Kwidzyn, Poland
Old 11-17-2008 , 16:44   Re: AntiCommerce
Reply With Quote #101

Nice, but I must test using of this before add it to AC. Suppose webcompiler won`t compile plugin with this.

Edit:
I didn`t find any information about it there

Last edited by Scherzo; 11-17-2008 at 16:49.
Scherzo is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-17-2008 , 16:47   Re: AntiCommerce
Reply With Quote #102

It will. Dynamic array was added with Amxx 1.80.
__________________
Arkshine is offline
kobri
Senior Member
Join Date: Oct 2005
Location: Bulgaria
Old 11-18-2008 , 06:32   Re: AntiCommerce
Reply With Quote #103

Works like a charm, however kids are smart and quickly found a way to circumvent it:
*DEAD* der Endgegner : 78.90.31,14:27015

Maybe you should add other symbols besides "."
__________________
Founder of the legendary OptiLAN, MANIA and SECTOR.BG Gaming Communities
Providing everyday fun for over 15000 Bulgarian players!

http://about.me/kobri
kobri is offline
Send a message via Skype™ to kobri
Scherzo
Senior Member
Join Date: Feb 2007
Location: Kwidzyn, Poland
Old 11-18-2008 , 08:52   Re: AntiCommerce
Reply With Quote #104

Hmm, I can change regex to catch with any chars besides, but it could punish not IPs messages.

Is it address of server?
Code:
12.,.112.,.,15.,.256
Maybe...I could add cvar for admins to decide what do with sth like this.

Or maybe better cvar with all chars which can be there and max count of them. Fe:
Code:
ac_ips_chars ".,;:'"
ac_max_chars 3
I would like second, but first is easier for users. I think to include both
Scherzo is offline
kobri
Senior Member
Join Date: Oct 2005
Location: Bulgaria
Old 11-18-2008 , 17:13   Re: AntiCommerce
Reply With Quote #105

Maybe you should add a "heuristics" mode which detects if there are 4 numbers (0-255) with any count of characters in between them. That way we can block suspicious messages and punish only those which are ips/hosts for sure!
__________________
Founder of the legendary OptiLAN, MANIA and SECTOR.BG Gaming Communities
Providing everyday fun for over 15000 Bulgarian players!

http://about.me/kobri

Last edited by kobri; 11-18-2008 at 17:15.
kobri is offline
Send a message via Skype™ to kobri
Scherzo
Senior Member
Join Date: Feb 2007
Location: Kwidzyn, Poland
Old 11-19-2008 , 08:37   Re: AntiCommerce
Reply With Quote #106

Ok, done. I tested regular expression with PHP, because I have problems with HLDS. Can be compiled, so should work.

I have to put new pattern for IP. This one is not good enough.

Edit.
Small, but important change in 1.1e.

Edit.
I found very interesting pattern, but as I wrote can`t test it on server. Could someone run it on own server? Plugin attached to this post before next update. I will feel grateful for this.

Edit.
This one don`t work so deleted from post.

Last edited by Scherzo; 11-21-2008 at 13:22.
Scherzo is offline
kobri
Senior Member
Join Date: Oct 2005
Location: Bulgaria
Old 11-20-2008 , 08:35   Re: AntiCommerce
Reply With Quote #107

Will try it now
__________________
Founder of the legendary OptiLAN, MANIA and SECTOR.BG Gaming Communities
Providing everyday fun for over 15000 Bulgarian players!

http://about.me/kobri
kobri is offline
Send a message via Skype™ to kobri
kobri
Senior Member
Join Date: Oct 2005
Location: Bulgaria
Old 11-20-2008 , 08:44   Re: AntiCommerce
Reply With Quote #108

L 11/20/2008 - 15:44:09: [REGEX] Invalid regex handle -2
L 11/20/2008 - 15:44:09: [AMXX] Run time error 10 (plugin "test.amxx") (native "
regex_free") - debug not enabled!
L 11/20/2008 - 15:44:09: [AMXX] To enable debug mode, add "debug" after the plug
in name in plugins.ini (without quotes).
L 11/20/2008 - 15:44:09: [REGEX] Invalid regex handle -2
L 11/20/2008 - 15:44:09: [AMXX] Run time error 10 (plugin "test.amxx") (native "
regex_free") - debug not enabled!
L 11/20/2008 - 15:44:09: [AMXX] To enable debug mode, add "debug" after the plug
in name in plugins.ini (without quotes).
L 11/20/2008 - 15:44:09: [REGEX] Invalid regex handle -2
L 11/20/2008 - 15:44:09: [AMXX] Run time error 10 (plugin "test.amxx") (native "
regex_free") - debug not enabled!
L 11/20/2008 - 15:44:09: [AMXX] To enable debug mode, add "debug" after the plug
in name in plugins.ini (without quotes).
L 11/20/2008 - 15:44:11: [REGEX] Invalid regex handle -2
L 11/20/2008 - 15:44:11: [AMXX] Run time error 10 (plugin "test.amxx") (native "
regex_free") - debug not enabled!
L 11/20/2008 - 15:44:11: [AMXX] To enable debug mode, add "debug" after the plug
in name in plugins.ini (without quotes).
L 11/20/2008 - 15:44:14: [REGEX] Invalid regex handle -2
L 11/20/2008 - 15:44:14: [AMXX] Run time error 10 (plugin "test.amxx") (native "
regex_free") - debug not enabled!
L 11/20/2008 - 15:44:14: [AMXX] To enable debug mode, add "debug" after the plug
in name in plugins.ini (without quotes).
__________________
Founder of the legendary OptiLAN, MANIA and SECTOR.BG Gaming Communities
Providing everyday fun for over 15000 Bulgarian players!

http://about.me/kobri
kobri is offline
Send a message via Skype™ to kobri
Sweet sixteen!
Junior Member
Join Date: Nov 2008
Old 11-20-2008 , 09:32   Re: AntiCommerce
Reply With Quote #109

Using this plugin my server is a down after 8 hours with this text:
Sweet sixteen! is offline
Send a message via ICQ to Sweet sixteen!
Scherzo
Senior Member
Join Date: Feb 2007
Location: Kwidzyn, Poland
Old 11-20-2008 , 14:14   Re: AntiCommerce
Reply With Quote #110

Thanks for test, I should repair hlds to check it.

Why pipes.CPP?
Scherzo is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:44.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode