Raised This Month: $ Target: $400
 0% 

Patch for AMX Exploit?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
proffs
Senior Member
Join Date: Jul 2013
Old 07-14-2014 , 20:03   Patch for AMX Exploit?
Reply With Quote #1

I've seen tons of ppl exploiting amx I think..
http://www.youtube.com/watch?v=2vBKVw3tDb4

 = Yellow
 = Green
 = Red/Blue


Many People uses this on my server.
How can i patch it?
proffs is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 07-14-2014 , 20:18   Re: Patch for AMX Exploit?
Reply With Quote #2

The problem is with the plugin you are using for colored chat. AMXX does not color any chat by default, therefore it is not a bug with AMXX
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
proffs
Senior Member
Join Date: Jul 2013
Old 07-14-2014 , 20:22   Re: Patch for AMX Exploit?
Reply With Quote #3

Quote:
Originally Posted by YamiKaitou View Post
The problem is with the plugin you are using for colored chat. AMXX does not color any chat by default, therefore it is not a bug with AMXX
Well this bug is in every server that has Colorchat or client_print_color?

Because no matter which plugin I use they can still bug.
Do you know what can cause this?
proffs is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 07-14-2014 , 20:25   Re: Patch for AMX Exploit?
Reply With Quote #4

It is the fault of those plugins not stripping the characters before printing them back to clients. The plugins will need to be modified, there is nothing wrong with ColorChat or AMXX
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
proffs
Senior Member
Join Date: Jul 2013
Old 07-14-2014 , 20:34   Re: Patch for AMX Exploit?
Reply With Quote #5

Quote:
Originally Posted by YamiKaitou View Post
It is the fault of those plugins not stripping the characters before printing them back to clients. The plugins will need to be modified, there is nothing wrong with ColorChat or AMXX
Hmm okay.

So in this plugin what would I have to add?
[PHP]#include <

Last edited by proffs; 07-15-2014 at 06:05.
proffs is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 07-14-2014 , 20:39   Re: Patch for AMX Exploit?
Reply With Quote #6

Simply strip ^1, ^2, ^3 and ^4 from the message right after you use read_args
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
proffs
Senior Member
Join Date: Jul 2013
Old 07-14-2014 , 20:42   Re: Patch for AMX Exploit?
Reply With Quote #7

Quote:
Originally Posted by YamiKaitou View Post
Simply strip ^1, ^2, ^3 and ^4 from the message right after you use read_args
Should've posted this in request thread since I don't know how to use strip and yeah. I am not good at this part.

Can you move the thread to request section? Thanks
proffs is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 07-14-2014 , 20:44   Re: Patch for AMX Exploit?
Reply With Quote #8

Use replace_all to do the stripping.

So you are saying that you cannot code at all yet you posted in Scripting Help anyway?
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
proffs
Senior Member
Join Date: Jul 2013
Old 07-14-2014 , 20:52   Re: Patch for AMX Exploit?
Reply With Quote #9

Quote:
Originally Posted by YamiKaitou View Post
Use replace_all to do the stripping.

So you are saying that you cannot code at all yet you posted in Scripting Help anyway?
Didn't mean to make a request on this thread, just discuss the bug.
Well it's my fault sorry...


However woul

Last edited by proffs; 07-15-2014 at 06:05.
proffs is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 07-14-2014 , 21:04   Re: Patch for AMX Exploit?
Reply With Quote #10

No

Code:
replace_all(szMessage, iLen, "^1" "");
replace_all(szMessage, iLen, "^2" "");
replace_all(szMessage, iLen, "^3" "");
replace_all(szMessage, iLen, "^4" "");
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou 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 21:04.


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