Post Pacific  

Go Back   Post Pacific > Lineage 2 > Lineage 2 Help
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 30.04.2005, 18:35   #26
lamnh
Архивный участник
 
Join Date: Mar 2005
Posts: 185
Default

Good luck Livid
lamnh is offline  
Old 01.05.2005, 18:45   #27
Livid
Архивный участник
 
Join Date: Apr 2005
Posts: 314
Default

Some new clues...
al seems to contain protocol ID or smth like that.
What I found out, there is no such thing as new protocol implemented in patched 411 authd. Well, actually authd411 is more likely workaround than a solvation.
Shrugs... It is more work than I expected. All right, may be by the end of the week i'll get it to work. Or should I say "by the end of the month"?
Livid is offline  
Old 01.05.2005, 20:33   #28
Digital
Архивный участник
 
Join Date: Nov 2004
Posts: 1,405
Default

lol.. dun worry abt it..

on a side note....
i've just completed and handed in my assignment...
after spending 4 days non stop, wacking 4328 lines of code
and non-stop debugging...
also many big thxs to ultra super duper caffinated coffee and super duper size me up mcdonals meals to complete the feat.

ok.. it's 4:47am i'm to bed >_>
Digital is offline  
Old 01.05.2005, 21:17   #29
lamnh
Архивный участник
 
Join Date: Mar 2005
Posts: 185
Default

very cool man
lamnh is offline  
Old 02.05.2005, 15:00   #30
Livid
Архивный участник
 
Join Date: Apr 2005
Posts: 314
Default

Lol. Got it. Only have to change code according to my findings.
Livid is offline  
Old 02.05.2005, 19:21   #31
Livid
Архивный участник
 
Join Date: Apr 2005
Posts: 314
Default

!!WARNING!! THIS IS NOT A SOLUTION, THIS IS WORKAROUND!!
First of all, main idea.
0044AD03 F3A5 REP MOVS DWORD PTR ES:[EDI],DWORD PTR DS:[ESI]
which actually copies packet data from somewhere to WSAsend buffer (sorry for rough explanation, if u want better one, debug this shit yourself)

Here is packet format (there are some uncertain points...)
2D - packet size
00 04 02 01 - header (dunno, can be also 00 04 02 02)
01 - server id
0A 00 04 01 - outer IP (10.0.4.1 here)
61 1E - port (7777 here)
00 00 00 01 00 - something . I think it is various stuff like agelimit, pk etc - have no need to get into.
00 00 00 00 - status, ping (in this case down, 9999ms)
01 00 00 00 - kind (1)
02 - server number
...

And what do stupid client expect:
...
01 00 00 00 00 - kind (1)
02 - server number
...

So, we just need to add extra 00 and we're done. The problem is that part of code is used not only to copy packet data, but also to print strings into the log (shrugs...) ok, we'll just need a selector.
Normal solution would include adding a bunch of code, modifying data tables etc etc. I have no intention to do it. If you wish - please.

What we actually need to change will be posted soon.
Livid is offline  
Old 02.05.2005, 19:41   #32
Livid
Архивный участник
 
Join Date: Apr 2005
Posts: 314
Default

Ok, as I promised earlier.
Code:
CHANGE
.0044AD03: F3A5                         repe        movsd
.0044AD05: FF249518AE4400               jmp         d,[0044AE18][edx]*4

to

.0044AD03: E9AA390100                   jmp        .00045E6B2  ---↓ (6)
.0044AD08: 90                           nop
.0044AD09: 90                           nop
.0044AD0A: 90                           nop
.0044AD0B: 90                           nop
Dun worry, hiew sometimes gives some error, specifficaly when trying to asm repe & jmp d,[0044AE18][edx]*4 - just hex it in.

