Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 04.10.2005, 19:53   #1
lerri
Архивный участник
 
Join Date: Sep 2005
Posts: 32
Default

loader should protect against walker
lerri is offline  
Old 04.10.2005, 20:34   #2
rawrz
Архивный участник
 
Join Date: Sep 2005
Posts: 33
Default

probably works with IG walker too, most exploits like buff stacking seem to.
rawrz is offline  
Old 04.10.2005, 20:41   #3
Adelaide
Архивный участник
 
Join Date: Jun 2005
Posts: 82
Default

Livid,
Could you tell us then what to look into to catch them?
Adelaide is offline  
Old 04.10.2005, 22:30   #4
RmzVoid
Архивный участник
 
Join Date: Apr 2005
Posts: 357
Default

Quote:
Originally Posted by lerri
loader should protect against walker
loader now not protection.
avoid of using it.
RmzVoid is offline  
Old 05.10.2005, 08:41   #5
melco
Архивный участник
 
Join Date: Sep 2005
Posts: 33
Default

what bug ?
melco is offline  
Old 05.10.2005, 10:07   #6
Domzelan
Архивный участник
 
Join Date: Apr 2005
Posts: 599
Default

Yes, what bug?
Domzelan is offline  
Old 05.10.2005, 10:30   #7
iamrend
Архивный участник
 
Join Date: May 2005
Posts: 315
Default

Quote:
Originally Posted by lerri
loader should protect against walker
Loader not help whit ingame bot. And once the players decryt your authkey they can use ingame boot too :?
iamrend is offline  
Old 05.10.2005, 15:16   #8
Adelaide
Архивный участник
 
Join Date: Jun 2005
Posts: 82
Default

Livid could you tell us on the server side, what we should look out for?!
Adelaide is offline  
Old 05.10.2005, 16:42   #9
Adelaide
Архивный участник
 
Join Date: Jun 2005
Posts: 82
Default

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.
Adelaide is offline  
Old 05.10.2005, 17:33   #10
lich
Архивный участник
 
Join Date: Jul 2005
Posts: 96
Default

Quote:
Originally Posted by Adelaide
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.
We can. I'm already write a small program.
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...
lich is offline  
Old 05.10.2005, 17:48   #11
lich
Архивный участник
 
Join Date: Jul 2005
Posts: 96
Default

Is there any other ways? There is should be only one block of code which responsible for this.
lich is offline  
Old 05.10.2005, 19:00   #12
tontor
Архивный участник
 
Join Date: May 2005
Posts: 109
Default

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
It should be relocated to a cave and modified to be:
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
tontor is offline  
Old 05.10.2005, 19:48   #13
tontor
Архивный участник
 
Join Date: May 2005
Posts: 109
Default

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.
tontor is offline  
Old 08.10.2005, 22:29   #14
DreadWolf
Архивный участник
 
Join Date: Jul 2005
Posts: 45
Default

We're relying on you tontor. You're the serverside fix master so far
DreadWolf is offline  
Old 09.10.2005, 03:30   #15
lich
Архивный участник
 
Join Date: Jul 2005
Posts: 96
Default

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.
lich is offline  
Old 09.10.2005, 07:45   #16
Livid
Архивный участник
 
Join Date: Apr 2005
Posts: 314
Default

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.
Livid is offline  
Old 14.10.2005, 10:28   #17
Laika
Архивный участник
 
Join Date: Oct 2005
Posts: 3
Default

Quote:
Originally Posted by lich
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.
Lich.... Rju Nemogu, ti to tut chto zabil ... Vse rovno tvoi server kak bil ves' v dirkah tak i ostalsya :roll:
Laika is offline  
Old 14.10.2005, 13:21   #18
krapno
Архивный участник
 
Join Date: May 2005
Posts: 368
Default

following tontor suggestion i made this, not tested yet, correct me if i m wrong ...

(edited - wrong code)

Regards
krapno is offline  
Old 15.10.2005, 03:39   #19
jerrymouse
Архивный участник
 
Join Date: Jul 2005
Posts: 32
Default

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
jerrymouse is offline  
Old 15.10.2005, 04:09   #20
jerrymouse
Архивный участник
 
Join Date: Jul 2005
Posts: 32
Default

Oh. No, this looks like mistake...

0006690B: E8B4509000 call 00096B9C4

this call are TOTALY wrong because its out of virtual address space...
jerrymouse is offline  
Old 15.10.2005, 04:25   #21
jerrymouse
Архивный участник
 
Join Date: Jul 2005
Posts: 32
Default

This is it:

Quote:
.004668E4: 8D4DB8 lea ecx,[ebp][-48]
.004668E7: E8E452FBFF call .00041BBD0 --- (1)
.004668EC: 50 push eax
.004668ED: 8BC8 mov ecx,eax
.004668EF: E8AC520900 call .0004FBBA0 --- (2)
.004668F4: 58 pop eax
.004668F5: 8B88B8190000 mov ecx,[eax][000019B8]
.004668FB: E8B0FE0900 call .0005067B0 --- (3)
.00466900: 8D4DC0 lea ecx,[ebp][-40]
.00466903: E8C852FBFF call .00041BBD0 --- (4)
.00466908: 50 push eax
.00466909: 8BC8 mov ecx,eax
.0046690B: E890520900 call .0004FBBA0 --- (5)
.00466910: 58 pop eax
.00466911: 8B88B8190000 mov ecx,[eax][000019B8]
.00466917: E894FE0900 call .0005067B0 --- (6)
.0046691C: EB0F jmps .00046692D --- (7)
jerrymouse is offline  
Old 15.10.2005, 06:11   #22
krapno
Архивный участник
 
Join Date: May 2005
Posts: 368
Default

you are right tx it would be better like that:

(edited, wrong code :cry: )
krapno is offline  
Old 15.10.2005, 06:51   #23
jerrymouse
Архивный участник
 
Join Date: Jul 2005
Posts: 32
Default

still don't tested it but all thanks goes to the patch creator - tontor.
arigato
jerrymouse is offline  
Old 15.10.2005, 11:43   #24
krapno
Архивный участник
 
Join Date: May 2005
Posts: 368
Default

yeah me too, i ll test it tonight cause my 1st attempt was wrong and server crashed after having loadd npc-server... cu
krapno is offline  
Old 15.10.2005, 14:59   #25
hr
Архивный участник
 
Join Date: Jun 2005
Posts: 285
Default

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  :
hr is offline  
 


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 15:38.