AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Patch for AMX Exploit? (https://forums.alliedmods.net/showthread.php?t=244183)

proffs 07-14-2014 20:03

Patch for AMX Exploit?
 
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?

YamiKaitou 07-14-2014 20:18

Re: Patch for AMX Exploit?
 
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

proffs 07-14-2014 20:22

Re: Patch for AMX Exploit?
 
Quote:

Originally Posted by YamiKaitou (Post 2167709)
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?

YamiKaitou 07-14-2014 20:25

Re: Patch for AMX Exploit?
 
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

proffs 07-14-2014 20:34

Re: Patch for AMX Exploit?
 
Quote:

Originally Posted by YamiKaitou (Post 2167717)
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 <

YamiKaitou 07-14-2014 20:39

Re: Patch for AMX Exploit?
 
Simply strip ^1, ^2, ^3 and ^4 from the message right after you use read_args

proffs 07-14-2014 20:42

Re: Patch for AMX Exploit?
 
Quote:

Originally Posted by YamiKaitou (Post 2167731)
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

YamiKaitou 07-14-2014 20:44

Re: Patch for AMX Exploit?
 
Use replace_all to do the stripping.

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

proffs 07-14-2014 20:52

Re: Patch for AMX Exploit?
 
Quote:

Originally Posted by YamiKaitou (Post 2167737)
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

YamiKaitou 07-14-2014 21:04

Re: Patch for AMX Exploit?
 
No

Code:

replace_all(szMessage, iLen, "^1" "");
replace_all(szMessage, iLen, "^2" "");
replace_all(szMessage, iLen, "^3" "");
replace_all(szMessage, iLen, "^4" "");



All times are GMT -4. The time now is 21:04.

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