Post Pacific

Post Pacific (https://postpacific.mmorpg-game.online/index.php)
-   Tutorials & Guides (https://postpacific.mmorpg-game.online/forumdisplay.php?f=44)
-   -   [Share] server side html exploit fix, cloning char fix (https://postpacific.mmorpg-game.online/showthread.php?t=2152)

hamidouch 04.12.2005 19:14

new way to dupe by multi trading on same char.....

Mirror 04.12.2005 21:08

don't say so much in public topics hamidouch...for community's sake..:) not only server admins and developers watch these forums....
btw, any idea on how to prevent it?

tontor 04.12.2005 21:15

Quote:

Originally Posted by hamidouch
new way to dupe by multi trading on same char.....

Known, pretty good idea where problem is, but havn't had time to duplicate the process. if you can provide me with a method to do it, I can provide a fix for it quicker. Sorry havn't had much time for working on this project latley.

avatard 04.12.2005 21:16

only crashed with my executable with the following linerror which I suspect has to do with my scripts:
Code:

Current Time : Sun Dec 04 23:08:07 2005

Elapsed Time : 0 days 19 hours 53 minutes 5 seconds
IOBufferPool - 27764

[(3920) 2005/12/04 23:08:07]: =======================
an Access Violation in module l2server.exe at 001b:0048e290.
start at 2005/12/4 03:14:59
Write to location 00000000 caused an access violation.

Registers:
EAX=00000000 CS=001b EIP=0048e290 EFLGS=00010246
EBX=00000000 SS=0023 ESP=0012f864 EBP=0012f990
ECX=00000002 DS=0023 ESI=0048e140 FS=003b
EDX=1ff6a000 ES=0023 EDI=00000000 GS=0000
Bytes at CS:EIP:
c6 05 00 00 00 00 01 ff 15 84 52 5b 00 33 c0 8b
Stack dump:
0012f864: 00000000 0012fa08 0048e140 00000000 00650048 006c006c 0020006f 006f0057
0012f884: 006c0072 00210064 41530000 00000000 00000000 02080042 00000000 00000000
0012f8a4: 00000000 00000000 00000000 00000000 00000002 00000021 00000000 00000000
0012f8c4: 00000042 00000000 00000042 00000003 0012f95e 41536760 00000042 0012f95c
0012f8e4: 00000000 00000042 43014300 0012f874 00000000 0012fba8 77f45a34 77f8add0
0012f904: ffffffff 77f4a4ff 77f4af5e 77f47e3d 0012f95e 00000025 77f4b0b1 77fc2100
0012f924: 77f4b052 415366b0 41536760 00000000 003a0043 004c005c 00530032 00720065
0012f944: 00650076 005c0072 0032004c 00000000 0048e140 0012f9f0 00000001 0012f9f0
0012f964: 00000000 0012f850 0012fa0c 005a7281 00000001 0012fa08 00000000 0012f868
0012f984: 0012fa24 005a7281 ffffffff 0012f9bc 77d0612f 18610034 00000002 00000000


ver = Jun  8 2004____15:38:30 thread id=11

LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) <--
LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)

Thread[0] (good):      Lock Stack  :

Thread[1] (good):      Lock Stack  :


tontor 04.12.2005 21:46

Quote:

Originally Posted by avatard
only crashed with my executable with the following linerror which I suspect has to do with my scripts:
Code:

Current Time : Sun Dec 04 23:08:07 2005

Elapsed Time : 0 days 19 hours 53 minutes 5 seconds
IOBufferPool - 27764

[(3920) 2005/12/04 23:08:07]: =======================
an Access Violation in module l2server.exe at 001b:0048e290.
start at 2005/12/4 03:14:59
Write to location 00000000 caused an access violation.

Registers:
EAX=00000000 CS=001b EIP=0048e290 EFLGS=00010246
EBX=00000000 SS=0023 ESP=0012f864 EBP=0012f990
ECX=00000002 DS=0023 ESI=0048e140 FS=003b
EDX=1ff6a000 ES=0023 EDI=00000000 GS=0000
Bytes at CS:EIP:
c6 05 00 00 00 00 01 ff 15 84 52 5b 00 33 c0 8b
Stack dump:
0012f864: 00000000 0012fa08 0048e140 00000000 00650048 006c006c 0020006f 006f0057
0012f884: 006c0072 00210064 41530000 00000000 00000000 02080042 00000000 00000000
0012f8a4: 00000000 00000000 00000000 00000000 00000002 00000021 00000000 00000000
0012f8c4: 00000042 00000000 00000042 00000003 0012f95e 41536760 00000042 0012f95c
0012f8e4: 00000000 00000042 43014300 0012f874 00000000 0012fba8 77f45a34 77f8add0
0012f904: ffffffff 77f4a4ff 77f4af5e 77f47e3d 0012f95e 00000025 77f4b0b1 77fc2100
0012f924: 77f4b052 415366b0 41536760 00000000 003a0043 004c005c 00530032 00720065
0012f944: 00650076 005c0072 0032004c 00000000 0048e140 0012f9f0 00000001 0012f9f0
0012f964: 00000000 0012f850 0012fa0c 005a7281 00000001 0012fa08 00000000 0012f868
0012f984: 0012fa24 005a7281 ffffffff 0012f9bc 77d0612f 18610034 00000002 00000000


