![]() |
|
|
#1 |
|
Архивный участник
Join Date: Sep 2005
Posts: 32
|
loader should protect against walker
|
|
|
|
|
#2 |
|
Архивный участник
Join Date: Sep 2005
Posts: 33
|
probably works with IG walker too, most exploits like buff stacking seem to.
|
|
|
|
|
#3 |
|
Архивный участник
Join Date: Jun 2005
Posts: 82
|
Livid,
Could you tell us then what to look into to catch them? |
|
|
|
|
#4 | |
|
Архивный участник
Join Date: Apr 2005
Posts: 357
|
Quote:
avoid of using it. |
|
|
|
|
|
#5 |
|
Архивный участник
Join Date: Sep 2005
Posts: 33
|
what bug ?
|
|
|
|
|
#6 |
|
Архивный участник
Join Date: Apr 2005
Posts: 599
|
Yes, what bug?
|
|
|
|
|
#7 | |
|
Архивный участник
Join Date: May 2005
Posts: 315
|
Quote:
|
|
|
|
|
|
#8 |
|
Архивный участник
Join Date: Jun 2005
Posts: 82
|
Livid could you tell us on the server side, what we should look out for?!
|
|
|
|
|
#9 |
|
Архивный участник
Join Date: Jun 2005
Posts: 82
|
Cant we check with L2Worker in the logs in /CacheD/In for a buy/sell/trade from X player to himself?
I suppose we can Livid. |
|
|
|
|
#10 | |
|
Архивный участник
Join Date: Jul 2005
Posts: 96
|
Quote:
But I don't want to put it here 'cause it in russian. I'm to lazy to change some text ![]() Still it's not a solution. Our programmers works on hexing l2server.exe to restrict dual access and clone creation. Results are optimistic, maybe by tomorrow we will have solution, but don't think that I put it here for free. Maybe in exchange for C3 stuff... |
|
|
|
|
|
#11 |
|
Архивный участник
Join Date: Jul 2005
Posts: 96
|
Is there any other ways? There is should be only one block of code which responsible for this.
|
|
|
|
|
#12 |
|
Архивный участник
Join Date: May 2005
Posts: 109
|
This modification is my first instinct upon hearing of the exploit, and I've only tested this on my personal test server.
The following code is responsible for disconnecting both connections on a duplicate login. Code:
004668E4 8D4D B8 LEA ECX,DWORD PTR SS:[EBP-48] 004668E7 E8 E452FBFF CALL L2Server.0041BBD0 004668EC 8B88 B8190000 MOV ECX,DWORD PTR DS:[EAX+19B8] 004668F2 E8 B9FE0900 CALL L2Server.005067B0 004668F7 8D4D C0 LEA ECX,DWORD PTR SS:[EBP-40] 004668FA E8 D152FBFF CALL L2Server.0041BBD0 004668FF 8B88 B8190000 MOV ECX,DWORD PTR DS:[EAX+19B8] 00466905 E8 A6FE0900 CALL L2Server.005067B0 0046690A EB 21 JMP SHORT L2Server.0046692D Code:
LEA ECX,DWORD PTR SS:[EBP-48] CALL L2Server.0041BBD0 PUSH EAX MOV ECX,EAX CALL L2Server.004FBBA0 POP EAX MOV ECX,DWORD PTR DS:[EAX+19B8] CALL L2Server.005067B0 LEA ECX,DWORD PTR SS:[EBP-40] CALL L2Server.0041BBD0 PUSH EAX MOV ECX,EAX CALL L2Server.004FBBA0 POP EAX MOV ECX,DWORD PTR DS:[EAX+19B8] CALL L2Server.005067B0 JMP L2Server.0046692D |
|
|
|
|
#13 |
|
Архивный участник
Join Date: May 2005
Posts: 109
|
Currently when a duplicate login is detected, it closes both connections without removing the chars from the world. My modification calls the LeaveWorld member function on each char before disconnecting them.
I may post a binary fix for it later after further testing. I posted the information in the mean time since it may be of some value to people who are familiar with asm, such as yourself. |
|
|
|
|
#14 |
|
Архивный участник
Join Date: Jul 2005
Posts: 45
|
We're relying on you tontor. You're the serverside fix master so far
|
|
|
|
|
#15 |
|
Архивный участник
Join Date: Jul 2005
Posts: 96
|
Ok. We've got the fix. Already tested on several servers
![]() Don't want to post it for free, but ready to exchange for C3 stuff or... well, i guess it forbidden by forum rules ... pm me.
|
|
|
|
|
#16 |
|
Архивный участник
Join Date: Apr 2005
Posts: 314
|
Well, I just checked if there's a char loged in already... if it is - just drop *new* login packet and leave old one. It worked.
|
|
|
|
|
#17 | |
|
Архивный участник
Join Date: Oct 2005
Posts: 3
|
Quote:
... Vse rovno tvoi server kak bil ves' v dirkah tak i ostalsya :roll:
|
|
|
|
|
|
#18 |
|
Архивный участник
Join Date: May 2005
Posts: 368
|
following tontor suggestion i made this, not tested yet, correct me if i m wrong ...
(edited - wrong code) Regards
|
|
|
|
|
#19 |
|
Архивный участник
Join Date: Jul 2005
Posts: 32
|
wrong... yours patch:
.4668ef e8b4520900 call .4fbba8 but based on fix it should be: CALL L2Server.004FBBA0 or possible i dont understand the fix and this is some kind of rebasing because other call offsets are wrong too
|
|
|
|
|
#20 |
|
Архивный участник
Join Date: Jul 2005
Posts: 32
|
Oh. No, this looks like mistake...
0006690B: E8B4509000 call 00096B9C4 this call are TOTALY wrong because its out of virtual address space... |
|
|
|
|
#21 | |
|
Архивный участник
Join Date: Jul 2005
Posts: 32
|
This is it:
Quote:
|
|
|
|
|
|
#22 |
|
Архивный участник
Join Date: May 2005
Posts: 368
|
you are right tx
it would be better like that:(edited, wrong code :cry: ) |
|
|
|
|
#23 |
|
Архивный участник
Join Date: Jul 2005
Posts: 32
|
still don't tested it but all thanks goes to the patch creator - tontor.
arigato
|
|
|
|
|
#24 |
|
Архивный участник
Join Date: May 2005
Posts: 368
|
yeah me too, i ll test it tonight cause my 1st attempt was wrong and server crashed after having loadd npc-server... cu
|
|
|
|
|
#25 |
|
Архивный участник
Join Date: Jun 2005
Posts: 285
|
tested this morning - crashing after caching HTMLs, before NPC loading :\ ErrorLog will post later...
Edited: here it is Code:
Server Up Time Sat Oct 15 09:55:11 2005 Current Time : Sat Oct 15 09:57:55 2005 Elapsed Time : 0 days 0 hours 2 minutes 44 seconds IOBufferPool - 39979 [(588) 2005/10/15 09:57:55]: ======================= an Access Violation in module C3-anticlone-tp.exe at 001b:0046690e. start at 2005/10/15 09:55:04 Write to location 00000000 caused an access violation. Registers: EAX=00000000 CS=001b EIP=0046690e EFLGS=00010246 EBX=89f29117 SS=0023 ESP=7251fe34 EBP=7251fe8c ECX=7251fe80 DS=0023 ESI=788e1dfc FS=003b EDX=7c82ed54 ES=0023 EDI=89f29117 GS=0000 Bytes at CS:EIP: 09 00 58 8b 88 b8 19 00 00 e8 94 fe 09 00 eb 0f Stack dump: 7251fe34: 7c82ed54 00000000 22179770 77e6bb6d 00000000 00000000 00000000 00000019 7251fe54: 7c821ea4 77e630f6 89f29117 48100c87 00008766 00000006 00000006 00000000 7251fe74: 0000008e 00000003 7251fe38 7251feb8 005a58f0 ffffffff 7251fec4 0053adaf 7251fe94: 7870d2c4 89f290c3 026437ac 00000001 77e6bb6d 005a1550 00000057 89f290b0 7251feb4: 7251fe9c 7251fef0 005afb80 ffffffff 7251fefc 0053aed9 00000001 00000002 7251fed4: 00000000 026437ac 00000001 77e6bb6d fffacfe0 ffffffff 7251fed8 7251ff6c 7251fef4: 005afb90 ffffffff 7251ff78 0053cbe6 00000001 00000002 00000000 00000000 7251ff14: 00000000 3de22280 00000000 00001000 00010000 bffeffff 00000003 00000002 7251ff34: 0000024a 00010000 08030006 f487bc88 e0832cee fa2b8db8 00000005 00000002 7251ff54: 0004fa28 00000000 e082d821 00000000 22179770 7251ff10 7251ffa8 005afca0 ver = Jun 8 2004____15:38:30 thread id=0 void IOThread_common(void *arglist) <-- void CDBPacket::OnIOCallback(BOOL bSuccess, DWORD dwTransferred, LPOVERLAPPED lpOverlapped) <-- void CPacket::OnIOCallback(BOOL bSuccess, DWORD dwTransferred, LPOVERLAPPED lpOverlapped) <-- cpacket::oniocallback_funccall <-- static bool AquiredSkillList Thread[0] (ahehe): Lock Stack : Thread[1] (good): Lock Stack : |
|
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|