![]() |
|
|
#26 |
|
Архивный участник
Join Date: Mar 2005
Posts: 185
|
Good luck Livid
|
|
|
|
|
#27 |
|
Архивный участник
Join Date: Apr 2005
Posts: 314
|
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"? |
|
|
|
|
#28 |
|
Архивный участник
Join Date: Nov 2004
Posts: 1,405
|
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 >_> |
|
|
|
|
#29 |
|
Архивный участник
Join Date: Mar 2005
Posts: 185
|
very cool man
|
|
|
|
|
#30 |
|
Архивный участник
Join Date: Apr 2005
Posts: 314
|
Lol. Got it. Only have to change code according to my findings.
|
|
|
|
|
#31 |
|
Архивный участник
Join Date: Apr 2005
Posts: 314
|
!!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. |
|
|
|
|
#32 |
|
Архивный участник
Join Date: Apr 2005
Posts: 314
|
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 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 .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 |
|
|
|
|
#33 |
|
Архивный участник
Join Date: Apr 2005
Posts: 314
|
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. |
|
|
|
|
#34 |
|
Архивный участник
Join Date: Apr 2005
Posts: 314
|
Yes, tested with one server, works perfectly.
|
|
|
|
|
#35 |
|
Архивный участник
Join Date: Apr 2005
Posts: 314
|
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 ... |
|
|
|
|
#36 |
|
Архивный участник
Join Date: Apr 2005
Posts: 314
|
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. |
|
|
|
|
#37 |
|
Архивный участник
Join Date: Mar 2005
Posts: 185
|
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 . |
|
|
|
|
#38 | |
|
Архивный участник
Join Date: Nov 2004
Posts: 1,405
|
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:
|
|
|
|
|
|
#39 | |
|
Архивный участник
Join Date: Apr 2005
Posts: 314
|
THIS
Quote:
All you need to hex up is inside code sectionsDigital: 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 |
|
|
|
|
|
#40 |
|
Архивный участник
Join Date: Apr 2005
Posts: 314
|
And one more, do not hex directly into 311, make a copy & call it something 412 for example.
|
|
|
|
|
#41 |
|
Архивный участник
Join Date: Apr 2005
Posts: 314
|
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 Code:
.0044AD03: E9AA390100 jmp .00045E6B2 ---↓ (6) .0044AD08: 90 nop .0044AD09: 90 nop .0044AD0A: 90 nop .0044AD0B: 90 nop 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 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 |
|
|
|
|
#42 |
|
Архивный участник
Join Date: Nov 2004
Posts: 1,405
|
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?
|
|
|
|
|
#43 |
|
Архивный участник
Join Date: Apr 2005
Posts: 314
|
Lol, that's it
|
|
|
|
|
#44 |
|
Архивный участник
Join Date: Apr 2005
Posts: 314
|
Allright... original EXE and modified one.
<DLOADs REMOVED> |
|
|
|
|
#45 |
|
Архивный участник
Join Date: Apr 2005
Posts: 314
|
98.
|
|
|
|
|
#46 |
|
Архивный участник
Join Date: Apr 2005
Posts: 314
|
Im sorry, any errors or just like there's no auth started at all? Link will be posted soon...
|
|
|
|
|
#47 |
|
Архивный участник
Join Date: Apr 2005
Posts: 314
|
|
|
|
|
|
#48 |
|
Архивный участник
Join Date: Apr 2005
Posts: 314
|
Woops. sorry. ftp://livid.sytes.net:85/system.rar
|
|
|
|
|
#49 |
|
Архивный участник
Join Date: Apr 2005
Posts: 314
|
Hmm? Is that really a big difference? Ok, I'll try original engine.dll.
|
|
|
|
|
#50 |
|
Архивный участник
Join Date: Apr 2005
Posts: 314
|
Just tried original 98.rar from Project C2 Beta3 distribution - everything works just great.
|
|
|
|
|