ver = Jun  8 2004____15:38:30 thread id=11

LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) <--
LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)

Thread[0] (good):      Lock Stack  :

Thread[1] (good):      Lock Stack  :


WndProc is the main menu/gui handler, this specific crash after looking up a string from resources, it checked the message ID, that couldn't be handled, according to condition forcing it to crash purposely. (in which it would have closed l2server anyways if not forced to crash)

Code:

.text:0048E17B                call    ds:LoadStringW
.text:0048E181                mov    ecx, [ebp+arg_4] <- 2nd argument to wndproc = msgid
.text:0048E184                cmp    ecx, 0Fh
.text:0048E187                ja      loc_48E2B2
.text:0048E18D                jz      loc_48E269
.text:0048E193                mov    eax, ecx
.text:0048E195                sub    eax, 2
.text:0048E198                jz      loc_48E288
|
|
|
\
.text:0048E288                mov    byte_6BBADB, 0
.text:0048E28F                push    edi            ; nExitCode
.text:0048E290                mov    large byte ptr ds:0, 1 <- forced crash
.text:0048E297                call    ds:PostQuitMessage
.text:0048E29D                xor    eax, eax
.text:0048E29F                mov    ecx, [ebp+var_C]
.text:0048E2A2                mov    large fs:0, ecx
.text:0048E2A9                pop    edi
.text:0048E2AA                pop    esi
.text:0048E2AB                pop    ebx
.text:0048E2AC                mov    esp, ebp
.text:0048E2AE                pop    ebp
.text:0048E2AF                retn    10h


avatard 04.12.2005 22:03

it has to do with fstring then, right? I am rather lost, thanks for the help though, great job

or, what comes to mind, I was aware for a while that some fstrings were misbehaving; would it help if I put all the numbers say 1 through 1000000 numbers in the strings file accordingly with some kind of a bugreport message? the ai.obj of mine is a little larger than 35mb of silly parsed stack machine text :[

avatard 06.12.2005 02:13

the over-enchant exploits known to me are an SQL problem which is easily fixing by moving the skills accordingly to other scrolls which are nondroppable nontradeable and may be exchanged i.e. via multisell.

the stupid and useless error of mine is more of an ai, or perhaps the incompatibility problem, which I am working on.

It keeps on crashing once in 24 hours, which with on going socket thing is getting me on the silly toes everytime.

rodier 06.12.2005 13:39

tontor, please, when u make new version of your patch..can u make it with options? like who want turn on what protection..etc..

Because our server crashing with your patch (npcs packet error..) but I think maybe if I turn on only teleport bug protection in your patch..maybe that work OK ..
/I tried teleport patch from L2scriptM..but that is not proof.. I can crash server with html exploit with teleportfix from l2script maker/...

thanks for reply.

HF 06.12.2005 14:11

Quote:

Originally Posted by rodier
tontor, please, when u make new version of your patch..can u make it with options? like who want turn on what protection..etc..

Because our server crashing with your patch (npcs packet error..) but I think maybe if I turn on only teleport bug protection in your patch..maybe that work OK ..
/I tried teleport patch from L2scriptM..but that is not proof.. I can crash server with html exploit with teleportfix from l2script maker/...

thanks for reply.

no use 3th patches with tontor protection.

strange. I use all patches from my pack. No crash, no problem.

horyfilipe 06.12.2005 14:14

Sorry about my nobness but i think i can help on l2server debugging on the usersocket problem, but what i am supposed to do? get a "debugger" and save logfile while usersocket issue is heavily happening? If this is right, pls tell me the right software?

Thanks!

Mirror 06.12.2005 16:23

horyfilipe, service pack3 windows2k solves the problem

srh 06.12.2005 16:25

HF, server from PPLC? or hand made?;)

HF 06.12.2005 17:16

Quote:

Originally Posted by srh
HF, server from PPLC? or hand made?;)

original l2server.exe from ncsoft last pack and some my fixes for SSQ and etc. I no like how it work in official server :D

No. I have clean L2server.exe for game on C3-mod server. And and my (pack) fixes. + tontor fix

horyfilipe 06.12.2005 23:25

Quote:

Originally Posted by Mirror
horyfilipe, service pack3 windows2k solves the problem

Thanks mirror but im using win2k3 :/

tontor 07.12.2005 11:19

Quote:

Originally Posted by horyfilipe
Sorry about my nobness but i think i can help on l2server debugging on the usersocket problem, but what i am supposed to do? get a "debugger" and save logfile while usersocket issue is heavily happening? If this is right, pls tell me the right software?

Thanks!

