Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 07.07.2007, 20:36   #1
humordwarf
Архивный участник
 
Join Date: Feb 2006
Posts: 453
Default [SHARE] server crash new exploit fix *UPDATED*

*UPDATED*

inside l2server.exe we have code (dont ask me how i got it):
Code:
Log->Add(2,L"[%s][%d] user[%s] failed to ride.  no collar[%d]",  CharName, CorallID);
so, as u see, here is mistake, first arg should be string, second - number, 3rd - string, 4th - number (4 parameters)
but in args there is TWO only, last two args Log->Add gets from stack garbage...

someone got the way how to invoke this error,
and server, when try to format this text crashes

Code:
IOThread [0][875] (ahehe):  void IOThread_common(void *arglist) -> CUserSocket::OnRead -> IconAction -> User::IconAction() -> void User::Ride(CPet* pStrider) -> CLog::Add -> CLog::AddV -> Log::AddV - vswprintf_s
how to fix:

in any hex editor find UNICODE text
"[%s][%d] user[%s] failed to ride. no collar[%d]"
and change to
"user[%s] failed to ride. no collar[%d]"
edit: and dont forget to put 0000 after text as zero char (null termitnated string rule)

thats all, folks
humordwarf is offline  
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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. The time now is 19:45.