And what do we have at 00045E6B2
Code:
.0045E6B2: 807E0204                     cmp         b,[esi][02],004 ;"♦"
.0045E6B6: 90                           nop
.0045E6B7: 90                           nop
.0045E6B8: 90                           nop
.0045E6B9: 7409                         je         .00045E6C4  ---↓ (1)
.0045E6BB: F3A5                         repe        movsd
.0045E6BD: FF249518AE4400               jmp         d,[0044AE18][edx]*4
.0045E6C4: 6649                         dec         cx
.0045E6C6: 668BC1                       mov         ax,cx
.0045E6C9: B505                         mov         ch,005 ;"♣"
.0045E6CB: F6F5                         div         ch
.0045E6CD: 0006                         add         [esi],al
.0045E6CF: A4                           movsb
.0045E6D0: A5                           movsd
.0045E6D1: 66B90500                     mov         cx,00005 ;" ♣"
.0045E6D5: F3A5                         repe        movsd
.0045E6D7: C60700                       mov         b,[edi],000
.0045E6DA: 47                           inc         edi
.0045E6DB: FEC8                         dec         al
.0045E6DD: 3C00                         cmp         al,000
.0045E6DF: 7FF0                         jg         .00045E6D1  ---↑ (2)
.0045E6E1: FF249518AE4400               jmp         d,[0044AE18][edx]*4
this nops
.0045E6B6: 90 nop
.0045E6B7: 90 nop
.0045E6B8: 90 nop
are certainly not needed, remove them if you wish. I'm gonna change
.0045E6B2: 807E0204 cmp b,[esi][02],004 ;"♦"
a little later, so I need some extra space.
I think that's all. I changed some other things a bit, but it has no link to this code.
And, one more. I recommend you to take AuthD311 as a base. If you follow this recomendation, you will also need to change following:
Code:
.00438E11: B003                         mov         al,003 ;"♥"
.00438E13: 8885C0F7FFFF                 mov         [ebp][-00000840],al
.00438E19: 0FBE85C0F7FFFF               movsx       eax,b,[ebp][-00000840]
.00438E20: 90                           nop
.00438E21: 90                           nop
.00438E22: 90                           nop
Compare to original and you will understand what does it mean (I hope)
Livid is offline  
Old 02.05.2005, 19:43   #33
Livid
Архивный участник
 
Join Date: Apr 2005
Posts: 314
Default

Oh, almost forgot. I tested it for two & three servers. Should work also for one
Theoretically, it will handle up to 200 servers... but i'm not shure about it.
UPDATED: reread the code... Maximum is 12 servers. Thatts because I assumed that maximal packet length is 255... when it is 65535... So, basically few changes are needed. 'll post 'em later. may be.
Livid is offline  
Old 02.05.2005, 19:57   #34
Livid
Архивный участник
 
Join Date: Apr 2005
Posts: 314
Default

Yes, tested with one server, works perfectly.
Livid is offline  
Old 02.05.2005, 23:30   #35
Livid
Архивный участник
 
Join Date: Apr 2005
Posts: 314
Default

Small revision on packet struct.
2D 00 - packet size = 20*N+5 where N is number of servers.
04 02 - header
01 - primary server
01 - server id
0A 00 04 01 - outer IP (10.0.4.1 here)
61 1E - port (7777 here)
00 00 00 01 00 - smth
00 00 00 00 - status, ping
01 00 00 00 - kind (1)
02 - server number
...
Livid is offline  
Old 02.05.2005, 23:38   #36
Livid
Архивный участник
 
Join Date: Apr 2005
Posts: 314
Default

According to this above info,
.0045E6CF: A4 movsb
.0045E6D0: A5 movsd
would rather be
.0045E6CF: A5 movsd
.0045E6D0: A4 movsb
but it actually doesn't matter. So, it will work with N>12
p.s. sorry for flooding... But it's already 3:37 am on the clock... I feel laggy..... well... think i gotta goto sleep.
Livid is offline  
Old 03.05.2005, 02:38   #37
lamnh
Архивный участник
 
Join Date: Mar 2005
Posts: 185
Default

AnyOne want SoftIce can download here , include crack .

http://s31.yousendit.com/d.aspx?id=2...81YAJNN23CVAD2

So, Livid THX a lot abt ur hard work . And have I hex step by step like this ? :

