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

VAC Ban Status


Post New Thread Reply   
 
Thread Tools Display Modes
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 01-27-2009 , 11:20   Re: VAC Ban Status
Reply With Quote #11

Yes, they work on single characters.
__________________
Brad is offline
danielkza
AMX Mod X Plugin Approver
Join Date: May 2007
Location: São Paulo - Brasil
Old 01-27-2009 , 11:35   Re: VAC Ban Status
Reply With Quote #12

Quote:
Originally Posted by Brad View Post
Yes, they work on single characters.
I don't think so, str_to_num takes an array, not a single chars as parameter.

And the reason I used this is that I'm manually copying every converted char to a single array element. If using str_to_num, I'd have to make a 2-element array, and just read the first one, and call a native and go all the way back to the VM again.

EDIT: A little optimization if you guys prefere it:
PHP Code:
num_to_char(num)
{
    if(
num || num 9)
        return 
'^0'

    
return('0' num)
}

char_to_num(char)
{
    if(
char '0' || char '9')
        return 
0
    
    
return (char '0')

__________________

Community / No support through PM

Last edited by danielkza; 01-27-2009 at 11:43.
danielkza is offline
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 01-27-2009 , 11:48   Re: VAC Ban Status
Reply With Quote #13

I am almost positive that replacing every function call of char_to_num with str_to_num would work. Don't have the time currently to do a test, however. If someone else does, I'd be more than happy to accept defeat if I'm wrong.
__________________
Brad is offline
danielkza
AMX Mod X Plugin Approver
Join Date: May 2007
Location: São Paulo - Brasil
Old 01-27-2009 , 12:25   Re: VAC Ban Status
Reply With Quote #14

Quote:
Originally Posted by Brad View Post
I am almost positive that replacing every function call of char_to_num with str_to_num would work. Don't have the time currently to do a test, however. If someone else does, I'd be more than happy to accept defeat if I'm wrong.
It won't even compile, str_to_num takes an array, not a single char.
__________________

Community / No support through PM
danielkza is offline
endeffects
Senior Member
Join Date: Nov 2007
Old 01-27-2009 , 17:32   Re: VAC Ban Status
Reply With Quote #15

really nice idea bugsy, a vac status check on connect would be really helpfull.

for some better results i've ran a mass lookup for all players connected
to my vac2 secured servers for the last few days, to see how usefull such a check is.

checked steam ids: 21360
steam ids with vac bans: 258
average ratio: 1,2%

thats alot from my point of view, for 100 players
at least one cheater connects to the server.

i have attached the list of vac bans for testing purpose.
Attached Files
File Type: txt vac_ban_list.txt (18.2 KB, 392 views)
__________________
Get rid of all these fake, spam, redirect servers
on your steam server list!

Last edited by endeffects; 01-27-2009 at 17:37.
endeffects is offline
Reaper2331
Veteran Member
Join Date: Nov 2006
Location: Columbus,Ohio
Old 01-27-2009 , 18:33   Re: VAC Ban Status
Reply With Quote #16

Quote:
Originally Posted by Brad View Post
Thus, isn't this only useful for non-steam?
how would this be useful for non-steam, with non-steam they dont have a Steam ID Thus this plugin wouldnt work anyway. but as stated if you are banned from Source you are not banned via the HL Engine.
__________________

Reaper2331 is offline
Send a message via AIM to Reaper2331 Send a message via MSN to Reaper2331 Send a message via Yahoo to Reaper2331
ToXedVirus
Member
Join Date: Mar 2007
Old 01-27-2009 , 19:06   Re: VAC Ban Status
Reply With Quote #17

The idea of this is nice.
The only thing i want to know is, were i can retrieve the information,
i mean, by looking into your code i see that you are getting everything from the site, i tried to lookup with my browser steamcommunity.com/profiles/toxedvirus?xml=1 and it doesnt work. Could you please explain how your plugin works?
ToXedVirus is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 01-27-2009 , 21:46   Re: VAC Ban Status
Reply With Quote #18

I did some work on it tonight. I added an auto-check option that will check players as they connect (can be enabled\disabled via cvar). If detected you can apply kick, kick & ban, kick by kill\death ratio, shoot-blanks, or just log\notify-admin punishment. For the kick by kill\death ratio option, it will not kick the player until the ratio is met. Does anyone have any suggestions or requests? I would like to add SQL support so that regulars do not get re-checked every time they connect. I will probably make their SQL entry expire every 2 weeks or so.

Quote:
Originally Posted by ToXedVirus View Post
The idea of this is nice.
The only thing i want to know is, were i can retrieve the information,
i mean, by looking into your code i see that you are getting everything from the site, i tried to lookup with my browser steamcommunity.com/profiles/toxedvirus?xml=1 and it doesnt work. Could you please explain how your plugin works?
First you need to convert the steam-id to steam community id. Once that is done you send a HTTP request with the steam community id.

STEAM_0:1:1007, community-id is 76561197960267743

http://steamcommunity.com/profiles/76561197960265968

Sometimes the above request will return whether the player is VAC banned or not, but in some cases, a reply is sent from the server referring you to a URL with the players steam community name.

For the above steamid, it returns the following HTTP packet:

Code:
HTTP/1.1 302 Found
Date: Tue, 27 Jan 2009 03:32:13 GMT
Server: Apache/2.2.3 (Debian) mod_ssl/2.2.3 OpenSSL/0.9.8c
Expires: Mon, 26 Jul 1997 05:00:00 GMT
Cache-Control: no-cache
Pragma: no-cache
Location: http://steamcommunity.com/id/kamekazika/
Content-Length: 0
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Content-Type: text/html; charset=UTF-8
From this packet, you parse the location link http://steamcommunity.com/id/kamekazika/ and request it. This link will contain the VAC ban status.
__________________

Last edited by Bugsy; 01-27-2009 at 21:55.
Bugsy is offline
diamond-optic
Veteran Member
Join Date: May 2005
Location: Upstate New York
Old 01-28-2009 , 19:40   Re: VAC Ban Status
Reply With Quote #19

when i try this out on myself... i just get the
"[VAC Ban Status] Checking..etc etc" console msg.. then nothing more seems to happen (aside from a slight stutter when i use the command)

DoD 1.3
AMXX 1.8.1.3746
__________________

Last edited by diamond-optic; 01-28-2009 at 19:43.
diamond-optic is offline
Send a message via AIM to diamond-optic
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 01-28-2009 , 21:34   Re: VAC Ban Status
Reply With Quote #20

Quote:
Originally Posted by diamond-optic View Post
when i try this out on myself... i just get the
"[VAC Ban Status] Checking..etc etc" console msg.. then nothing more seems to happen (aside from a slight stutter when i use the command)

DoD 1.3
AMXX 1.8.1.3746
I have to do more research because I think there are more return values from the server that need to be handled. I will experiment with random steam id's to try to discover more.

Edit: If you have a minute, can you please log the incoming packet data for me and post it so I can see the servers response?

Put the below directly under the socket_recv line.
log_amx( "%s" , szData );
__________________

Last edited by Bugsy; 01-29-2009 at 01:02.
Bugsy is offline
Reply


Thread Tools
Display Modes

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 14:46.


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