Posts: 951
Threads: 5
Joined: Sep 03, 2009
I was gathering some info on servers that have 33-34 max players.
Top of the list was SourceOP.
So I typed: connect 67.228.59.146:27015;wait 200;status;wait 100;disconnect
I was promptly disconnected with this message
Disconnect: Cannot run commands before entering game.
What sort of exploit is this trying to prevent?
This is purely out of curiosity.
Posts: 4,310
Threads: 64
Joined: Feb 15, 2008
a server-crashing command, what else?
derp
Posts: 951
Threads: 5
Joined: Sep 03, 2009
Hell-met Wrote:a server-crashing command, what else?
derp
Didn't know there was such thing. Surprising not more servers have this protection.
Oh, maybe a sourceop specific command, okay.
Posts: 4,310
Threads: 64
Joined: Feb 15, 2008
you can effectively run commands during the "Loading" time before you actually joined the server
Posts: 951
Threads: 5
Joined: Sep 03, 2009
Hell-met Wrote:you can effectively run commands during the "Loading" time before you actually joined the server
\
I know, but I dont see how that would allow crashing a server only between the time your connecting, and the time you receive the server CVARs
But okay that still answers my original question.
Thanks!
Posts: 5,877
Threads: 182
Joined: Dec 11, 2004
There are commands that expect the person running them to have a player entity. When you are loading, the player entity comes up null and these commands crash the server.
Also if you use the "say" command while loading, it will appear as if the message came from "Console" (the server console). So kicking players running commands while loading is also to prevent that.
Also, any server showing 34 max players is lieing as the maximum supported by the game DLLs is 33.
Posts: 1,837
Threads: 9
Joined: Oct 04, 2008
yeah that happens sometimes when I type something and hit enter just as the map changes.
Posts: 5,877
Threads: 182
Joined: Dec 11, 2004
Ya, and I was thinking of relaxing it during map changes because of that.
Posts: 951
Threads: 5
Joined: Sep 03, 2009
Drunken_F00l Wrote:There are commands that expect the person running them to have a player entity. When you are loading, the player entity comes up null and these commands crash the server.
Also if you use the "say" command while loading, it will appear as if the message came from "Console" (the server console). So kicking players running commands while loading is also to prevent that.
Okay, thanks.
Drunken_F00l Wrote:Also, any server showing 34 max players is lieing as the maximum supported by the game DLLs is 33.
I was just trying to see what would be reported in the console at connection, and when using the "status" command. I was working on the tool used to gather information for Fireflash's server blacklists.
Posts: 2,845
Threads: 103
Joined: Nov 13, 2009
Drunken_F00l Wrote:Ya, and I was thinking of relaxing it during map changes because of that.
that would be nice ive gotten booted for it many many times.