2D 00 - packet size = 20*N+5 where N is number of servers.
04 02 - header
01 - primary server
01 - server id
0A 00 04 01 - outer IP (10.0.4.1 here) have I put WAN ip here ? or host here? or only my LAN ip?
61 1E - port (7777 here)
00 00 00 01 00 - smth
00 00 00 00 - status, ping (leave this alone ?)
01 00 00 00 - kind (1)
02 - server number



.0045E6CF: A5 movsd
.0045E6D0: A4 movsb

THX .
lamnh is offline  
Old 03.05.2005, 04:53   #38
Digital
Архивный участник
 
Join Date: Nov 2004
Posts: 1,405
Default

livid... i'm lost with the last part... lol
what is this suppose to do again? so if we are not using 311 we dun have to do this step?
and all ur code is to work on authd311 i take it?
cuz i wasnt able to find the same code using c2server_xx (411)
well.. most of us are using this as a base copy to hex stuff into lol..

Quote:
I think that's all. I changed some other things a bit, but it has no link to this code.
And, one more. I recommend you to take AuthD311 as a base. If you follow this recomendation, you will also need to change following:

Code:
.00438E11: B003 mov al,003 ;"♥"
.00438E13: 8885C0F7FFFF mov [ebp][-00000840],al
.00438E19: 0FBE85C0F7FFFF movsx eax,b,[ebp][-00000840]
.00438E20: 90 nop
.00438E21: 90 nop
.00438E22: 90 nop
Digital is offline  
Old 03.05.2005, 06:38   #39
Livid
Архивный участник
 
Join Date: Apr 2005
Posts: 314
Default

THIS
Quote:
2D 00 - packet size = 20*N+5 where N is number of servers.
04 02 - header
01 - primary server
01 - server id
0A 00 04 01 - outer IP (10.0.4.1 here) have I put WAN ip here ? or host here? or only my LAN ip?
61 1E - port (7777 here)
00 00 00 01 00 - smth
00 00 00 00 - status, ping (leave this alone ?)
01 00 00 00 - kind (1)
02 - server number
is just information. You don't need to hex it All you need to hex up is inside code sections

Digital: quoted code is shamelessly "borrowed" from 411 auth. Well, 411 is abit crappy, so I changed 311. Oh, thx for reminding. One more to hex in 311...
Code:
.0046C6B0:  5B 34 31 39-5D 39 34 2D-33 31 3D 3D-2D 25 26 40 
.0046C6C0:  33 5E 2B 5D
Of course you can use 411. But i didnt test it.
Livid is offline  
Old 03.05.2005, 06:55   #40
Livid
Архивный участник
 
Join Date: Apr 2005
Posts: 314
Default

And one more, do not hex directly into 311, make a copy & call it something 412 for example.
Livid is offline  
Old 03.05.2005, 07:49   #41
Livid
Архивный участник
 
Join Date: Apr 2005
Posts: 314
Default