Would require I be around to trace it at the time of the problem while l2server be running inside of a debugger, most likley more then once.

Quote:

Originally Posted by talmage
More ways to dupe besides dual trade windows and char cloning now. Also ways to over-chant items that has nothing to do w/dual trade windows. All confirmed.

So...

Thanks for the info you provided directly, you always prove a good source of info on new exploits :). I'll take a look into the problems described, still haven't forgot about the dual trade just been rather busy lately. Have not had near as much time for this project.

Quote:

Originally Posted by avatard
it has to do with fstring then, right? I am rather lost, thanks for the help though, great job

or, what comes to mind, I was aware for a while that some fstrings were misbehaving; would it help if I put all the numbers say 1 through 1000000 numbers in the strings file accordingly with some kind of a bugreport message? the ai.obj of mine is a little larger than 35mb of silly parsed stack machine text :[

Actually from that point its completely unrelated to scripts that i can see, msg id 2, forced it to exit. NCSoft has in many places used this type of crash, l2server has fairly good exception handling. So by forcing a crash you get a stack dump/reg values and a small trace. What was the real source of the crash?

0048E288 > \C605 DBBA6B00>MOV BYTE PTR DS:[6BBADB],0 ; Case 2 (WM_DESTROY) of switch 0048E184

Somewhere it sent a message to l2server to close the main window on purpose. The string lookup seems completley useless it just looks up the same resource everytime.

0048E173 . 6A 6A PUSH 6A ; |RsrcID = STRING "Hello World!"

Mirror 07.12.2005 13:04

i noticed the last 2 days many safecastuser saved the server messages..and exactly before these messages...some messages like 'pick up item', 'item not in inventory" and such. i tend to believe these are the new duping methods described. hope this helps tontor

tontor 10.12.2005 04:49

avatard: By chance are you running l2admin on the same server as you get the crash in wndproc on? If so try disabling l2admin com service and let me know your results, I have a feeling its related.

Attary 11.12.2005 15:28

Code:

12/11/2005 17:33:xx.xx3, inserting deleted object
12/11/2005 17:33:xx.xx9, inserting deleted object
12/11/2005 17:33:xx.xx9, inserting deleted object
12/11/2005 17:33:xx.xx9, inserting deleted object
12/11/2005 17:33:xx.xx9, inserting deleted object
12/11/2005 17:33:xx.xx5, inserting deleted object
12/11/2005 17:33:xx.xx5, inserting deleted object
12/11/2005 17:33:xx.xx0, inserting deleted object
12/11/2005 17:33:xx.xx0, __SafeCastUSer saved the server...
12/11/2005 17:33:xx.xx9, __SafeCastUSer saved the server...
12/11/2005 17:33:xx.xx4, __SafeCastCreature saved the server...
12/11/2005 17:33:xx.xx5, __SafeCastCreature saved the server...
12/11/2005 17:33:xx.xx3, __SafeCastUSer saved the server...
12/11/2005 17:36:xx.xx4, !!! deadlock or super-lag detected!!!  (diff 152 sec)

... and crash.

I know at 101% what it is hack.
One cheater write me PM on my forum before every crash with this error.

tontor, what about "inserting deleted object" ?

klemka 11.12.2005 15:34

Clone char still working :cry:

drzoom 12.12.2005 12:00

I can explain new way clns are working, if u need!

avatard 12.12.2005 12:55

@tontor

not using l2admin at all, only non-native services ran on the server platform are FireDaemon, L2npc, l2server. However the wndproc thing somehow hasn't happened for a few days. ;[

kembl 15.12.2005 15:49

Quote:

Originally Posted by klemka
Clone char still working :cry:

Same for us, ability for cloning still exists :(

tontor 16.12.2005 12:45

Quote:

Originally Posted by drzoom
I can explain new way clns are working, if u need!

pm'd you with no response, please provide details.


There was a mistake made while changing something awhile ago, allowing sql injection via bbs to be possible, the dll below should remedy it. Thanks to who brought the problem to my attention.

drzoom 16.12.2005 14:02

WAY!!!
 
Sorry, hadn't time to write to u :( Decided to write this way for all!
That someone, who wrote about sql-injections, was me:) And it's cool that it wouldn't be problem.

So, the way clones are working:
1) u have 2 accounts and use l2walker
2) at 1st u have 2 characters, at 2nd u have 3 characters
3) at 2nd account use "manual login char"
4) leave the window with list of chars
5) enter login and pass for of 1st account
6) enter 1st char to login
7) LOGIN IT
8) place ur character for example in market
9) use window from step 4 and login with 3rd char
10) l2walker after same amount of time will display "enter char failed"
and will disconnect, BUT! CHAR FROM 1ST ACC WILL BE ONLINE
11) after that u may login with account u want, except 1st account.

This way we produce clone. Cheater may use it for endless trader.

drzoom 16.12.2005 14:08

!
 
Tontor, it will be better if u ICQ me by 203833915


All times are GMT. The time now is 16:21.