AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Auto ban when console prints (https://forums.alliedmods.net/showthread.php?t=207038)

Podarok 01-29-2013 00:49

Auto ban when console prints
 
Hey. Just as an example, my server console prints a message when a player levels up , it writes like that (Player '%s' reached 22 lvl, ip : 'ip adress'). How can I hook what console writes and make auto ban a certain ip , let's say, if he reaches lvl 23. (Dont tell me that i can hook levels in my lvl system etc.. I need exactly a console print hook.. and ban that exact ip) Please help

fysiks 01-29-2013 01:16

Re: Auto ban when console prints
 
Not possible.

Podarok 01-29-2013 01:42

Re: Auto ban when console prints
 
Really? This sucks much. My problem is that my server is getting attacked with Jos v2 exploit, with newest defence it doesnt crash server, but freezes it (if you spam 4-5 times in a row with jos v2, server will freeze) , thats why i wanted to ban after 1st ban. Can you help me in finding another solution?

YamiKaitou 01-29-2013 01:46

Re: Auto ban when console prints
 
Is your server up-to-date? Are you running any plugins/modules that claim to provide any sort of "protection" against anything? Have you tried banning his SteamID?

fysiks 01-29-2013 01:52

Re: Auto ban when console prints
 
Quote:

Originally Posted by Podarok (Post 1882747)
Really? This sucks much. My problem is that my server is getting attacked with Jos v2 exploit, with newest defence it doesnt crash server, but freezes it (if you spam 4-5 times in a row with jos v2, server will freeze) , thats why i wanted to ban after 1st ban. Can you help me in finding another solution?

What does any of this have to do with player levels?

Podarok 01-29-2013 01:54

Re: Auto ban when console prints
 
Yes , my server is up to date. Yes, I'm running anti jos metamod plugin, which kinda blocks this exploit and server doesnt crash, when someone uses this exploit, but , as I mentioned, if you try to spam this exploit 4-5 times in a row, server will just freeze with 100% CPU. I have not tried banning his SteamId yet, because it is pointless , i get attacked by a lot of people :D

EDIT1: @fysiks, I just mentioned it as an example, because the idea was the same : to hook console print and ban ip..

YamiKaitou 01-29-2013 02:01

Re: Auto ban when console prints
 
Valve already fixed this exploit, so your server is not up-to-date if you are still affected

simanovich 01-29-2013 04:51

Re: Auto ban when console prints
 
Update your server with hldsupdatetool

Podarok 01-29-2013 05:27

Re: Auto ban when console prints
 
It is already updated. Its new jos exploit v2, it is not fixed yet. Any help?

YamiKaitou 01-29-2013 05:39

Re: Auto ban when console prints
 
Prove it, show us the output of the following commands


rcon version
rcon status
rcon meta list
rcon amxx plugins


All times are GMT -4. The time now is 20:40.

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