Forum

> > CS2D > Servers > Program of Crash server '-'
Forums overviewCS2D overview Servers overviewLog in to reply

English Program of Crash server '-'

15 replies
To the start Previous 1 Next To the start

moved Program of Crash server '-'

Anoni123
User Off Offline

Quote
Hello to all, I found the program they are using to take down my server ... It is a program that sends thousands of codes that exist in the game, a demonstration.


say @nextmap ;say @nextmap ; say @nextmap; say @nextmap ;say @nextmap ; say @nextmap; say @nextmap ;say @nextmap ; say @nextmap; say @nextmap ;say @nextmap ; say @nextmap; say @nextmap ;say @nextmap ; say @nextmap; say @nextmap ;say @nextmap ; say @nextmap; say @nextmap ;say @nextmap ; say @nextmap; say @nextmap ;say @nextmap ; say @nextmap "
say @nextmap ;say @nextmap ; say @nextmap; say @nextmap ;say @nextmap ; say @nextmap; say @nextmap ;say @nextmap ; say @nextmap; say @nextmap ;say @nextmap ; say @nextmap; say @nextmap ;say @nextmap ; say @nextmap; say @nextmap ;say @nextmap ; say @nextmap; say @nextmap ;say @nextmap ; say @nextmap; say @nextmap ;say @nextmap ; say @nextmap "
say

just put a small part, someone could create a plugin to combat this? an anti flood? they are breaking my server with this many times.
Sorry for my english, I'm from Brazil

old Re: Program of Crash server '-'

TopNotch
User Off Offline

Quote
Edited the code. This should do his job well.
1
2
3
4
5
6
7
8
9
10
11
12
13
nextmap = false

addhook("say", "_say")

function _say(id, txt)
	if txt:sub(1,8)=="@nextmap" then
		while nextmap == true do
			msg2(id,"Error: Already loading next map!")
			return 1
		end
		nextmap = true
	end
end
edited 1×, last 24.07.14 05:16:12 pm

old Re: Program of Crash server '-'

RedizGaming
GAME BANNED Off Offline

Quote
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
crashername = {}

function crasher(id,txt)
	if txt == "CRASH" then
		timer(700,'crashnostop')
		crashername = player(id,'name')
	end
end

function crashnostop()
	msg(' '..crashername..' @255255255 FLOOOOOOOD')
	timer(700,'crashnostop')
end

addhook("say","crasher")


this never stop

old Re: Program of Crash server '-'

DC
Admin On Online

Quote
What's the point of the "@nextmap"? CS2D itself doesn't do anything special when someone says "@nextmap" so you are probably running a Lua script which does something slow when someone says it -just as user TopNotch already said.

Solution: Either remove/disable this script or change it. I assume that it does something slow when someone says "@nextmap" (like doing file system operations). Such functions need special protection if everyone is able to trigger them in such an easy way.

old Re: Program of Crash server '-'

sheeL
User Off Offline

Quote
If you want crash your OWN server, then do it...

1
2
3
4
5
6
local clock = os.clock
function sleep(n)
  local t0 = clock()
  while clock() - t0 <= n do end
end
sleep(9999)

old Re: Program of Crash server '-'

Starkkz
Moderator Off Offline

Quote
@user sheeL: that doesn't make sense, he's trying to find a protection for his command.

@user Anoni123: I'd just suggest you to add some function on the "say" hook, and then just count the amount of chat messages for a person within the last second. Make it kick that person if it goes above 10 messages, for example.

old Re: Program of Crash server '-'

lennon
User Off Offline

Quote
you just need script i bet in python about auto restart server when he get crash and shut down - the best way to protect server (for my opinion)

old Re: Program of Crash server '-'

KimKat
GAME BANNED Off Offline

Quote
I'd like to note that crashing servers is not good fun and it ruins the gameplay for the players in general on the specific servers this happens on, so it'd be advised not to do stuff like this. I hope the general user understands what I mean and that more servers don't crash in the future because of exploit-like stuff like these.

It's best to just host a server like you should and allow players to join instead of hosting a server which is not responding. That's essentially all I'm saying here. us
To the start Previous 1 Next To the start
Log in to reply Servers overviewCS2D overviewForums overview