Ok, lol, complete final etc changelist for AuthD411 (just tested it, works fine)
1)
BEFORE:
Code:
.0044AD03: F3A5                         repe        movsd
.0044AD05: FF249518AE4400               jmp         d,[0044AE18][edx]*4
AFTER:
Code:
.0044AD03: E9AA390100                   jmp        .00045E6B2  ---↓ (6)
.0044AD08: 90                           nop
.0044AD09: 90                           nop
.0044AD0A: 90                           nop
.0044AD0B: 90                           nop
2)
BEFORE:
Code:
.0045E6B2: 0000                         add         [eax],al
.0045E6B4: 0000                         add         [eax],al
.0045E6B6: 0000                         add         [eax],al
.0045E6B8: 0000                         add         [eax],al
.0045E6BA: 0000                         add         [eax],al
.0045E6BC: 0000                         add         [eax],al
.0045E6BE: 0000                         add         [eax],al
.0045E6C0: 0000                         add         [eax],al
.0045E6C2: 0000                         add         [eax],al
.0045E6C4: 0000                         add         [eax],al
.0045E6C6: 0000                         add         [eax],al
.0045E6C8: 0000                         add         [eax],al
.0045E6CA: 0000                         add         [eax],al
.0045E6CC: 0000                         add         [eax],al
.0045E6CE: 0000                         add         [eax],al
.0045E6D0: 0000                         add         [eax],al
.0045E6D2: 0000                         add         [eax],al
.0045E6D4: 0000                         add         [eax],al
.0045E6D6: 0000                         add         [eax],al
.0045E6D8: 0000                         add         [eax],al
.0045E6DA: 0000                         add         [eax],al
.0045E6DC: 0000                         add         [eax],al
.0045E6DE: 0000                         add         [eax],al
.0045E6E0: 0000                         add         [eax],al
.0045E6E2: 0000                         add         [eax],al
.0045E6E4: 0000                         add         [eax],al
.0045E6E6: 00
AFTER:
Code:
.0045E6B2: 66817E020402                 cmp         w,[esi][02],00204 ;"☻♦"
.0045E6B8: 7409                         je         .00045E6C3  ---↓ (1)
.0045E6BA: F3A5                         repe        movsd
.0045E6BC: FF249518AE4400               jmp         d,[0044AE18][edx]*4
.0045E6C3: 6649                         dec         cx
.0045E6C5: 668BC1                       mov         ax,cx
.0045E6C8: B505                         mov         ch,005 ;"♣"
.0045E6CA: F6F5                         div         ch
.0045E6CC: 0006                         add         [esi],al
.0045E6CE: A5                           movsd
.0045E6CF: A4                           movsb
.0045E6D0: 66B90500                     mov         cx,00005 ;" ♣"
.0045E6D4: F3A5                         repe        movsd
.0045E6D6: C60700                       mov         b,[edi],000
.0045E6D9: 47                           inc         edi
.0045E6DA: FEC8                         dec         al
.0045E6DC: 3C00                         cmp         al,000
.0045E6DE: 7FF0                         jg         .00045E6D0  ---↑ (2)
.0045E6E0: FF249518AE4400               jmp         d,[0044AE18][edx]*4
Livid is offline  
Old 03.05.2005, 08:04   #42
Digital
Архивный участник
 
Join Date: Nov 2004
Posts: 1,405
Default

ok.. only one thing to say.
livid is a genius! lol..

so the whole problem was regarding the missing 00 at the end of the packet? is that right?
Digital is offline  
Old 03.05.2005, 08:09   #43
Livid
Архивный участник
 
Join Date: Apr 2005
Posts: 314
Default

Lol, that's it
Livid is offline  
Old 03.05.2005, 15:01   #44
Livid
Архивный участник
 
Join Date: Apr 2005
Posts: 314
Default

Allright... original EXE and modified one.
<DLOADs REMOVED>
Livid is offline  
Old 03.05.2005, 15:17   #45
Livid
Архивный участник
 
Join Date: Apr 2005
Posts: 314
Default

98.
Livid is offline  
Old 03.05.2005, 15:23   #46
Livid
Архивный участник
 
Join Date: Apr 2005
Posts: 314
Default

Im sorry, any errors or just like there's no auth started at all? Link will be posted soon...
Livid is offline  
Old 03.05.2005, 15:33   #47
Livid
Архивный участник
 
Join Date: Apr 2005
Posts: 314
Default

http://livid.sytes.net:85/system.rar
Livid is offline  
Old 03.05.2005, 15:46   #48
Livid
Архивный участник
 
Join Date: Apr 2005
Posts: 314
Default

Woops. sorry. ftp://livid.sytes.net:85/system.rar
Livid is offline  
Old 03.05.2005, 16:49   #49
Livid
Архивный участник
 
Join Date: Apr 2005
Posts: 314
Default

Hmm? Is that really a big difference? Ok, I'll try original engine.dll.
Livid is offline  
Old 03.05.2005, 16:56   #50
Livid
Архивный участник
 
Join Date: Apr 2005
Posts: 314
Default

Just tried original 98.rar from Project C2 Beta3 distribution - everything works just great.
Livid 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 23:48.