![]() |
Well I agree it's better than nothing. Not arguing here at all.
|
Quote:
/rus пох что могут зайти на акк и посмотреть че там есть, сделать-то ниче не смогут. а это главное, имхо. будем ждать когда появится полноценный фикс /rus |
Alamar, а вот это я думаю смогут. Зайти в мир только не смогут :)
2All, When hacker enter account, they cannot enter game, but can delete characters? or not? i'm stuck :P |
yes, thy can. but only chars with builder>0, chars with builder=0 must wait 7 days before deleted.
/rus: удалить могут, только опасно это для админских акков - т.к. удаляются сразу же, а у простого игрока - неделю сидеть будет еще на удаление... а можно попробывать проверку забубенить и в процедуру которая удаляет чара... |
Quote:
|
Quote:
|
Quote:
Relogin would not be affected because it's just setting the flag when you login. Additionally you could add a date column to the flag and check it as well and make sure it isn't 'stale' Again, this isn't a fix, it's just something temporary until we can get something better. Hopefully one of these guys that knows how to dll inject will be kind enough to help us out. If I knew something, about it I'd gladly write it, but the most programming exp i have is in VB. And it's with relational databases, not anything where i had to attach to a process and inject anything. |
injecting dlls is easy as pie but coding in assembly isnt. 64 bit = even tougher . for me atleast.. anyways.. it will be fixed eventually. just dont pass the exploit around..to everyone that asks for how to do it..
|
2 .... (but in console Authd: "Fetch error -1" when login).
Replace (in authd.exe): SELECT user_data FROM user_data WITH (nolock) WHERE uid = %d => EXEC ap_Online %d Code:
CREATE PROCEDURE [dbo].[ap_Online] 3. ...thats all. if you can optimized it and/or can add some stuff for it, or you known how to do this better => plz post it there! allow using xp_cmdshell is a big security hole, use mssql external proc Code:
exec sp_l2kick @char_idВложения из исходного сообщения (сами файлы в копии отсутствуют): sp_l2kick.zip — 1782 байт |
Quote:
and as for the sql version of this fix.. there is no 100% secure way to make it work, the online thing is a cool concept but its all dependant on if it does write online = 0 when you log out, otherwise mr sploiter will still be able to access the acc... also you can still harrass gms/players with this exploit by kicking them off their acc, even though you cant login people will still be stupid enough to go and kick people off, send them ss' of their char select and say like "omg i hacked you, give me this or i will steal everything", and idiots will fall for it... imo best way to deal with this is to stop the injecting of the malformed packet... |
Set login=0 when any char of logged account enters the world, plus set job to set login=0 every xx minutes for all accounts. This way Restart function of client won't work... but well, can't have everything.
|
thats retarded, how many people are gonna wanna play a server that u have to completely relog every time u wanna change chars? considering theres like 4 servers now that have actual fixes that dont suck me thinks ideas like this will make ur players go elsewhere.
|
you could use a "date" field instead of a integer.
update that field with NOW() when loggin correctly. (i dont remember the stored procedure that excecute when login). check for time difference at the time to take characters. if (field.time > 5 seconds) then, return char_id = -1 otherwise, give it the correct char_ids This way, u dont want to bother for updating to 0. Time is always running. What u think? I would to the change in this procedure: lin_GetCharByAccountId Why to give char_ids to someone who we dont know if is the owner? check first for that. Check too, at the time to create a new char. |
Quote:
also on char logout you can set the auth login flag again, that would allow another 30 seconds for them to choose a character, no restart required. I'm going to package what i did here as soon as i can to make it easier on peeps, unless someone wants to share the dll fix.. |
Here's AuthD that calls ap_Online
you must have the following set in your config.txt: UserData=True http://www.2shared.com/file/1836692/...5/L2AuthD.html http://rapidshare.com/files/25634619/L2AuthD.rar.html |
can someone help me out with the sp_l2kick.dll?
I've never loaded Extended Proceedures into SQL before. I tried the following: sp_addextendedproc 'sp_l2kick', 'c:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn\sp_l2kick.dll' but when i try to run the command it pukes with this message: Msg 17750, Level 16, State 0, Procedure sp_l2kick, Line 1 Could not load the DLL c:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn\sp_l2kick.dll, or one of the DLLs it references. Reason: 193(%1 is not a valid Win32 application.). Will this work in SQL Server 2K5? |
Quote:
sp_addextendedproc 'sp_l2kick', 'sp_l2kick.dll' |
Quote:
|
Quote:
Quote:
You still need to actually create the function in the database. |
-sky-, Good work, are you can share dll sources? Please :)
|
Ok.
Here's what i did. First, modify your USER_ACCOUNT table in lin2db. Add a column 'auth_login' as datetime create the following stored proc in lin2db [lin2db].[dbo].[ap_Online] Code:
set ANSI_NULLS ON[lin2world].[dbo].[lin_CharLogin] Code:
ALTER PROCEDURE [dbo].[lin_CharLogin][lin2world].[dbo].[lin_CharLogout] Code:
ALTER PROCEDURE [dbo].[lin_CharLogout]kick.php Code:
<?phpthat should about cover it. you must have the following set in your config.txt: UserData=True http://www.2shared.com/file/1836692/...5/L2AuthD.html http://rapidshare.com/files/25634619/L2AuthD.rar.html |
MY question is
We can prevent them to give Chars Information giving them back fake chars_id if we detect the exploit?
lin_GetCharsByAccountID is not the procedure that give to server the chars owned by an account ? if we modify that procedure checking for auth_login date, we can send them back fake chars_ids . isnt it?? |
the proc lin_GetCharsByAccountID doesn't seems to have any effect i change it and also temporary delete it and there wasn't any changes so this is no the proc that give out the informations for the accounts/char
i found the correct proc: lin_LoadAccount I would also like to give here a solution but I can't test my solution at the moment because I don't know how the exploit works so when someone can send me a PM how the exploit works I would be very happy |
Quote:
The exploit give you access to the "charSelect" screen, so that means that server have to look for all chars in that account. If you say lin_LoadAccount is the one in charge of that, then modifying it and checking about account's owner, will deny exploiters to access to the account characters. |
Quote:
useless proc... cached store account info and use lin_LoadAccount only once... |
Sky, you can share dll sources?
I want change cached ip address. Plzz)) |
Quote:
No more ideas. |
but if we use lin_GetUnreadMailCount instead of lin_LoadAccount ?
|
Quote:
lin_GetUnreadMailCount isnt cached (i think, i dont check it, I only try to use the logic) |
well guyz can any1 inform me about this well-said exploit and hgow exactly it works????if ya try to stop it y are you afraid of sharing it?
anyway ty and hope i can help u anyway |
Quote:
|
Quote:
|
well i would also like to knwo how this thing works pals ;)
|
Quote:
|
lol... Script kiddies for those lose?
|
A pm:
Quote:
oLOLOLOLOLOLlolooolOOOLOL. sorry, couldn't stop myself =x And to think someone like Anarchy helps ppl like these in maxbastards...what the fuck was he thinking? -_- rofl..anyways, back to looking at gibberish codes.. |
i think he sent everyone a pm like that i got one to LMAO
|
Is there possibility to close this forum for unlogged users?
|
Quote:
|
I for......
|
| All times are GMT. The time now is 16:32. |