Forum

> > CS2D > General > CS2D - Lua Exploits
ForenübersichtCS2D-ÜbersichtGeneral-ÜbersichtEinloggen, um zu antworten

Englisch CS2D - Lua Exploits

22 Antworten
Seite
Zum Anfang Vorherige 1 2 Nächste Zum Anfang

alt Re: CS2D - Lua Exploits

gotya2
GAME BANNED Off Offline

Zitieren
hotfix.
replaces all ";" with "' in parse, and in player name.

1
2
3
4
5
6
7
8
addhook("join","_join")
function _join(id)	
	parse("setname "..id.." "..player(id,"name"):gsub("[;\"\']",""))
end
_parse = parse
function parse(txt)	
	_parse(txt:gsub("[;\"\']",""))
end
1× editiert, zuletzt 13.01.13 23:17:11

alt Re: CS2D - Lua Exploits

KimKat
GAME BANNED Off Offline

Zitieren
user gotya2 hat geschrieben
hotfix.
replaces all ";" with "' in parse, and in player name.

1
2
3
4
5
6
7
8
addhook("join","_join")
function _join(id)	
	parse("setname "..id.." "..player(id,"name"):gsub("[;\"\']",""))
end
_parse = parse
function parse(txt)	
	_parse(txt:gsub("[;\"\']",""))
end
Confirmed! √
This Lua script will prevent the average hacker from exploiting game servers with a direct approach Lua injection technique. I am quite sure this will prevent 75% of all Lua injections that occur in CS2D, so if you are concerned about security add this simple patch or try to implement it somehow into your RPG Lua scripts or what have you and your game server will become more or less better secured.
Zum Anfang Vorherige 1 2 Nächste Zum Anfang
Einloggen, um zu antwortenGeneral-ÜbersichtCS2D-ÜbersichtForenübersicht