PDA

View Full Version : [Share] server side html exploit fix, cloning char fix


Pages : 1 [2] 3

EverCooL
16.11.2005, 10:20
I must say REALY IMPRESSIVE job ! I've read the whole topic and what more can i say... greatly done!
Keep up the good work!
I'm setting up my test server right now and will give it a try :)

P.S. I was away of the project for sometime and i will need few days to get back on track with te changes since my last appearing ^^

Digital
16.11.2005, 11:39
well... according to some ppl
they said that it is l2walker that is making it crash (server+dll)
not really sure if that's the truth since i'm not using the dll
(no offence to tontor ^^;)
just a msg to let u guys know and try to see if that is the case

HF
16.11.2005, 12:39
well... according to some ppl
they said that it is l2walker that is making it crash (server+dll)
not really sure if that's the truth since i'm not using the dll
(no offence to tontor ^^;)
just a msg to let u guys know and try to see if that is the casei have some different info about bug with walker:

- banned account have access to server (first stage), but not have access to select char
- default setting of walker is "Reconnect time is 1 sec"
- banned accounts reconnected to server while server not crashe or restart, because users sockets will be bigger (*2, *3 them user real sockets)... server dont crash, but users cant select chars.
Fuh.. :)

Bot-users - fucking ppl.

horyfilipe
16.11.2005, 12:40
Tontor, thanks, i will test now. Man, i shall donate to you, thats a wonderful job. Let us know how to contribute.

Digital, do you know any specific action? Or just using l2walker?

PhDoc
16.11.2005, 13:42
- banned account have access to server (first stage), but not have access to select charOnly banned character (39\tName\tHour) have access to server. Banned account (pay_stat=0) have not. Try it.

lich
16.11.2005, 18:00
New errors ;)

Server Up Time Wed Nov 16 22:05:39 2005

Current Time : Wed Nov 16 22:55:06 2005

Elapsed Time : 0 days 0 hours 49 minutes 27 seconds
IOBufferPool - 623

[(4392) 2005/11/16 22:55:06]: =======================
an Access Violation in module L2Server.exe at 001b:0053aa21.
start at 2005/11/16 22:05:34
Write to location 00000000 caused an access violation.

Registers:
EAX=6f806060 CS=001b EIP=0053aa21 EFLGS=00010297
EBX=6f460960 SS=0023 ESP=6e1ff9c4 EBP=6e1ff9f8
ECX=00000007 DS=0023 ESI=6af393e4 FS=003b
EDX=69f17d88 ES=0023 EDI=00000059 GS=0000
Bytes at CS:EIP:
c6 05 00 00 00 00 01 33 c9 89 88 10 20 00 00 c7
Stack dump:
6e1ff9c4: 004dfaae 00000059 6af39400 6af39408 20b3839c 6f5c1e2f c00dbb1a 6e1ff9cc
6e1ff9e4: 6af393e4 6e1ff9c8 6e1ffa68 005ab7a0 ffffffff 6e1ffa74 0043f75a 6f460960
6e1ffa04: 44be8e98 0000f000 6af393e4 00445caf 6af393e4 004df860 6f460960 0003c8e5
6e1ffa24: 48108f2e fffe5a5d 00000000 41812a88 3fff1ff4 00000000 00000000 947aca44
6e1ffa44: 006c090c 44b38df8 000000d6 000001f2 6f460960 000001f0 000001f4 000000d8
6e1ffa64: 6e1ffa20 6e1ffae4 005a4468 ffffffff 6e1ffaf0 0049deb7 44440024 48108f2e
6e1ffa84: 0000f000 a5ad11cd c0fa5a3c 8d6dabb4 410e472c 00000000 c0a98000 00000000
6e1ffaa4: 40b77000 005bd8b8 00000001 48108f2e fffe59fe 0003ca71 fffff344 fffe5a5d
6e1ffac4: 0003c8e5 fffff340 947aca44 8d4e27d4 8d4e27d4 00544b36 a5ad11cd 6e1ffacc
6e1ffae4: 6e1ffc38 005a7c80 ffffffff 6e1ffc44 00544c59 a5ad11cd c0fa5a3c 8d6dabb4


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

void IOThread_common(void *arglist) <--
void CNPCSocketPacket::OnIOCallback(BOOL bSuccess, DWORD dwTransferred, LPOVERLAPPED lpOverlapped) <--
void CPacket::OnIOCallback(BOOL bSuccess, DWORD dwTransferred, LPOVERLAPPED lpOverlapped) <--
cpacket::oniocallback_funccall <--
bool NpcAttackPacket(NpcSocket* pSocket, const unsigned char *pPacket) <--
CCreature::Action() <--
inline void AddExecutable(MemoryObject *Matrix, Native Func, CExecutionArgument* Arg) <--
add exec - func call <--
void CCreatureController::MoveToTarget(CObject *pTarget) <--
void CCreatureController::DoFirstAction() <--
bool CMoveToTargetAction::OnStart() <--
void CMoveToTargetAction::SetMoving() <--
void CCreatureController::ActionBroadcastMove(FVector vStart, FVector vTo) <--
void BroadcastToNeighborDist(FVector vPos, double dist, const char* format, ...) <--
FOR ALL NEIGHBOR USER FAST <--
ASYNCHRONOUS_SERIALIZE_FAST_IMPL(CSocket, AsyncSendConstBuffer, CIOBuffer*, pBuffer) <--


Thread[0] (good): Lock Stack :

Thread[1] (ahehe): Lock Stack :

tontor
16.11.2005, 21:10
lich: "Access Violation in module L2Server.exe at 001b:0053aa21. Write to location 00000000" indicates that the server believes it has run out of IO buffers and is intentionally crashing itself. Try increasing your IOBufferCount.

Firedaemon
16.11.2005, 22:09
Thank you for sharing! Its contributers such as yourself that keep the community moving forward in such a positive direction.

lich
17.11.2005, 05:39
lich: "Access Violation in module L2Server.exe at 001b:0053aa21. Write to location 00000000" indicates that the server believes it has run out of IO buffers and is intentionally crashing itself. Try increasing your IOBufferCount.
Ok. Anyway thanks a lot!

Kenster
17.11.2005, 07:07
Yeah he had 693... that is low. I would guess that too.

lich
17.11.2005, 10:31
Yeah he had 693... that is low. I would guess that too.
3000 in l2server.ini. Try to set to 10000.

horyfilipe
17.11.2005, 14:27
Absolutely perfect till now!!! 16h Online with 1500+ players, 16h Onlline with 700+ players (and no crash till now).

Only remaining issue is the usersocket problem, thats the unique cause for i am rebooting my servers.

Thanks!!!

Mirror
17.11.2005, 15:33
great work tontor thanks!

<offtopic>
horyfilipe i wonder how this usersocket problem started...since it was no in c1..and l2server.exe remained the same...it must be an issue caused by the client..
</offtopic>

HF
17.11.2005, 17:09
Absolutely perfect till now!!! 16h Online with 1500+ players, 16h Onlline with 700+ players (and no crash till now).

Only remaining issue is the usersocket problem, thats the unique cause for i am rebooting my servers.

Thanks!!!you can give me info about your Lineage II server? I mean: how much PC, where stay each module (i mean all on one or some module on different PC), hardware configuration on each PC, software for La2 (SQL version, SP, patches, system setting and etc)

I very want it. Help me :) Give me info. May in PM :)

napaHouK
17.11.2005, 17:48
nice Thx ...
1 day work (not crash)
Very )))

<russion>
Я не могу понять всех кого знаю... у всех падает сервер
Х.з. у мя маленький онлайн да 100 человек туфта но даже есть у кого 100 тоже и тоже падает )))
Какие у вас серваки то ??
2:HF все жалуются на данную проблему...

Может дело в Оси или в настройки оси ??? серваки у всех одинаковые... я дал свой exe файл человечку у него тоже падает )
</russian>

Slipknight
17.11.2005, 21:00
12++ uptime and I restarted it myself for other purposes so it works fine for me. But then again im not running my server with 1k+ people :wink:

midnight
17.11.2005, 22:11
I have one problem, pls help...

Server Up Time Thu Nov 17 11:00:24 2005

Current Time : Thu Nov 17 15:31:54 2005

Elapsed Time : 0 days 4 hours 31 minutes 30 seconds
IOBufferPool - 1658

[(2864) 2005/11/17 15:31:54]: =======================
an Access Violation in module L2Server.exe at 001b:0045a1f5.
start at 2005/11/17 11:00:19
Read from location 00008604 caused an access violation.

Registers:
EAX=8cb540cc CS=001b EIP=0045a1f5 EFLGS=00010202
EBX=747b9b5b SS=0023 ESP=7091fe34 EBP=7091fe8c
ECX=8cb56edc DS=0023 ESI=8cb540cc FS=003b
EDX=000085f4 ES=0023 EDI=00000000 GS=0000
Bytes at CS:EIP:
8b 42 10 8b 70 60 89 4d e8 89 7d e0 3b 7d d4 7d
Stack dump:
7091fe34: 00000000 2487f808 77e4193e 00000000 00000019 0000001f 00002000 437c0015
7091fe54: 7a8e5994 00000000 00000001 00000000 48201981 00000000 00000000 000085f4
7091fe74: 748b52a0 7091fe40 7091fe34 7091feb8 005a4e68 ffffffff 7091fec4 0053adaf
7091fe94: 7a8e5994 747b9b43 00fcace3 00000001 77e4193e 0006c594 0000001f 747b9b30
7091feb4: 7091fe9c 7091fef0 005afb80 ffffffff 7091fefc 0053aed9 00000001 00000002
7091fed4: 00000000 00fcace3 00000001 77e4193e fffaa8d0 ffffffff 7091fed8 7091ff6c
7091fef4: 005afb90 ffffffff 7091ff78 0053cbe6 00000001 00000002 00000000 00000000
7091ff14: 00000000 3fcc22e8 00000000 00001000 00010000 bffeffff 00000001 00000001
7091ff34: 0000024a 00010000 0a000006 008affff 00000000 00000258 00870000 00000002
7091ff54: 0004f39c fbaa2d00 f5923bfc 00000000 2487f808 7091ff10 7091ffa8 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 ReplyQueryCastleSiegeForRegister(CDBSocket *socket, const unsigned char *packet)

Thread[0] (ahehe): Lock Stack :

Firedaemon
19.11.2005, 00:33
Our server runs with 1000+ on average daily. Thus far (after 5-6 days of production server testing), we have not experienced any problems with the implimentation of this patch.

Good job

iamrend
19.11.2005, 00:39
my first crash with new dll. maybe it can help

:P

Server Up Time Fri Nov 18 19:43:28 2005

Current Time : Fri Nov 18 22:51:55 2005

Elapsed Time : 0 days 3 hours 8 minutes 27 seconds
IOBufferPool - 12376

[(3948) 2005/11/18 22:51:55]: =======================
an Access Violation in module kernel32.dll at 001b:77e6b458.
start at 2005/11/18 19:43:26
Write to location 77ff2038 caused an access violation.

Registers:
EAX=ffffffff CS=001b EIP=77e6b458 EFLGS=00010202
EBX=77ff0020 SS=0023 ESP=7195fe94 EBP=7195fec4
ECX=77ff2038 DS=0023 ESI=280da338 FS=003b
EDX=00000007 ES=0023 EDI=00000000 GS=0000
Bytes at CS:EIP:

Slipknight
19.11.2005, 12:49
2 Days straight uptime and no crashes. Great work tontor :D

tontor
19.11.2005, 16:29
my first crash with new dll. maybe it can help

:P

Server Up Time Fri Nov 18 19:43:28 2005

Current Time : Fri Nov 18 22:51:55 2005

Elapsed Time : 0 days 3 hours 8 minutes 27 seconds
IOBufferPool - 12376

[(3948) 2005/11/18 22:51:55]: =======================
an Access Violation in module kernel32.dll at 001b:77e6b458.
start at 2005/11/18 19:43:26
Write to location 77ff2038 caused an access violation.

Registers:
EAX=ffffffff CS=001b EIP=77e6b458 EFLGS=00010202
EBX=77ff0020 SS=0023 ESP=7195fe94 EBP=7195fec4
ECX=77ff2038 DS=0023 ESI=280da338 FS=003b
EDX=00000007 ES=0023 EDI=00000000 GS=0000
Bytes at CS:EIP:



No stack info, not much use at all :)

Mirror
19.11.2005, 16:43
great work tontor, thanks :). question, does this new release includes antistacked buff protection as you said it may ?

tontor
20.11.2005, 02:15
great work tontor, thanks :). question, does this new release includes antistacked buff protection as you said it may ?

Yes, when a user attempt to buff stack, it is logged to l2server logs and l2server console displaying the account id and skillid of the specific buff that was detected as a dupe, and aborts sending the packet to cached which saves the duplicate buffs effectively stopping overbuffing.

Slipknight
21.11.2005, 14:10
used this for 1 week straight and no crashes or downtime besides me restarting it :D .

Papa_Wader
22.11.2005, 01:28
Well, it seems that the clone's patch was overriden again.
I have the latest version of the tontor's patch on my server, yesturday i've noticed that "users connected" status was less than "user's playing" by 10 players.
Today i've parsed my cached logs and found on char 23 lvl, created yesturday:

21/11/2005 23:01:xx.xx8 : char Lorein (reystlin) sell item 57 (-45000000) [id: 155820]
21/11/2005 23:01:xx.xx4 : char Lorein (reystlin) sell item 1459 (30000) [id: 161796]
21/11/2005 23:01:xx.xx4 : char Lorein (reystlin) buy item 57 (-40000000) [id: 155820]

30 k C Crystals - strange for a newly created char, isn't it? =))

According to Cached logs, this crystals came from nowhere.

Eagerly waiting for a new clone fix.

Papa_Wader
22.11.2005, 02:03
Here's more detailed log about duping

20/11/2005 21:39:xx.xx0 : char Lorein (reystlin) dropped item 1459 (790) [id: 149969]
20/11/2005 21:39:xx.xx2 : char DD (iceray) get item 1459 (790) [id: 149969]
!!!!!!! Warning : Another user get dropped item(s) !


20/11/2005 21:42:xx.xx5 : char DD (iceray) dropped item 1459 (790) [id: 149969]
20/11/2005 21:42:xx.xx3 : char Fighter (iceray) get item 1459 (790) [id: 149969]
!!!!!!! Warning : Another user get dropped item(s) !

20/11/2005 21:44:xx.xx0 : char Fighter (iceray) private store sell item 1459 (1580) [id: 149969]
20/11/2005 21:44:xx.xx0 : char Fighter (iceray) private store buy item 1459 (-790) [id: 149969]
20/11/2005 21:47:xx.xx8 : char Fighter (iceray) private store buy item 1459 (-1580) [id: 149969]
20/11/2005 21:47:xx.xx8 : char Fighter (iceray) private store sell item 1459 (3160) [id: 149969]
20/11/2005 21:49:xx.xx5 : char Fighter (iceray) private store buy item 1459 (-3160) [id: 149969]
20/11/2005 21:49:xx.xx5 : char Fighter (iceray) private store sell item 1459 (6320) [id: 149969]
20/11/2005 21:53:xx.xx4 : char Fighter (iceray) private store sell item 1459 (12640) [id: 149969]
20/11/2005 21:53:xx.xx0 : char Fighter (iceray) private store buy item 1459 (-6320) [id: 149969]
20/11/2005 21:57:xx.xx0 : char Fighter (iceray) private store sell item 1459 (25280) [id: 149969]
20/11/2005 21:57:xx.xx0 : char Fighter (iceray) private store buy item 1459 (-12640) [id: 149969]

bigfoot
22.11.2005, 11:57
bug: prof Dark Wizard
WARNING: Possible exploit attempt ACCID:1 CMD:[link charkeren_q0412_02.htm].

tontor
22.11.2005, 12:59
bug: prof Dark Wizard
WARNING: Possible exploit attempt ACCID:1 CMD:[link charkeren_q0412_02.htm].

Read the first post of this topic, it explains the possible problems.

HF
22.11.2005, 13:21
tontor, i found stranges with your patch. With patch.dll no can use no one menu in L2Server interface. Why it have link with this features? :) I think what it is no good.
Now i can tell what only with your patch exist "User Socket overflow bug". I mean time, when user can autorize but cant select chars. User Sockets must upper, but users real sessions only fall down. Help only L2Server restart. No help L2Auth restart.

Maybe you can fix it all.

Aspire
22.11.2005, 19:30
HF попробуй начать с чистой версии сервера, ибо все работает на ура, кстати креш сервера по summon npc вызван параллельно сделанным патчем на incorrect target, по крайней мере для моей версии так.

Sorry, but my english is to bad...

a-dru
22.11.2005, 20:57
nice Thx ...
1 day work (not crash)
Very )))

<russion>
Я не могу понять всех кого знаю... у всех падает сервер
Х.з. у мя маленький онлайн да 100 человек туфта но даже есть у кого 100 тоже и тоже падает )))
Какие у вас серваки то ??
2:HF все жалуются на данную проблему...

Может дело в Оси или в настройки оси ??? серваки у всех одинаковые... я дал свой exe файл человечку у него тоже падает )
</russian>


thanks for l2server.exe )))
BUT i find my error _)

and NOW my Server NORMAL working with 100-150 online Fro 2-3 Day with not RESTART and CRASH )

I very Glad )

Now my SYstem - Windows 2003 Enterprice !

Nurgl
23.11.2005, 23:24
nice Thx ...
1 day work (not crash)
Very )))

<russion>
Я не могу понять всех кого знаю... у всех падает сервер
Х.з. у мя маленький онлайн да 100 человек туфта но даже есть у кого 100 тоже и тоже падает )))
Какие у вас серваки то ??
2:HF все жалуются на данную проблему...

Может дело в Оси или в настройки оси ??? серваки у всех одинаковые... я дал свой exe файл человечку у него тоже падает )
</russian>


thanks for l2server.exe )))
BUT i find my error _)

and NOW my Server NORMAL working with 100-150 online Fro 2-3 Day with not RESTART and CRASH )

I very Glad )

Now my SYstem - Windows 2003 Enterprice !

<rus>
Чем круче железка тем дольше стоит сервер это 100% так на собственом опыте убедился.
</rus>

toolpunk
24.11.2005, 16:49
uhm...
digital: how about readding the russian language section?
i think we dont need those posts flooding the original topics...

Nurgl
24.11.2005, 19:13
uhm...
digital: how about readding the russian language section?
i think we dont need those posts flooding the original topics...
Sorry Sorry Sorry !!

Nasedo
24.11.2005, 21:02
I get memeory overflow, low memory and the l2server crashes when the npc server finishes loading and then the npc server goes down too.

toolpunk
24.11.2005, 21:43
uhm...
digital: how about readding the russian language section?
i think we dont need those posts flooding the original topics...
Sorry Sorry Sorry !!
dont get me wrong...
i didnt want to make you feel bad.
i think we should add a russian section anyway.
we got so many russian people here and of course its easier to explain things in your native language.
i only wanted to help ya ;)
but back to the topic :D

tontor
25.11.2005, 11:31
Here's more detailed log about duping

20/11/2005 21:39:xx.xx0 : char Lorein (reystlin) dropped item 1459 (790) [id: 149969]
20/11/2005 21:39:xx.xx2 : char DD (iceray) get item 1459 (790) [id: 149969]
!!!!!!! Warning : Another user get dropped item(s) !


20/11/2005 21:42:xx.xx5 : char DD (iceray) dropped item 1459 (790) [id: 149969]
20/11/2005 21:42:xx.xx3 : char Fighter (iceray) get item 1459 (790) [id: 149969]
!!!!!!! Warning : Another user get dropped item(s) !

20/11/2005 21:44:xx.xx0 : char Fighter (iceray) private store sell item 1459 (1580) [id: 149969]
20/11/2005 21:44:xx.xx0 : char Fighter (iceray) private store buy item 1459 (-790) [id: 149969]
20/11/2005 21:47:xx.xx8 : char Fighter (iceray) private store buy item 1459 (-1580) [id: 149969]
20/11/2005 21:47:xx.xx8 : char Fighter (iceray) private store sell item 1459 (3160) [id: 149969]
20/11/2005 21:49:xx.xx5 : char Fighter (iceray) private store buy item 1459 (-3160) [id: 149969]
20/11/2005 21:49:xx.xx5 : char Fighter (iceray) private store sell item 1459 (6320) [id: 149969]
20/11/2005 21:53:xx.xx4 : char Fighter (iceray) private store sell item 1459 (12640) [id: 149969]
20/11/2005 21:53:xx.xx0 : char Fighter (iceray) private store buy item 1459 (-6320) [id: 149969]
20/11/2005 21:57:xx.xx0 : char Fighter (iceray) private store sell item 1459 (25280) [id: 149969]
20/11/2005 21:57:xx.xx0 : char Fighter (iceray) private store buy item 1459 (-12640) [id: 149969]

Check your l2server err logs for packet process abnormal around the same time as their logins, this happens when enterworld returns 1 instead of 0. I do this right before calling LeaveWorld for the original clone.

.rdata:00608A90 unicode 0, <file[%s], line[%d], packet process abnormal >

But does appear that if this patch hasn't failed for you in the console someone has found a way around it. I am aware of another method of cloning items but I wont release any information for community sake.


-------

Fixing the 'user socket' problem is more difficult because you cant attach a debugger after this has happened. Would require running l2server in a debugger for a day or 2 untill it happens, which would be laggy for the users.

EverCooL
25.11.2005, 12:55
Question to tontor...
Will you be able to modify that patch.dll as a packet filter/interceptor/proxy or what ever you want to name it ? The idea of having this is to have one config.ini where are described the packets( headers structure ) we want to intercepted and send to a subserver that will process them correctly and return the proper result packet trough that very same dll to the server and all that the server has to do is send the processed packet. This in various ways will solve 90% of the mising stuff.

horyfilipe
25.11.2005, 14:41
[half off]
About usersocket, ill try to contribute with this info:

I have 3 servers:
1) Dual opteron 244, 4GB ecc crucial, 2x36GB SCSI in raid0, win2k3 standard, windows firewall.
RUNS: l2server + l2npc
Average: 1500 players
User socket happens every 2 to 3h. from 2am to 11am it is more difficult to see this issue happening.

2) PIV 3.06ghz HT , 2GB DDR, 2x80GB SATA, win2k3 standard, windows firewall
RUNS: l2server + l2npc
Average: 700 players
User socket happens every 10 to 16h. from 2am to 11am it is more difficult to see this issue happening.

3) PIV 3.06ghz HT, 1GB DDR, 2x80, 2x200 SATA raid0, win2k3 standard, windows firewall.
RUNS: sql + authd + logd for both servers


[/half off]

rodier
27.11.2005, 21:54
How to find what is really try to exploit and what is normal? Your console report normal players doing normal things.. so its hard to filter attackers :(

Maybe this first.. is someone who want attack.. or simply newbie who try to use BBS? ;-D


WARNING: Possible exploit attempt ACCID:23462 CMD:[bypass -h _bbsgetfav].
WARNING: Possible exploit attempt ACCID:23462 CMD:[bypass -h _bbsaddfav_list boa
rds_bbsinit_0_0_0_0_0_].
WARNING: Possible exploit attempt ACCID:23462 CMD:[bypass -h _bbsloc].
WARNING: Possible exploit attempt ACCID:20930 CMD:[bypass -h menu_select?ask=333
&reply=15].
WARNING: Possible exploit attempt ACCID:20930 CMD:[bypass -h menu_select?ask=333
&reply=15].
WARNING: Possible exploit attempt ACCID:20930 CMD:[bypass -h multisell?id=15].
WARNING: Possible exploit attempt ACCID:20930 CMD:[bypass -h menu_select?ask=-20
1&reply=1].
WARNING: Possible exploit attempt ACCID:20930 CMD:[bypass -h menu_select?ask=-20
1&reply=9].
WARNING: Possible exploit attempt ACCID:20930 CMD:[bypass -h menu_select?ask=-22
0&reply=1].
WARNING: Possible exploit attempt ACCID:20930 CMD:[bypass -h menu_select?ask=-20
1&reply=1].
WARNING: Possible exploit attempt ACCID:20930 CMD:[bypass -h menu_select?ask=-20
1&reply=1].
WARNING: Possible exploit attempt ACCID:20930 CMD:[bypass -h menu_select?ask=-20
1&reply=1].
WARNING: Possible exploit attempt ACCID:20954 CMD:[bypass -h menu_select?ask=106
&reply=3].
WARNING: Possible exploit attempt ACCID:20954 CMD:[bypass -h menu_select?ask=106
&reply=3].
WARNING: Possible exploit attempt ACCID:21413 CMD:[link gamble_master_07.htm].
WARNING: Possible exploit attempt ACCID:22712 CMD:[link prefect_brukurse001.htm]
.
WARNING: Possible exploit attempt ACCID:22712 CMD:[link prefect_brukurse001t.htm
].
WARNING: Possible exploit attempt ACCID:22872 CMD:[bypass -h menu_select?ask=-1&
reply=0].

horyfilipe
27.11.2005, 22:01
Tontor, "warehouse access from anywhere" exploit is working, any idea?

tontor
29.11.2005, 11:41
How to find what is really try to exploit and what is normal? Your console report normal players doing normal things.. so its hard to filter attackers :(

Maybe this first.. is someone who want attack.. or simply newbie who try to use BBS? ;-D


WARNING: Possible exploit attempt ACCID:23462 CMD:[bypass -h _bbsgetfav].
WARNING: Possible exploit attempt ACCID:23462 CMD:[bypass -h _bbsaddfav_list boa
rds_bbsinit_0_0_0_0_0_].
WARNING: Possible exploit attempt ACCID:23462 CMD:[bypass -h _bbsloc].
WARNING: Possible exploit attempt ACCID:20930 CMD:[bypass -h menu_select?ask=333
&reply=15].
WARNING: Possible exploit attempt ACCID:20930 CMD:[bypass -h menu_select?ask=333
&reply=15].
WARNING: Possible exploit attempt ACCID:20930 CMD:[bypass -h multisell?id=15].
WARNING: Possible exploit attempt ACCID:20930 CMD:[bypass -h menu_select?ask=-20
1&reply=1].
WARNING: Possible exploit attempt ACCID:20930 CMD:[bypass -h menu_select?ask=-20
1&reply=9].
WARNING: Possible exploit attempt ACCID:20930 CMD:[bypass -h menu_select?ask=-22
0&reply=1].
WARNING: Possible exploit attempt ACCID:20930 CMD:[bypass -h menu_select?ask=-20
1&reply=1].
WARNING: Possible exploit attempt ACCID:20930 CMD:[bypass -h menu_select?ask=-20
1&reply=1].
WARNING: Possible exploit attempt ACCID:20930 CMD:[bypass -h menu_select?ask=-20
1&reply=1].
WARNING: Possible exploit attempt ACCID:20954 CMD:[bypass -h menu_select?ask=106
&reply=3].
WARNING: Possible exploit attempt ACCID:20954 CMD:[bypass -h menu_select?ask=106
&reply=3].
WARNING: Possible exploit attempt ACCID:21413 CMD:[link gamble_master_07.htm].
WARNING: Possible exploit attempt ACCID:22712 CMD:[link prefect_brukurse001.htm]
.
WARNING: Possible exploit attempt ACCID:22712 CMD:[link prefect_brukurse001t.htm
].
WARNING: Possible exploit attempt ACCID:22872 CMD:[bypass -h menu_select?ask=-1&
reply=0].


23462 <- innocent
20930 <- exploiter
22712 <- html typo or has space (check yout htmls)
22872 <- watch for more warnings for this id
20954 <- possible exploiter, possibly severe lag, check logs for other mutiple attempts

rodier
29.11.2005, 16:45
thanks a lot :-)

edit:
;-(( 20930 is one of my friends accounts he dont know anything about L2 hacks.. so we're at start..

rodier
29.11.2005, 17:23
Yes, it never froze on me. Never crashed. Since almost 4 days. I'm VERY happy about this :)

can u upload your server .exe to rapidshare.de please? thanks

horyfilipe
29.11.2005, 17:34
Tontor, I dont know how, but with your last DLL it is possible to use recipe bug and also use warehouse from anywhere..

rodier
29.11.2005, 17:51
L2NPC:

10/15/2005 03:25:xx.xx6, [PrecompiledHeaderDB.cpp][280] invalid skill_name_id[280838] id[1097] level[6]
10/15/2005 03:25:xx.xx6, [PrecompiledHeaderDB.cpp][280] invalid skill_name_id[280838] id[1097] level[6]
10/15/2005 03:25:xx.xx5, [PrecompiledHeaderDB.cpp][280] invalid skill_name_id[31243] id[122] level[11]
10/15/2005 03:25:xx.xx5, [PrecompiledHeaderDB.cpp][280] invalid skill_name_id[31243] id[122] level[11]
10/15/2005 03:25:xx.xx5, [PrecompiledHeaderDB.cpp][280] invalid skill_name_id[31243] id[122] level[11]
10/15/2005 03:26:xx.xx3, [PrecompiledHeaderDB.cpp][280] invalid skill_name_id[31243] id[122] level[11]
10/15/2005 03:26:xx.xx3, [PrecompiledHeaderDB.cpp][280] invalid skill_name_id[31243] id[122] level[11]
10/15/2005 03:26:xx.xx6, [PrecompiledHeaderDB.cpp][280] invalid skill_name_id[31243] id[122] level[11]
10/15/2005 03:26:xx.xx6, [PrecompiledHeaderDB.cpp][280] invalid skill_name_id[31243] id[122] level[11]
10/15/2005 03:26:xx.xx8, server socket close 19668(4dac0e2c) error(64)
10/15/2005 03:26:xx.xx8, --- call stack ---
10/15/2005 03:26:xx.xx8, [0] void IOThread_common(void *arglist)
10/15/2005 03:26:xx.xx8, [1] void CIOSocket::Close()
10/15/2005 03:26:xx.xx8, [2] void CServerSocket::OnClose()10/15/2005 03:25:xx.xx6, [PrecompiledHeaderDB.cpp][280] invalid skill_name_id[280838] id[1097] level[6]
10/15/2005 03:25:xx.xx6, [PrecompiledHeaderDB.cpp][280] invalid skill_name_id[280838] id[1097] level[6]
10/15/2005 03:25:xx.xx5, [PrecompiledHeaderDB.cpp][280] invalid skill_name_id[31243] id[122] level[11]
10/15/2005 03:25:xx.xx5, [PrecompiledHeaderDB.cpp][280] invalid skill_name_id[31243] id[122] level[11]
10/15/2005 03:25:xx.xx5, [PrecompiledHeaderDB.cpp][280] invalid skill_name_id[31243] id[122] level[11]
10/15/2005 03:26:xx.xx3, [PrecompiledHeaderDB.cpp][280] invalid skill_name_id[31243] id[122] level[11]
10/15/2005 03:26:xx.xx3, [PrecompiledHeaderDB.cpp][280] invalid skill_name_id[31243] id[122] level[11]
10/15/2005 03:26:xx.xx6, [PrecompiledHeaderDB.cpp][280] invalid skill_name_id[31243] id[122] level[11]
10/15/2005 03:26:xx.xx6, [PrecompiledHeaderDB.cpp][280] invalid skill_name_id[31243] id[122] level[11]
10/15/2005 03:26:xx.xx8, server socket close 19668(4dac0e2c) error(64)
10/15/2005 03:26:xx.xx8, --- call stack ---
10/15/2005 03:26:xx.xx8, [0] void IOThread_common(void *arglist)
10/15/2005 03:26:xx.xx8, [1] void CIOSocket::Close()
10/15/2005 03:26:xx.xx8, [2] void CServerSocket::OnClose()


I advice you to look in skilldata for these skills in id [bracket] .. I bet you dont have these skills in skill_pch or skill_pch2 = this can crash your server too..
if there is id[122] level [11] look in skilldatat.txt for id=122 and look on level 11 of that skill.
you see (for example) s_skill11 .. OK now look in skill_pch for s_skill11=NUMBER
If you dont have s_skill11 in skill_pch . make it. If you have it there, then look ton skill_pch2 for that NUMBER .. i bet 100% u dont have it there.

Simply.. L2NPC server dont use skill_pch but skill_pch2 numbers..
any player/npc want use skill NUMBER.. NPC look in skill_pch2 for that number.. but dont see it -> report it to console.

rodier
01.12.2005, 03:03
im very sad ;-( I tried many tontor .dll version, few l2server .exe but server still crashing with npc packet error ;-( without is stable for 24h+...

avatard
01.12.2005, 04:00
im very sad ;-( I tried many tontor .dll version, few l2server .exe but server still crashing with npc packet error ;-( without is stable for 24h+...

try mine, has been stable for a day or two on 1500 peak 1000 anytime, tried for two weeks

Attary
03.12.2005, 16:13
The deleted object that the message refers to is an IO object. I've tested a modification on my test server that doesn't insert deleted objects, and everything appeared to work, but I've not yet tested it on our public server.

"Inserting deleted object" still make server down in some sec with last dll version.
In my exe "link" and "teleport" patch failed. Is this a reason of server down with "Inserting deleted object"?

horyfilipe
04.12.2005, 18:51
User socket... pretty weird my dual opteron is acting like a bitch.. even on the first seconds its online it starts spawning UserSocket is null.. economy is null... altough my pIV server with half ram(2gb) it barely happens the usersocket issue and keeps online almost 24h without crash.. i thought it could be SQL server lag but the sql server is on a third machine and if it was the sql server, my PIV server should be spawning usersocket problem as well as my dual opteron.. so the problem is not with sql server..

Dual opteron..
http://www.horyu.com.br/img/uploads/91de389e3e.jpg (http://www.horyu.com.br/img/)

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
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:

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
only crashed with my executable with the following linerror which I suspect has to do with my scripts:

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)


.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
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
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
horyfilipe, service pack3 windows2k solves the problem

Thanks mirror but im using win2k3 :/

tontor
07.12.2005, 11:19
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.

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.

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
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
Clone char still working :cry:

Same for us, ability for cloning still exists :(

tontor
16.12.2005, 12:45
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
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

horyfilipe
19.12.2005, 02:19
Tontor, there is a new builtin help.htm inside some dll.. well i dont know if this has some to do with what i am going to tell, but the fact is that recipe bug is working, but also i have LINK(offset patch) FAILED.. do you think its because of the link failed? If yes, please tell me how to fix (offset/value)?

Thanks!

tontor
19.12.2005, 04:42
Tontor, there is a new builtin help.htm inside some dll.. well i dont know if this has some to do with what i am going to tell, but the fact is that recipe bug is working, but also i have LINK(offset patch) FAILED.. do you think its because of the link failed? If yes, please tell me how to fix (offset/value)?

Thanks!

It is absolutely the problem, check this thread earlier for details on offset/values to change for link/teleport. If link patch fails, link related (this includes recipes, reading local files) are vulnerable!

Flamestrike
19.12.2005, 06:32
I got the same thing too link patch failed.

Phantom2005
19.12.2005, 16:36
(how to fix link prob.)
hex offset: .005154b9

change to: 89 9c 24 24 01 00 00 66 89 5c 24 0c

toolpunk
19.12.2005, 17:02
thx a lot phantom :)

Flamestrike
20.12.2005, 00:53
Yeah like thanks :D

Domzelan
20.12.2005, 12:55
tontor can you make a update - i said about logs, can you add in your patch loging. log.txt - and all logs save in this file?

Kryak
21.12.2005, 05:12
Still it would be quite good to see time of attempt exploit

RmzVoid
21.12.2005, 06:14
tontor can you make a update - i said about logs, can you add in your patch loging. log.txt - and all logs save in this file?

l2server/log/err/ here logs (also with tontor's messages)

serjr
21.12.2005, 09:14
Tontor DLL was bypassed by BBS Inject.

Domzelan
21.12.2005, 13:14
Tontor DLL was bypassed by BBS Inject.
yes :(

Mirror
21.12.2005, 13:16
hasn't tontor blocked bbs inject in his last .dll version .. ?

serjr
21.12.2005, 14:50
My message was about last version of DLL

Radmin
22.12.2005, 05:34
need a fix plz %)

BBS Add Favorites and more... MORE... MORE!!!! other....
NEED a FIX PLZ!

serjr
22.12.2005, 08:03
Афтар убей себя ап стену, кто такое пишет то открытым тексом?
For what reason you post here exploit? Maybe you don't know how to use PM?

srh
22.12.2005, 08:52
2radmin: читай мой пост на тему того как это фиксить
2all: read my topic about [fix] "bug" ....

Mirror
22.12.2005, 09:56
yes edit your post radmin or some mod do it

serjr
22.12.2005, 10:21
2radmin: читай мой пост на тему того как это фиксить
2all: read my topic about [fix] "bug" ....
2Srh you write right ideas but that will not help because inject work in stored procedure environment, not direct to base. Your post is not a panacea.

srh
22.12.2005, 12:58
2Srh you write right ideas but that will not help because inject work in stored procedure environment, not direct to base. Your post is not a panacea.

ok, logging in as server login in QA, selecting db lin2world
query (as server do):
exec lin_AddBlockList 1, N''delete from ....--
we get reply:
Server: Msg 2627, Level 14, State 1, Procedure lin_AddBlockList, Line 41
Violation of PRIMARY KEY constraint 'PK_user_blocklist'. Cannot insert duplicate key in object 'user_blocklist'.
Server: Msg 50000, Level 16, State 1, Procedure lin_AddBlockList, Line 44
Cannot find add blocklist: char id = [1], target naem[]
The statement has been terminated.
Server: Msg 229, Level 14, State 5, Line 1
DELETE permission denied on object '....', database 'lin2world', owner 'dbo'.

testdude
22.12.2005, 15:16
Cannot find add blocklist: char id = [1], target naem[]<offtopic> nice typo by ncsoft there xD </offtopic>
is there not a way to limit the size of the execute line for the store procedure? i noticed that if u do anything longer than delete from...... it cuts the end off, would this be because of the NVARCHAR(50) in the procedures veriabley thingies? change the 50 to 17 maybe fix this problem? i dunno, i r teh nub at sql stuffs xD

serjr
22.12.2005, 15:22
what about bbs ?

RmzVoid
22.12.2005, 16:02
srh's fix helps, but still need keep select and insert rights for DB user.
IMHO tontor can make parser for sql injections in command parameters ))

kembl
22.12.2005, 16:59
So, what if hack@#s try to use exec?
The right way to solve this injection is replace any quote to double quote ' -> '' on any request from client, maybe torune can add this to his magic dll?

I think not far this day, when l2server will be only addon for torune's dll :)

top-gear
23.12.2005, 02:39
RmzVoid delete your post, dont post direct commands like these!!!

I think the solution is to disable the block command server side. Is that possible? It surely requires hexing

srh
23.12.2005, 04:36
srh's fix helps, but still need keep select and insert rights for DB user.
IMHO tontor can make parser for sql injections in command parameters ))

as i say in my post u need some select only rights on few tables (builder... and user_data) and all (for server account).

HF
23.12.2005, 05:05
srh's fix helps, but still need keep select and insert rights for DB user.
IMHO tontor can make parser for sql injections in command parameters ))

as i say in my post u need some select only rights on few tables (builder... and user_data) and all (for server account).i cant make setting in sql2005. You can help me? tutorial guide :)

top-gear
23.12.2005, 06:55
yes,that would be nice.tell me for sql 2000 too pls

Please someone tell me how to hex friendinvite and block. I don't want them to work at all. I don't know about bbs but those two commands are a serious problem right now.

srh
23.12.2005, 07:49
okok i tried to read PM :) i've check out few fings and then write some tutorial :P

kembl
23.12.2005, 08:11
srh's fix helps, but still need keep select and insert rights for DB user.
IMHO tontor can make parser for sql injections in command parameters ))

as i say in my post u need some select only rights on few tables (builder... and user_data) and all (for server account).i cant make setting in sql2005. You can help me? tutorial guide :)

Check here https://postpacific.mmorpg-game.online/forum/viewtopic.php?p=26910#26910
this soluton for both 2000 and 2005, cause it in RAW-t-sql command format.
that script still under update! be aware!

tontor
23.12.2005, 12:21
srh's fix helps, but still need keep select and insert rights for DB user.
IMHO tontor can make parser for sql injections in command parameters ))

Already working on it :). It will be posted here when finished, as far as BBS injection still goes. I tested it with example you provided as well as my own (serjr) and the injection failed. Since you said you were not 100% sure was still through BBS I'll assume it was through /block /friendinvite etc unless can provide more details.

top-gear
23.12.2005, 12:34
tontor if you find a solution pls post it at a seperate patch. My server freezes if I use help fix, I suppose cause of the too many accounts and online ppl. I would like to have a seperate tool to fix those probs.

I have the BBS function disabled,so its a bit difficult to inject through there don't you think?

horyfilipe
23.12.2005, 13:11
top-gear how many players you have? Whats linerror says? I think last tontor's dll is 100% stable, i run 15 hours and since it was released, my server never crashed because of dll, only cause of the holy USERSOCKET.

Btw.. about usersocket, i realized when i optimize and reindex database, it happens less often.

tontor
23.12.2005, 18:26
I've added a hijack in assemble checking if the return is to CDBSocket::SendV if so, and the packet contains a unicode string to be assembled, it is filtered. It appears all sends to cached no matter what cdb send function is used will at one time call CDBSocket::SendV, this should cover all input to cached. All user input seems to be unicode not ascii.

So here you go, hopefully should solve sql injection problems. Filters are for ' " and -. Upon attempt it is logged to l2server with not much detail, just the string that was attempted and the packet gets dropped, you'll see an assemble error too, because i fail the assemble of the packet if filter matches, causing packet to be dropped.

Flamestrike
23.12.2005, 18:42
In testing tontor. Big thanks

vex
23.12.2005, 19:07
tontor the best!!!

testing too

toolpunk
23.12.2005, 19:11
GREAT! :D
thx a lot :)
you are da man^^

Domzelan
23.12.2005, 19:23
i dont know what to say :)))))))))) - SUPER

Radmin
23.12.2005, 20:37
tonor plz PM me.. i'm send for u new bug.. for get all skill...

i'dont understand how fixed him..
maby u work for it... maby...

4it0rz take for all admin Merri xristmas surprize...

wtf in word....

tontor
23.12.2005, 21:03
tonor plz PM me.. i'm send for u new bug.. for get all skill...

i'dont understand how fixed him..
maby u work for it... maby...

4it0rz take for all admin Merri xristmas surprize...

wtf in word....

Awaiting your reply.

vex
23.12.2005, 21:08
Have a little not critical bug

---
WARN:Possible SQL Injection attempt: "MacKu-LLIoy" packet was discarded
---

I think need to change one dash to double dash...

Alamar
23.12.2005, 22:16
Maybe a stupid question, but if quotes are filtered, why it is necessary to filter dashes, too?

Radmin
23.12.2005, 22:18
ok..ok.. boyz...
dont hate me...
u'm post bugz ...
and still witing who fixid it... $)
more admins... more fasted admins... and i know.. fix will be created.. if i dont posted it - u dont know what's a bug...

8)

sry all..

toolpunk
23.12.2005, 22:25
could you please stop posting a complete how to where every idiot can read it?
its cause of people like you that more and more pservers are under attack of cheaters and botters.
please remove it from your post and pm tontor and torune.
they are working on a solution...
keep in mind that you shouldnt flood their inbox with thousands of messages.
when you message em once its enough ;)

serjr
23.12.2005, 22:30
GRRRR i will gnaw off you leg Radmin GRRRR
sry just can't deter myself

top-gear
23.12.2005, 22:40
tontor please can you make a patch with the last fix only? my server freezes after 10 mins if I use the whole patch

Flamestrike
24.12.2005, 00:46
Patch working fine to meh

rodier
24.12.2005, 10:29
hi
how to use the help exploit? I simply try to go to doorman click on him.. he tell me something..then I click in help on open gate
<a action="bypass -h menu_select?ask=-201&reply=1">open</a>


but nothing does.. Im using tontor patch of course......... but 2 players told me, they seen player that open castle door..

is there another help html? or Im doing something wrong [and tontor patch is not 100% proof... maybe because we have link failed? but i think link patch failed is only about receipts.. and we have another ID... ]

horyfilipe
24.12.2005, 14:03
Rodier, i think ur problem is link failed yes lol.. check offsets, man, and fix it

tontor
24.12.2005, 16:33
hi
how to use the help exploit? I simply try to go to doorman click on him.. he tell me something..then I click in help on open gate
<a action="bypass -h menu_select?ask=-201&reply=1">open</a>


but nothing does.. Im using tontor patch of course......... but 2 players told me, they seen player that open castle door..

is there another help html? or Im doing something wrong [and tontor patch is not 100% proof... maybe because we have link failed? but i think link patch failed is only about receipts.. and we have another ID... ]

This would be in the bypass handler, not link, but correct your link problem, and again assure that this is really happening. If so then its definitely worth looking at. link handler is specific to linking htmls, bypass handles a majority of requests such as that one. but with link failed they can request the html (which they can because link is broken) they would be able to successfully send the bypass cmd.

Firedaemon
28.12.2005, 03:04
Great work tontor; as always

tontor
28.12.2005, 17:15
Problem regarding skill bug recently discovered has been fixed in this release. For those who don't already know this bug allowed a user to learn a skill level higher then they were really allowed to. NCsoft only added a check for cross class, and if they had already obtained the level of that skill. So it was possible to have a lvl 40 pr with lvl 74 bow masteries, and such things. The server only checked the required level for the skill when sending the skill acquire list, the client then responds with a packet providing skillid and lvl to be learned, this can easily be altered and there's a very easy way which users can do it that I wont bother to discuss. So here's the latest revision including support for

html exploit
overbuff
char cloning (there is a known way this can be evaded but yet to duplicate it)
sql injection (filtering for - was removed now only quotes)
skillhack

When someone attempts to learn a skill level higher then they are allowed it will be logged as followed to the l2server console, and err logs.

12/28/2005 10:58:xx.xx4, WARN:ACCID:477 attempted to learn SKILLID:122 SKILLLVL:15 REQLVL:74 - USERSLVL: 73

The error message for someone trying to learn a skill not in their class looks something like this. (however none of the information except name is correct)

12/28/2005 11:01:xx.xx8, [shillien_oracle][1078974200] no SkillAcquireInfo exist for (?`, )
12/28/2005 11:01:xx.xx8, [UserSocket.cpp][5588] hacking? user[kekeke] class[96] skill_id[2] skill_level[2043322732]


DLL is attached below.

Mirror
28.12.2005, 17:32
great job. thanks :)

edit : question, why - filtering has been removed ? not necessary ?

horyfilipe
28.12.2005, 18:33
Tontor, im writing here because i think you are not able to receive PM's.
---------------------
Dear Tontor, thank you for your useful patches, you are really a great programmer

I would like to know if you could make a client/server patch so that if client patch is 1, server gets htmls from 1/*. if client patch is 2, server gets htmls from 2/*.

Purpose: having 2 languages in the same server, providing just a client patch for this. So that i have English htmls and portuguese htmls in my server. Something on client would identify english or portuguese. Understand?

Also, if possible, I would like to have a different key for l2player or just some way to safely get rid of it.

Paying through paypal. If possible, then please quote.

serjr
28.12.2005, 19:06
Yes thanks tontor, we very appreciate your work ;)

Flamestrike
28.12.2005, 19:25
With the previous .dll the clonings were still able to multiply. Let's try with this one and see.

top-gear
28.12.2005, 19:59
Pls tontor I would like a patch doing all these but without html exploit protection, server freezes :/

tontor
28.12.2005, 21:58
With the previous .dll the clonings were still able to multiply. Let's try with this one and see.

Code regarding cloning has not changed. It will still be possible until I know the exact method used for cloning again. Someone had explained it, but the method which they described does not work for me, and the old method gets caught by the fix for me. I haven't spent much time on that issue recently. I haven't even tested the anti cloning code in a while, and not sure if I had changed anything. I'll look into it again in the future.

Tontor, im writing here because i think you are not able to receive PM's.
---------------------
Dear Tontor, thank you for your useful patches, you are really a great programmer

I would like to know if you could make a client/server patch so that if client patch is 1, server gets htmls from 1/*. if client patch is 2, server gets htmls from 2/*.

Purpose: having 2 languages in the same server, providing just a client patch for this. So that i have English htmls and portuguese htmls in my server. Something on client would identify english or portuguese. Understand?

Also, if possible, I would like to have a different key for l2player or just some way to safely get rid of it.

Paying through paypal. If possible, then please quote.

Something like this would be possible at least for the revision of DLL that is in private use, but I don't really wish to release the code that would make that possible because of other things. Maybe if I think of another method that wouldn't take much effort. As far as l2player no idea, I've never even used it :). No criticism to the author I just don't believe in client side safety.

Pls tontor I would like a patch doing all these but without html exploit protection, server freezes :/

Providing these fixes without html exploit code is pretty much impossible due to it is the foundation of the patch, it would take a lot of effort to exclude it.

top-gear
28.12.2005, 22:28
ok thanks for your answer, I will try a better hardware for start :)

Flamestrike
28.12.2005, 23:04
Thanks tontor for the fast reply. All I ment was that cloning is still posible
and I wanted to tell everyone to look out for it. Just a few hours ago caught someone with like 10-15 clones or smth. So yeah be extremely careful.

top-gear
28.12.2005, 23:11
the clones work as normal characters or they are inactive? They only cause lag you mean

Flamestrike
28.12.2005, 23:17
Yeah both of what you say and it causes alot of lag.

TheOrder
29.12.2005, 00:05
You can enter the game with one caracter let it sell some shits :)) and then enter with you're normal caracter and play and in the same time win money get it ?? And yes it makes a lot off lag !!!

top-gear
29.12.2005, 00:20
you can do this with multiple accounts too, there is no point

TheOrder
29.12.2005, 00:44
Yes it does iff you have a slow pc it can be a real pain in the arse . I've seen ppl that entered with 4 characters at a time :) and in the same time play and lvl up with one character . Imagine they sell the items realy fast !!! And in the same time play and have fun , and don't waste time !!!

top-gear
29.12.2005, 00:53
you just open a second client or a bot with another account and sell what you want. It doesn't have to be the same account

TheOrder
29.12.2005, 00:59
Okay an example iff you wanna sell in more than one City example you wanna sell in Giran , Gludio , Dion and Gludin and still wanna play , what you are going to open 5 clients :) and make 5 accounts ??

top-gear
29.12.2005, 01:10
yup. Its more simple than cloning the same char and afraid of being banned

TheOrder
29.12.2005, 01:21
I understand what you mean but iff you have a slow PC ??

top-gear
29.12.2005, 01:33
L2walker doesnt need any special resources to run. Cloning char requires walker also I think. So it is the same thing

Eliot
29.12.2005, 03:56
Thanks for the update Tontor, but i have a question.
Version 121605 had Pet patch, the newest version doesn't have it.
Was it removed or it's there just not showing "patched" text ?

tontor
29.12.2005, 08:26
Thanks for the update Tontor, but i have a question.
Version 121605 had Pet patch, the newest version doesn't have it.
Was it removed or it's there just not showing "patched" text ?

Forgot to include it. I'll post it again later including pet patch as well, its a crash fix for strider/wyvern that users can cause.

Radmin
29.12.2005, 08:34
Tonor plz post your patch wisout html fix.. or add exclude list...
it's realy need for me... and maby other ppl...
i'm used edited ask, raplay and other for users
see this :

<td>Alt. Great Codran</td>
<td>61</td>
<td align=right><?64912?></td>
<td align=right><?64903?></td>
<td><edit var="reply17" type=number width=35></td>
<td><button action="bypass -h menu_select?ask=5694&reply= $reply17" value=" OK" width=20 height=20 fore="L2UI.DefaultButton"></td>
</tr>

or

<a action="bypass -h multisell?id=<?msid?>">Make items</a>


<a action="link manor_0_manage_page.htm">BACK</a>


exapmle of exclude list :
==============
action="bypass -h multisell?id=
action="bypass -h menu_select?ask=5687&reply=

top-gear
29.12.2005, 14:41
I have the same problem too :(
Maybe you could add an .ini file that we can set the changed words for multisell, ask, reply, menu_select, talk_select, etc.

horyfilipe
29.12.2005, 17:10
Is it possible to do, through this dll, a "tax" through all private trades and private stores?

Ex: - A gives 100 adenas to B.
- Server checks if A has 100 adenas + 10% (10 adenas)
- If yes, give 100 adenas to B and give 10 adenas to server(/dev/null)
- If no, trade can't be made.

Ex2: - A gives great sword to B
- Server calculates great sword price and check if player has 10%(in adena, course) of it.
- If yes,, etc.. if no, etc..

Purpose: setting global tax when players are demasiated rich.. er


PS: I agree the idea that soon l2server will be just addon for tontor dll, lol

top-gear
29.12.2005, 23:28
The tax is not a good idea,but the checking between the two users that are trading is really smart.some russian say that they have found a way to dupe items via trade. Nothing is testet yet but if that works server are screwed up

Flamestrike
30.12.2005, 00:29
A simple LoL at bot cloning. If we can just figure out a way to stop them.

horyfilipe
30.12.2005, 04:25
oshe
http://www.horyu.com.br/img/uploads/de7181c393.jpg

tontor
30.12.2005, 08:02
The tax is not a good idea,but the checking between the two users that are trading is really smart.some russian say that they have found a way to dupe items via trade. Nothing is testet yet but if that works server are screwed up

There are several methods known for duping and yes there is one that involves trading. I have been looking at a way to fix it, but it does not only include trading yourself. There needs to be a lot of work done to the warehouse/trade system.

Still need to look at the cloning issues again also, all this time fixing exploits and bugs has taken away from time of implementing new features in my private release.

-----


I really don't take personal requests for additional features as I have enough of our own features to implement with not enough time.

top-gear
30.12.2005, 13:52
youre right tontor, you already have done so much for us. thank you and keep up the good work

horyfilipe
30.12.2005, 15:58
Ive heard some people are going to private store in party and someone throws adena on the floor and then it returns 4x more... something LIKE that.. any idea?

avatard
01.01.2006, 06:36
great job, and it'd had been better if you at this point supplied us with your kind of cash coords, be it paypal or anything, please.

Firedaemon
03.01.2006, 19:04
Hey Tontor, have you considered opening up project space on sourceforge.net and turning this into a project that can be collaborated on in the open source community?

tontor
04.01.2006, 12:26
great job, and it'd had been better if you at this point supplied us with your kind of cash coords, be it paypal or anything, please.

I will get back to you on that :).

Hey Tontor, have you considered opening up project space on sourceforge.net and turning this into a project that can be collaborated on in the open source community?

I am all in favor of open source as I have released several projects under GPL before, but as has been discussed earlier in this thread, what is here released on PP is only a small portion of the project. Where the public release has only ~20 patch offsets, the one for my own private use has over 60. Really the exploits section accounts for about 1/4th of the project, and is the only part I wish to make public at this time. It is the foundation of this project so branching at this point would not be something I would care to do. I have a lot of work on this project to do and not enough time as is, this would only delay me even more. I had noted earlier in the thread when I am finished or tired/bored of this project the full source for even the private release will most likely be public.

toolpunk
04.01.2006, 12:27
yeah...
cool idea :)
then a nice rewritten authd that can interact with the current files and we were done :D

Koner
05.01.2006, 09:15
Tontor.
We have a new html exploits.
If u intrested PM me i'll send u examples.

DarkE
06.01.2006, 09:48
nice, but where located log's from this console (in l2logd/log/err is missing)?

sorry for my bad english

tontor
06.01.2006, 11:33
nice, but where located log's from this console (in l2logd/log/err is missing)?

sorry for my bad english

l2server/log/err unless you use logd, then logd/log/err/*server*.log

flakka
06.01.2006, 19:55
Moving this to the stickies section, since it deserves it's own. :wink:

Keep up the awesome job tontor! Gokurousan!

toolpunk
06.01.2006, 22:49
do such stuff via pm please...
selling is forbidden at these boards and topics that deal with buying files are usually closed.
thx for your attention :D

horyfilipe
07.01.2006, 02:24
Sorry, I thought it was forbidden to sell/buy stolen stuff, yes.. but i asked for something made from scratch, is it against the rules?

sorry and thanks for attention

TheOrder
07.01.2006, 06:21
do such stuff via pm please...
selling is forbidden at these boards and topics that deal with buying files are usually closed.
thx for your attention :D
Sorry, I thought it was forbidden to sell/buy stolen stuff, yes.. but i asked for something made from scratch, is it against the rules?

sorry and thanks for attention

Okay i am staring at the forum and i can't see wtf is he selling or ho is selling something , it might me be the fact that is 8 Am :) here and i haven't slept one good damn minut ! Iff you are talking about Tontors "open source project" i understand :D . Anyway hope i get more info about this . Maybe tontor is not ready to share his complete projects . Anyway I thank you even for the little things that you share !!!

horyfilipe
07.01.2006, 13:00
lol, you are confused because my post was deleted, but you may guess what I asked to buy/donate/whatever

TheOrder
07.01.2006, 20:52
lol k

tontor
10.01.2006, 13:40
Update:

Clone detection has been updated based on a newer method being used to clone chars. It should catch most but to my knowledge there is still 1 more way to do it, but it cant be used to dupe. A race condition in l2server allowed the previous detection to be avoided, l2server does not lock its SID map allowing it to be overwritten, then unlinking the incorrect object leaving a connectionless but functional ghost in the world.

Pet patch is a strider/wyvern fix, allowing a user to crash the server at will. Identified most commonly as a crash in IconAction. Just forgot to include it in the last release.

I also added an idiot box, halting the loading process of l2server if one of your patches fails and warning you. I can not stress this enough and people do not seem to pay attention. If you have a patch failure especially in link, then html exploit is completely vulnerable.


The following includes

HTML exploit fix
overbuff fix
clone fix (updated)
pet fix
anti sql injection fix
skillhack fix

Eliot
10.01.2006, 14:12
im not as proficient in ass licking as The Order but just have to say that this is absolutely hilarous. Thank You.

horyfilipe
10.01.2006, 18:59
Thanks!!
Maybe new dll crash related?

[php:1:a3697a5b78]
Server Up Time Tue Jan 10 16:07:35 2006

Current Time : Tue Jan 10 16:35:57 2006

Elapsed Time : 0 days 0 hours 28 minutes 22 seconds
IOBufferPool - 12475

[(2840) 2006/01/10 16:35:57]: =======================
an Access Violation in module Unknown at 001b:0021005d.
start at 2006/1/10 16:05:25
Write to location 7e5ba138 caused an access violation.

Registers:
EAX=7e5ba138 CS=001b EIP=0021005d EFLGS=00010202
EBX=00000000 SS=0023 ESP=6f04fdc0 EBP=6f04fe08
ECX=26210114 DS=0023 ESI=8f2a2ca4 FS=003b
EDX=00602c04 ES=0023 EDI=26210114 GS=0000
Bytes at CS:EIP:
01 08 00 00 00 00 00 1c e4 8f 11 90 00 21 00 40
Stack dump:
6f04fdc0: 00440894 31be906c 8f2a2ca4 00000000 6f04fdbc 6f04fe04 005a7040 00000000
6f04fde0: 6f04fe10 004ad8b9 40103078 31be906c 8f2a2ca4 00000000 6f04fdc4 6f04fe4c
6f04fe00: 005a4200 ffffffff 6f04fe58 0050a5ff 26210114 00000000 6f04fe00 8ed90acc
6f04fe20: 00000002 74479a40 6f04feb4 0001b057 00036b57 fffff221 6e892cc0 006c07d4
6f04fe40: 40103078 00000000 6f04fe1c 6f04feb8 005ad3c8 ffffffff 6f04fec4 0050fa78
6f04fe60: 8ed90acc 74479a53 14d57b0b 8ed90acc 77e6bb6d 00000001 6f04fedc 00000000
6f04fe80: 71c02572 00337a90 6f04fea0 71c0575e 000003e5 14d57ad9 00336770 000003e5
6f04fea0: 6f04ff78 00000014 006c0794 31be906c 74479a40 6f04fe68 6f04fee4 005ad778
6f04fec0: ffffffff 6f04fef0 00539866 14d57b0b 8ed90acc 77e6bb6d 6f04ff0c 6f04feec
6f04fee0: 6f04fecc 6f04ff6c 005afaa0 ffffffff 6f04ff78 0053be2a 00000014 00000001


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

void IOThread_common(void *arglist) <--
void CIOSocket::ReadCallback(DWORD dwTransferred) <--
CUserSocket::OnRead <--
ActionPacket <--
CCreature::Action()

Thread[0] (ahehe): Lock Stack :

Thread[1] (good): Lock Stack :




[/php:1:a3697a5b78]

madar
10.01.2006, 20:23
working for me. btw. thx tontor

Aspire
11.01.2006, 07:53
Thanks!!
Maybe new dll crash related?
...


I get same error, when Shielen Knight summon his debuff cubic, in previous dll i see patch on pets and its solve this problem.

sorry for my bad eng.

/rus
Данная проблема возникает когда СК суммонит его дебаф кубик, тестили многократно в 70% случаев сервер падает, у тонтора была одна библиотечка с патчем на петов, которая данную проблему решала, но в последующие библиотечки он его не включил - писал что забыл и выложит позже, так что ждемс.
Ну а по хорошему лечится сие дело хексом, так что снифер в руки и вперед.
/rus

Shawnmb
11.01.2006, 09:11
Pet patch gives a nasty "patching failed, your server is not safe" error message on a non-modded C1 L2server exe.

Aspire
11.01.2006, 14:20
Pet patch gives a nasty "patching failed, your server is not safe" error message on a non-modded C1 L2server exe.

but modded L2Server working great with this patch :wink:

Shawnmb
11.01.2006, 15:00
The point of my post was most definentally not to point out that it works, on the contrary, I was stating that it DIDN'T work, meaning it lacks support and protection for anyone who doesn't have a modded executable. Generally you would say something like this when you would like the named errors fixed, if at all possible.

<3 tontor.

FidoW
11.01.2006, 18:14
I get box of "patch failure", how to fix this ? try to patch l2server again ? can help me with this ? What i doing wrong?
thx tontor!

Decaz
11.01.2006, 19:12
tontor, please fix problem with debuff cubic of SK
i'll give some cash )))

Flamestrike
11.01.2006, 20:33
Huh ? Wrong thread m8 :P

Sayrus
11.01.2006, 21:26
<rus>И че у меня после последнего патча екзешник вообще не запускается :) можете ктонить дать пропатченный сервак под 3 хроники</rus>
At me after last patch l2server it is not started at all:) can give a server under 3 chronicles

drzoom
12.01.2006, 09:22
tontor, we have a problem. Last 2 versions of ur dll don't allow dialogs.
Example1: recipes - 1st dialog opens, 2nd (craft item) - no
Example2: npc valkon (example, all npc have such problem) - 1st dialog opens, but 2nd by link - no!

Have anybody same problem or not, and how to fix it if possible?
Thanks!

horyfilipe
12.01.2006, 11:27
drzoom i think its bad ai.. it happened to me before

drzoom
12.01.2006, 12:02
how? all npcs?

horyfilipe
12.01.2006, 14:13
im not good at ai but i remember it was something with a default handler, 32 i think..

tontor
12.01.2006, 15:48
tontor, please fix problem with debuff cubic of SK
i'll give some cash )))

I have no problems with summoning or using poltergeist cubic, could you be more specific?


an Access Violation in module Unknown at 001b:0021005d.
6f04fdc0: 00440894 31be906c 8f2a2ca4 00000000 6f04fdbc 6f04fe04 005a7040 00000000


The first address on stack is the real return address, its calling a vtable function for user or socket and looks as if the stack is off by one. This should have nothing to do with the pet patch given the location of the crash. EIP looks as if it could be unicode data being the chars !], seen a few people who have this problem and EIP is always in the format of being unicode text and always has been chars such as !@#$%^&*()[], really have no idea of the problem, but its always after calling user vtable functions, not always the same ones. Usually given the nature of the calls from what i have seen, it doesn't take user input so i don't think its a buffer overflow possible from the client, but its not impossible. If it is, well allowing a user to set EIP to run any code they wish inside l2server could pose quite a threat. Somehow doubt this is the problem though. If its related to cubic, the problem may be in your scripts somewhere.

Pet patch gives a nasty "patching failed, your server is not safe" error message on a non-modded C1 L2server exe.

If you have no striders/wyverns you have nothing to worry about, hit ok and continue. If you do, then well its possible for someone who knows how to crash your server :).

tontor, we have a problem. Last 2 versions of ur dll don't allow dialogs.
Example1: recipes - 1st dialog opens, 2nd (craft item) - no
Example2: npc valkon (example, all npc have such problem) - 1st dialog opens, but 2nd by link - no!

Have anybody same problem or not, and how to fix it if possible?
Thanks!

I dont have this problem at all.

Met45
12.01.2006, 16:27
Hi Tontor,

I've got a problem with ur patch too,
if I unpack it into my L2server directory and patch it, all was successfully patched, but if I wanne to start the main server with the patched server.exe, it crashed,
doesn't matter which *.dll is used.
I don't know if I do sth wrong but plz can u answer me about that, that would be great, because I want to disable buffstacking on my server...
(Windows Error MSG: L2Server.exe cause an error, a errorprotocol will be created)


Thx a lot...

vieruemil
12.01.2006, 17:15
It does not crash for me but what is strange... it does not protect me from the html exploit... It warns me in the console... but still i have multisell exploits , walkers... Right now i have 3 right in middle of Giran...
Whatever...



And right now i recived another interesting error...
An accoun was trying to use an exploit.
But the problem is this error.

l2online
12.01.2006, 19:06
sorry... still works


Server Up Time Thu Jan 12 15:07:01 2006

Current Time : Thu Jan 12 19:53:01 2006

Elapsed Time : 0 days 4 hours 46 minutes 0 seconds
IOBufferPool - 1927

[(2744) 2006/01/12 19:53:01]: =======================
an Access Violation in module Unknown at 001b:888bfff2.
start at 2006/1/12 15:06:57
Write to location ffff62ab caused an access violation.

Registers:
EAX=ffff62ab CS=001b EIP=888bfff2 EFLGS=00010286
EBX=4401e6d4 SS=0023 ESP=6ec7fdec EBP=6ec7fe10
ECX=00000050 DS=0023 ESI=996f11e4 FS=003b
EDX=37811278 ES=0023 EDI=00000001 GS=0000
Bytes at CS:EIP:
00 00 98 89 01 00 d8 53 fd ff a8 02 00 00 00 00
Stack dump:
6ec7fdec: 998923f4 00000002 4401e6d4 6ec7fddc 6ec7fe48 6ec7fdec 6ec7fe48 005ac6b0
6ec7fe0c: ffffffff 6ec7fe54 00503181 ffff62ab 6f1a6901 6f1a6901 998923f4 00000002
6ec7fe2c: 6f1a69d0 00000000 9984cab8 ffff62ab 4401e6d4 c14c9078 6ec7fe24 6ec7feb4
6ec7fe4c: 005acdf0 ffffffff 6ec7fec0 0050fa78 998923f4 6f1a69e3 05ca9219 998923f4
6ec7fe6c: 7c8092ac 00000001 6ec7fed8 00000000 71ab2b32 00346868 6ec7fe9c 71abb716
6ec7fe8c: 000003e5 05ca9216 003459a8 000003e5 6ec7ff74 0000001f 006c0794 31bf906c
6ec7feac: 6f1a69d0 6ec7fe64 6ec7fee0 005ad778 ffffffff 6ec7feec 00539866 05ca9219
6ec7fecc: 998923f4 7c8092ac 6ec7ff08 6ec7fee8 6ec7fec8 6ec7ff68 005afaa0 ffffffff
6ec7feec: 6ec7ff74 0053be2a 0000001f 00000001 0053cbe6 00000001 0000001f 998936e4
6ec7ff0c: 00000000 00000000 3fcf2610 00000000 00001000 00010000 bffeffff 00000003


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

void IOThread_common(void *arglist) <--
void CIOSocket::ReadCallback(DWORD dwTransferred) <--
CUserSocket::OnRead <--
IconAction <--
User::IconAction()

Thread[0] (ahehe): Lock Stack :

Thread[1] (good): Lock Stack :

Aspire
12.01.2006, 19:36
l2online, do you test it on debuff cubic from SK? Many people have error like this, on my server it's happend only with cubic. I working on scripts, but still can't find error.

sorry for my eng.

horyfilipe
12.01.2006, 20:04
I dont think im breaking rules, so if I am please correct me:

Tontor, please PM with price information on your private dll release.

thanks!

Flamestrike
12.01.2006, 20:08
Or you could pm him. Right?

horyfilipe
12.01.2006, 20:22
In my experience, i realized he doesnt like reading inbox :P

toolpunk
12.01.2006, 20:55
then he prolly isnt interested in such a deal.
there are people that appreciate having something unique more than money ;)
thats the way it goes...

horyfilipe
12.01.2006, 21:56
Not really.. sometime ago I sent about 3 pms about something and didnt get answer. When I posted here, he answered, thats why im repeating..

Firedaemon
13.01.2006, 06:55
Thanks for the updated release. Previous version worked wonderfully with no issues. I will report if we encounter any with this.

tontor
13.01.2006, 13:07
Private release is not for sale, or trade. It will remain private. Requesting additional features is a waste of time, I don't have time for it.

TheOrder
13.01.2006, 14:53
That's what i like about you tontor you don't sell you're files , and just help the community , not like a lot off ppl i know !!! That are a lot more materialistic !!! Tnx for everything you do and for you're shares !!!

Aspire
13.01.2006, 21:14
Server Up Time Fri Jan 13 21:16:19 2006

Current Time : Fri Jan 13 22:18:12 2006

Elapsed Time : 0 days 1 hours 1 minutes 53 seconds
IOBufferPool - 9939

[(1608) 2006/01/13 22:18:12]: =======================
an Access Violation in module L2server.exe at 001b:0053a121.
start at 2006/1/13 21:16:09
Read from location 6683fb44 caused an access violation.

Registers:
EAX=680368d6 CS=001b EIP=0053a121 EFLGS=00010202
EBX=6699fb14 SS=0023 ESP=6699f990 EBP=680387f0
ECX=00000002 DS=0023 ESI=6683fb44 FS=0038
EDX=00000002 ES=0023 EDI=680368d4 GS=0000
Bytes at CS:EIP:
f3 a4 8b f8 8b 44 24 1c 0f be 00 85 c0 0f 85 c2
Stack dump:
6699f990: a1856f24 680367e0 6699f9d8 a195436c 004dfbcb 680367f2 00001ffe 00603805
6699f9b0: 6699fa1c 00000001 a1856f24 a195436c 00000356 00000395 6699f9b4 6699fa00
6699f9d0: 005ab7b0 ffffffff 6699fa0c 004dfca8 006037cc 6699fa1c 00000001 a1856f24
6699f9f0: a195436c 00000000 000000cb 6699f9e8 6699fd90 005ab7c0 ffffffff 6699fd9c
6699fa10: 004ffabd a1856f24 006037cc 05f00403 00014302 0002420a fffff278 00000000
6699fa30: 481077cf 6699fbc4 00000002 00000000 00000021 00000000 0000096b 000009c3
6699fa50: 000009bd 0000025f 00000160 0000094a 00000040 00000000 00000000 00000000
6699fa70: 00000000 00000000 00000126 0000023e 00000000 00000000 0000007a 00000055
6699fa90: 0000007a 00000055 0000007a 00000055 0000007a 00000055 da65ba81 3ff6915f
6699fab0: 4e25d2cf 40008cb4 00000000 401e0000 00000000 40380000 00000001 00000000


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

void IOThread_common(void *arglist) <--
void CIOObject::TimerDispatch(bool bRootLoop) <--
void CThreadLocalTimer::Dispath <--
void CIOObject::OnIOCallback(BOOL bSucess, DWORD dwTransferred, LPOVERLAPPED lpOverlapped) <--
User::TimerExpired() <--
User::SendCharInfo() <--
FOR ALL NEIGHBOR USER FAST RECT <--
void CSocket::Send(const char* format, ...) <--
void CSocket::SendV(const char* format, va_list va)

Thread[0] (ahehe): Lock Stack :

Thread[1] (good): Lock Stack :

Thread[2] (good): Lock Stack :

Thread[3] (good): Lock Stack :



[(1608) 2006/01/13 22:18:12]: *ioc.cpp:665(Sat May 15 01:37:29 2004) exception

top-gear
14.01.2006, 16:41
Latest dll releases are much more stable :) ty
do you think you can make it print the nickname of every user that tries to use a html or /command exploit?

drzoom
14.01.2006, 17:50
Does anybody know how to solve the problem of appearing dialogs?
On newly created characters doesn't appear any dialog, standing after 1st. Example: try to create clan - click CREATE CLAN and no responce. All npcs do so, appears only 1st dialog, 2nd, 3rd don't appear. Also recipes do the same. How to fix? Without dll all work perfect!

Flamestrike
14.01.2006, 17:51
Latest dll releases are much more stable :) ty
do you think you can make it print the nickname of every user that tries to use a html or /command exploit?

Indeed the latest .dll is running smooth. Great job tontor

sct
16.01.2006, 20:25
Server Up Time Fri Jan 13 21:16:19 2006

Current Time : Fri Jan 13 22:18:12 2006

Elapsed Time : 0 days 1 hours 1 minutes 53 seconds
IOBufferPool - 9939

[(1608) 2006/01/13 22:18:12]: =======================
an Access Violation in module L2server.exe at 001b:0053a121.
start at 2006/1/13 21:16:09
Read from location 6683fb44 caused an access violation.

Registers:
EAX=680368d6 CS=001b EIP=0053a121 EFLGS=00010202
EBX=6699fb14 SS=0023 ESP=6699f990 EBP=680387f0
ECX=00000002 DS=0023 ESI=6683fb44 FS=0038
EDX=00000002 ES=0023 EDI=680368d4 GS=0000
Bytes at CS:EIP:
f3 a4 8b f8 8b 44 24 1c 0f be 00 85 c0 0f 85 c2
Stack dump:
6699f990: a1856f24 680367e0 6699f9d8 a195436c 004dfbcb 680367f2 00001ffe 00603805
6699f9b0: 6699fa1c 00000001 a1856f24 a195436c 00000356 00000395 6699f9b4 6699fa00
6699f9d0: 005ab7b0 ffffffff 6699fa0c 004dfca8 006037cc 6699fa1c 00000001 a1856f24
6699f9f0: a195436c 00000000 000000cb 6699f9e8 6699fd90 005ab7c0 ffffffff 6699fd9c
6699fa10: 004ffabd a1856f24 006037cc 05f00403 00014302 0002420a fffff278 00000000
6699fa30: 481077cf 6699fbc4 00000002 00000000 00000021 00000000 0000096b 000009c3
6699fa50: 000009bd 0000025f 00000160 0000094a 00000040 00000000 00000000 00000000
6699fa70: 00000000 00000000 00000126 0000023e 00000000 00000000 0000007a 00000055
6699fa90: 0000007a 00000055 0000007a 00000055 0000007a 00000055 da65ba81 3ff6915f
6699fab0: 4e25d2cf 40008cb4 00000000 401e0000 00000000 40380000 00000001 00000000


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

void IOThread_common(void *arglist) <--
void CIOObject::TimerDispatch(bool bRootLoop) <--
void CThreadLocalTimer::Dispath <--
void CIOObject::OnIOCallback(BOOL bSucess, DWORD dwTransferred, LPOVERLAPPED lpOverlapped) <--
User::TimerExpired() <--
User::SendCharInfo() <--
FOR ALL NEIGHBOR USER FAST RECT <--
void CSocket::Send(const char* format, ...) <--
void CSocket::SendV(const char* format, va_list va)

Thread[0] (ahehe): Lock Stack :

Thread[1] (good): Lock Stack :

Thread[2] (good): Lock Stack :

Thread[3] (good): Lock Stack :



[(1608) 2006/01/13 22:18:12]: *ioc.cpp:665(Sat May 15 01:37:29 2004) exception

Having the same problem

Firedaemon
16.01.2006, 23:38
Latest DLL is operating wonderful. Been runnning it without any problems whatsoever.

Flamestrike
17.01.2006, 00:14
Yeah same here m8.

tontor
17.01.2006, 02:20
Server Up Time Fri Jan 13 21:16:19 2006

Current Time : Fri Jan 13 22:18:12 2006

Elapsed Time : 0 days 1 hours 1 minutes 53 seconds
IOBufferPool - 9939

[(1608) 2006/01/13 22:18:12]: =======================
an Access Violation in module L2server.exe at 001b:0053a121.
start at 2006/1/13 21:16:09
Read from location 6683fb44 caused an access violation.

Registers:
EAX=680368d6 CS=001b EIP=0053a121 EFLGS=00010202
EBX=6699fb14 SS=0023 ESP=6699f990 EBP=680387f0
ECX=00000002 DS=0023 ESI=6683fb44 FS=0038
EDX=00000002 ES=0023 EDI=680368d4 GS=0000
Bytes at CS:EIP:
f3 a4 8b f8 8b 44 24 1c 0f be 00 85 c0 0f 85 c2
Stack dump:
6699f990: a1856f24 680367e0 6699f9d8 a195436c 004dfbcb 680367f2 00001ffe 00603805
6699f9b0: 6699fa1c 00000001 a1856f24 a195436c 00000356 00000395 6699f9b4 6699fa00
6699f9d0: 005ab7b0 ffffffff 6699fa0c 004dfca8 006037cc 6699fa1c 00000001 a1856f24
6699f9f0: a195436c 00000000 000000cb 6699f9e8 6699fd90 005ab7c0 ffffffff 6699fd9c
6699fa10: 004ffabd a1856f24 006037cc 05f00403 00014302 0002420a fffff278 00000000
6699fa30: 481077cf 6699fbc4 00000002 00000000 00000021 00000000 0000096b 000009c3
6699fa50: 000009bd 0000025f 00000160 0000094a 00000040 00000000 00000000 00000000
6699fa70: 00000000 00000000 00000126 0000023e 00000000 00000000 0000007a 00000055
6699fa90: 0000007a 00000055 0000007a 00000055 0000007a 00000055 da65ba81 3ff6915f
6699fab0: 4e25d2cf 40008cb4 00000000 401e0000 00000000 40380000 00000001 00000000


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

void IOThread_common(void *arglist) <--
void CIOObject::TimerDispatch(bool bRootLoop) <--
void CThreadLocalTimer::Dispath <--
void CIOObject::OnIOCallback(BOOL bSucess, DWORD dwTransferred, LPOVERLAPPED lpOverlapped) <--
User::TimerExpired() <--
User::SendCharInfo() <--
FOR ALL NEIGHBOR USER FAST RECT <--
void CSocket::Send(const char* format, ...) <--
void CSocket::SendV(const char* format, va_list va)

Thread[0] (ahehe): Lock Stack :

Thread[1] (good): Lock Stack :

Thread[2] (good): Lock Stack :

Thread[3] (good): Lock Stack :



[(1608) 2006/01/13 22:18:12]: *ioc.cpp:665(Sat May 15 01:37:29 2004) exception

Having the same problem

This is related to sql injection fix, but my hijack checks the return address to make sure CDBSocket::SendV is the calling function, appears somewhere along the line something is incorrect. I'll take a look at it sometime.

Kenster
17.01.2006, 02:52
Thank you Tontor, Is there any way to find the prick that did this? Is there any way to monitor it? But this does mean people are trying to crash it? Can we block it with the /block hex?

Flamestrike
17.01.2006, 05:02
It's been already posted by torune.

Kenster
17.01.2006, 05:06
I understand that. Question is, will that PREVENT this from crashing my server?

tontor
17.01.2006, 16:12
Thank you Tontor, Is there any way to find the prick that did this? Is there any way to monitor it? But this does mean people are trying to crash it? Can we block it with the /block hex?

I don't think its a user deliberately causing a crash, its while the server is assembling the charinfo packet, It has a unicode string in it and for some reason the return addr check is probably failing to stop it from be parsed by code for some reason causing a crash.

Edit:

I found my mistake causing the crash and have fixed it but at the moment I lack a server to test it on to make sure its correct, I'll post an updated dll to fix this crash later.

horyfilipe
17.01.2006, 18:49
Im lucky, ive got a russian exploiter.

Somehow he knows a way to dupe adena, made billions of adena in less then a week.

His acc has this email: baltazar_666@mail.ru

Is there still a way to dupe stuff?

Kenster
17.01.2006, 22:53
Thank you Tontor, Is there any way to find the prick that did this? Is there any way to monitor it? But this does mean people are trying to crash it? Can we block it with the /block hex?

I don't think its a user deliberately causing a crash, its while the server is assembling the charinfo packet, It has a unicode string in it and for some reason the return addr check is probably failing to stop it from be parsed by code for some reason causing a crash.

Edit:

I found my mistake causing the crash and have fixed it but at the moment I lack a server to test it on to make sure its correct, I'll post an updated dll to fix this crash later.

If you need it to be tested, let me know, I have a few boxes still open that I can make test servers with the PP Release. (Don't want to use my files)

Altharis
18.01.2006, 16:46
Sorry But the char cloning is still working... I detected them on my second server (it is a ppc) server... So it is worcking:(... I have tested the exploit... And it is working...
and of course is working on other servers... This became too much... I am sick of Lineage:(

nucer
18.01.2006, 23:51
My LinError.txt after this errors:
__SafeCastUSer saved the server...
__SafeCastCreature saved the server...

Server Up Time Wed Jan 18 23:10:03 2006

Current Time : Thu Jan 19 01:27:41 2006

Elapsed Time : 0 days 2 hours 17 minutes 38 seconds
IOBufferPool - 12281

[(5268) 2006/01/19 01:27:41]: =======================
an Access Violation in module L2Server412.exe at 001b:00549263.
start at 2006/1/18 23:10:02
Write to location cd8a5de7 caused an access violation.

Registers:
EAX=005b9c38 CS=001b EIP=00549263 EFLGS=00010202
EBX=722bfe20 SS=0023 ESP=722bf428 EBP=722bfe2c
ECX=93b8b29c DS=0023 ESI=722bfe58 FS=003b
EDX=5b9c3807 ES=0023 EDI=00683d50 GS=0000
Bytes at CS:EIP:
d3 8b c7 5f 5e 5b c2 10 00 68 58 0b 62 00 6a 02
Stack dump:
722bf428: 00455e8a 005b595c 00000077 00000007 00000000 ffffffff 00593ff7 00683d50
722bf448: ffffffff 722bf45c 00683cfc 722bfe20 722bfe2c 722bf49c 00592ac6 005a57c8
722bf468: 722bfe20 00000103 19930520 00683d50 00000000 ffffffff 00000000 722bf470
722bf488: 722bf054 722bf50c 0058c42c 00666f10 ffffffff 722bf4bc 00593208 722bfe20
722bf4a8: 722bf604 00683d50 ffffffff 00000000 00000000 722bf4f4 0058bf38 722bfaf8
722bf4c8: 722bfe20 722bf610 722bf604 00683d50 00000000 00000000 00000000 00000000
722bf4e8: 00000000 00000000 00683d50 722bf518 7c82eeb2 722bfaf8 722bfe20 722bf610
722bf508: 722bf604 722bfe20 7c82eeed 722bfe20 722bf8e0 7c82ee84 722bfaf8 722bfe20
722bf528: 722bf610 722bf604 005a57df 00000001 722bfaf8 722bfe20 7c814225 722bfaf8
722bf548: 722bfe20 722bf610 722bf604 005a57df 00684e30 00684e40 722bfa2c 722bf7e0


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

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 AuthRequestKickAccount(CDBSocket *socket, const unsigned char *packet) <--
CSPointer<T> FindObject(int id)

Thread[0] (good): Lock Stack :

Thread[1] (ahehe): Lock Stack :

Thread[2] (good): Lock Stack :

Thread[3] (good): Lock Stack :

tontor, have you any ideas about reason of this error?... I have my server crushing every hour, it's really abnormal!!

SolarWind
19.01.2006, 12:16
Sorry But the char cloning is still working... I detected them on my second server (it is a ppc) server... So it is worcking:(... I have tested the exploit... And it is working...
and of course is working on other servers... This became too much... I am sick of Lineage:(

As I understand, data about the cloned person stored in memory of CacheD. If data stored in DB, i think that's not a problem. If is not present, it is necessary hex cached.

P.S. F*kn translator :)

Somebody tried to make a clone and will check up data in DB?

SolarWind
19.01.2006, 12:30
Tontor, my greatings.
You help so much. But you could not place your creations on direct, constant links?

//ugly translators

vex
19.01.2006, 23:20
My server become unstable last time beafore it works great for 24 hours and more. Yesterday and few days ago it was crashed directly after __SafeCast... now it's more great bugs: !!! deadlock or super-lag detected !!!

Server Up Time Thu Jan 19 14:23:14 2006

Current Time : Thu Jan 19 15:34:39 2006

Elapsed Time : 0 days 1 hours 11 minutes 25 seconds
IOBufferPool - 7028

[(1808) 2006/01/19 15:34:39]: =======================
an Access Violation in module l2server3.exe at 001b:0053c884.
start at 2006/1/19 14:23:11
Write to location 00000000 caused an access violation.

Registers:
EAX=0000000c CS=001b EIP=0053c884 EFLGS=00010206
EBX=77e4193e SS=0023 ESP=4b57fd3c EBP=4b57fd6c
ECX=4b57fd60 DS=0023 ESI=0000ea9e FS=003b
EDX=00000000 ES=0023 EDI=0044d47b GS=0000
Bytes at CS:EIP:
c6 05 00 00 00 00 01 b9 28 a3 8c 16 c7 45 fc 00
Stack dump:
4b57fd3c: 00000000 248b9d78 3fd396c8 167103e8 00000000 248b9d78 3fd396c8 00f43207
4b57fd5c: 4b57fd3c 4b57ff74 005afc90 ffffffff 4b57ff80 0048faad 00000000 00000000
4b57fd7c: 3fd396c8 3fd396c8 02020202 536e6957 206b636f 00302e32 77e5b713 00140000
4b57fd9c: 00000000 417b6250 000000c8 00000000 3fd396c8 3fd39758 f40b5a7c f98a2d88
4b57fdbc: 00000000 00000038 00000023 00000023 00000000 00000000 3fd396c8 00000000
4b57fddc: 00000000 0058eabb 00000000 77e4a99b 0000001b 00000200 4b57fffc 00000023
4b57fdfc: 02000000 f40b5b00 e0bf7dc0 3fd23230 e169a510 00000000 00000000 00000001
4b57fe1c: 20a30178 e0bf7dc8 3fd398f0 00000001 3fd23228 00000000 20a30178 f9df2dd8
4b57fe3c: c0503800 f9df2dd8 c0503e98 c0503800 c0503e98 f40b5b08 e0b6148c f40b5b10
4b57fe5c: 00593de7 00590a50 202f7168 4b57fea0 00590e17 0000000c 00590e0f 00000000


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

void ListenThread_common() <--
unsigned __stdcall WaitThread(void *) <--
!!! deadlock or super-lag detected !!!

Thread[0] (good): Lock Stack :

Thread[1] (good): Lock Stack :

I would be very thanksful if somebody tell me whats wrong!

Altharis
20.01.2006, 20:57
I have made a clone, i have made my self an admin...And in the database i can fin in the user data number one for builder account...
This is olready a real **** in the ass... I think i will close my servers...
Damn it... We solve a bug an another appears... Sorry :(But in the cheat forum yhere are a lot of ways to mess up with lineage... So a i think lineage has no future... If the official are full of bots and bugs, then what can we do... But let's try... The hope dies the last... :(

vex
21.01.2006, 20:11
Tontor! We need your help! I dont sure but i thnik this is some bug or exploit. My server crushed two times today with following:

Server Up Time Sat Jan 21 12:16:32 2006

Current Time : Sat Jan 21 19:30:03 2006

Elapsed Time : 0 days 7 hours 13 minutes 31 seconds
IOBufferPool - 6886

[(1740) 2006/01/21 19:30:03]: =======================
an Access Violation in module l2server3.exe at 001b:005b4e59.
start at 2006/1/21 12:16:28
Write to location 0000003c caused an access violation.

Registers:
EAX=00000000 CS=001b EIP=005b4e59 EFLGS=00010206
EBX=00000000 SS=0023 ESP=6d78fdf0 EBP=6d78fe14
ECX=6d78fe08 DS=0023 ESI=942bda4c FS=003b
EDX=36bbe030 ES=0023 EDI=00000001 GS=0000
Bytes at CS:EIP:
c6 40 3c 01 6a 01 6a 00 54 ff b6 b8 19 00 00 e8
Stack dump:
6d78fdf0: 94dbb5cc 00000002 00000000 6d78fde0 6d78fe4c 6d78fdf0 6d78fe4c 005ac6b0
6d78fe10: ffffffff 6d78fe58 00503181 00000026 74335f00 74335f00 94dbb5cc 00000002
6d78fe30: 74335fe0 00000000 6cfd57a0 00000026 00000000 00000000 6d78fe28 6d78feb8
6d78fe50: 005acdf0 ffffffff 6d78fec4 0050fa78 94dbb5cc 74335ff3 0b68ebcf 94dbb5cc
6d78fe70: 77e4193e 00000001 6d78fedc 00000000 71a912ca 003985f8 003985f8 71aa1a16
6d78fe90: 000003e5 0b68ebcc 003970b8 000003e5 6d78ff78 0000000c 006c0794 31cc906c
6d78feb0: 74335fe0 6d78fe68 6d78fee4 005ad778 ffffffff 6d78fef0 00539866 0b68ebcf
6d78fed0: 94dbb5cc 77e4193e 6d78ff0c 6d78feec 6d78fecc 6d78ff6c 005afaa0 ffffffff
6d78fef0: 6d78ff78 0053be2a 0000000c 00000001 0053cbe6 00000001 0000000c 94dbc8bc
6d78ff10: 00000000 00000000 3fd42640 00000000 00001000 00010000 bffeffff 00000003


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

void IOThread_common(void *arglist) <--
void CIOSocket::ReadCallback(DWORD dwTransferred) <--
CUserSocket::OnRead <--
IconAction <--
User::IconAction()

Thread[0] (ahehe): Lock Stack :

Thread[1] (good): Lock Stack :

2Rain
23.01.2006, 07:04
Мужики, завалили ветку баглистами... :) Не дело.

У меня вопрос по существу - у кого есть пофиксенный квест "COIN COLLECTOR"? Патч Тонтора его не фиксит, как оказалось. Хелп!

-------------------
Sorry, hwo have fixed "Coin Collector" quest? Help me, please.

Start of bugged quest in AI.OBJ:

class warehouse_keeper_sorint : warehouse_keeper

tontor
23.01.2006, 07:42
Tontor! We need your help! I dont sure but i thnik this is some bug or exploit. My server crushed two times today with following:

Server Up Time Sat Jan 21 12:16:32 2006

Current Time : Sat Jan 21 19:30:03 2006

Elapsed Time : 0 days 7 hours 13 minutes 31 seconds
IOBufferPool - 6886

[(1740) 2006/01/21 19:30:03]: =======================
an Access Violation in module l2server3.exe at 001b:005b4e59.
start at 2006/1/21 12:16:28
Write to location 0000003c caused an access violation.

Registers:
EAX=00000000 CS=001b EIP=005b4e59 EFLGS=00010206
EBX=00000000 SS=0023 ESP=6d78fdf0 EBP=6d78fe14
ECX=6d78fe08 DS=0023 ESI=942bda4c FS=003b
EDX=36bbe030 ES=0023 EDI=00000001 GS=0000
Bytes at CS:EIP:
c6 40 3c 01 6a 01 6a 00 54 ff b6 b8 19 00 00 e8
Stack dump:
6d78fdf0: 94dbb5cc 00000002 00000000 6d78fde0 6d78fe4c 6d78fdf0 6d78fe4c 005ac6b0
6d78fe10: ffffffff 6d78fe58 00503181 00000026 74335f00 74335f00 94dbb5cc 00000002
6d78fe30: 74335fe0 00000000 6cfd57a0 00000026 00000000 00000000 6d78fe28 6d78feb8
6d78fe50: 005acdf0 ffffffff 6d78fec4 0050fa78 94dbb5cc 74335ff3 0b68ebcf 94dbb5cc
6d78fe70: 77e4193e 00000001 6d78fedc 00000000 71a912ca 003985f8 003985f8 71aa1a16
6d78fe90: 000003e5 0b68ebcc 003970b8 000003e5 6d78ff78 0000000c 006c0794 31cc906c
6d78feb0: 74335fe0 6d78fe68 6d78fee4 005ad778 ffffffff 6d78fef0 00539866 0b68ebcf
6d78fed0: 94dbb5cc 77e4193e 6d78ff0c 6d78feec 6d78fecc 6d78ff6c 005afaa0 ffffffff
6d78fef0: 6d78ff78 0053be2a 0000000c 00000001 0053cbe6 00000001 0000000c 94dbc8bc
6d78ff10: 00000000 00000000 3fd42640 00000000 00001000 00010000 bffeffff 00000003


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

void IOThread_common(void *arglist) <--
void CIOSocket::ReadCallback(DWORD dwTransferred) <--
CUserSocket::OnRead <--
IconAction <--
User::IconAction()

Thread[0] (ahehe): Lock Stack :

Thread[1] (good): Lock Stack :


This is indeed the what the pet patch fixes, and is apparent the version you are using doesn't have the pet patch or you ignored the warning that a patch has failed and continued anyways. EIP is the location of my hijack which would not be writing to 3c, if it was patched.

the original that does not check, which eax is null and is not checked. this is your problem.
005B4E59 . C640 3C 01 MOV BYTE PTR DS:[EAX+3C],1

If it was patched it wouldn't happen.
005B4E59 .- E9 E2165C20 JMP patch.pet_fix

->
20B76540 > 83F8 00 CMP EAX,0
20B76543 74 0D JE SHORT patch.20B76552
20B76545 3E:C640 3C 01 MOV BYTE PTR DS:[EAX+3C],1
20B7654A 6A 01 PUSH 1
20B7654C 68 5F4E5B00 PUSH 5B4E5F
20B76551 C3 RETN
20B76552 68 B25B4F00 PUSH 4F5BB2
20B76557 C3 RETN


So update your dll, or fix the patch failed problem.

testdude
23.01.2006, 10:12
any idea about this error?

Server Up Time Sat Jan 14 10:25:40 2006

Current Time : Sat Jan 14 10:37:58 2006

Elapsed Time : 0 days 0 hours 12 minutes 18 seconds
IOBufferPool - 13188

[(1792) 2006/01/14 10:37:58]: =======================
an Access Violation in module L2Server.exe at 001b:00443524.
start at 2006/1/14 10:25:37
Read from location 00000000 caused an access violation.

Registers:
EAX=00000000 CS=001b EIP=00443524 EFLGS=00010206
EBX=00000000 SS=0023 ESP=71f2fd68 EBP=71f2fda0
ECX=71f2fd94 DS=0023 ESI=390c0db8 FS=003b
EDX=00000000 ES=0023 EDI=39379cf0 GS=0000
Bytes at CS:EIP:
8b 10 8b c8 ff 52 48 8d 4d d4 e8 1d c5 ff ff 8b
Stack dump:
71f2fd68: 26edb330 88004924 00000000 00000000 00000000 053629e6 00000000 88004924
71f2fd88: 00000001 88005884 71f2fd68 71f2fdc0 005a4328 ffffffff 71f2fdcc 00439bd3
71f2fda8: 26edb330 88004924 00000000 00000000 88004924 71f2fda8 71f2fdf0 005a3bd0
71f2fdc8: ffffffff 71f2fdfc 004f0bfe 00000000 79a623d4 00000000 00000000 26edb330
71f2fde8: 00024778 71f2fdd4 71f2fe1c 005ac46b ffffffff 71f2fe28 00506648 79a637ac
71f2fe08: 79a623d4 88004924 71f2fdf8 71f2fe58 71f2fe04 71f2fe58 005ad0f0 ffffffff
71f2fe28: 71f2fe94 00514678 00000000 26edfcd0 79a623d4 77e6bb6d 00024778 00053434
71f2fe48: 00514821 79a623d4 26edfcd0 26edfcd0 71f2fe88 005adb78 ffffffff 0051499a
71f2fe68: 79a623d4 00053434 79a623d4 77e6bb6d 71f2fedc 26edfcd0 71c02572 71f2fe6c
71f2fe88: 71f2feb8 005adb9b ffffffff 71f2fec4 00539654 0535dbe8 79a623d4 77e6bb6d


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

void IOThread_common(void *arglist) <--
void CIOSocket::ReadCallback(DWORD dwTransferred) <--
void CIOSocket::Close() <--
CUserSocket::OnClose <--
CUserSocket::SetUser(User* pUser) <--
User::Delete() <--
void CCreature::Delete() <--
CCreature::DeleteAllItemsInInventory()

Thread[0] (ahehe): Lock Stack : Creature_server.cpp(58[3a]) -> Inventory WriteLock (835333352[31ca2ce8])

been getting it a few times, to do with ur patch maybe? dunno...
ive also been getting alot of trade crashes, possible new duping method? ill post the linerror when it crashes again...

vex
23.01.2006, 10:38
Very very much thanks, tontor, to your answer!!!
This is indeed the what the pet patch fixes, and is apparent the version you are using doesn't have the pet patch or you ignored the warning that a patch has failed and continued anyways. EIP is the location of my hijack which would not be writing to 3c, if it was patched.
Yes I'm using your previous than last dll. Thats because my server works well and one time become unstabe - it crash more than two time for day with __SafeCastUSer and "deadlock or super lag" at last - more detail in may previous post, than i read your post where you say something about your last dll may have trouble:
This is related to sql injection fix, but my hijack checks the return address to make sure CDBSocket::SendV is the calling function, appears somewhere along the line something is incorrect. I'll take a look at it sometime.
So i'm dicide to rollback and got this crashes :cry:

I'm be thanksful to you if you say something this!

vex
23.01.2006, 17:41
Yeh! Tontor! There is really something wrong! or may be i have bad hands...

I'm just now installed back latest dll and after few minutes got many bad message:

couple of __SafeCastUSer and __SafeCastCreature
than follow:
[SharedContainer.cpp][93] PopCreature Failed
actor(0,1090701552,0) in AsyncMove, failed to pop from GetContainer!!!
that object already gone to another container!
data link too long!

its reapeted many times but server still alive.... however, another time it would be dead :cry:

a-dru
23.01.2006, 19:39
Tontor
Why you don't add in patch HEX for visual EFFECT - SLEEP and other abnormal effect.

It include will be very need for more admins of l2 server.
for me exzample.

tontor
23.01.2006, 20:39
Yeh! Tontor! There is really something wrong! or may be i have bad hands...

I'm just now installed back latest dll and after few minutes got many bad message:

couple of __SafeCastUSer and __SafeCastCreature
than follow:
[SharedContainer.cpp][93] PopCreature Failed
actor(0,1090701552,0) in AsyncMove, failed to pop from GetContainer!!!
that object already gone to another container!
data link too long!

its reapeted many times but server still alive.... however, another time it would be dead :cry:

Just because you get safecast errors does not relate to this patch, safecast errors are usually caused by users and often end in crashes. deadlock is caused by a timer expiring that is considered critical, usually where a packet to/from cached is so lagged it times out and the server forcefully crashes itself because it is unrecoverable.




any idea about this error?

Server Up Time Sat Jan 14 10:25:40 2006

Current Time : Sat Jan 14 10:37:58 2006

Elapsed Time : 0 days 0 hours 12 minutes 18 seconds
IOBufferPool - 13188

[(1792) 2006/01/14 10:37:58]: =======================
an Access Violation in module L2Server.exe at 001b:00443524.
start at 2006/1/14 10:25:37
Read from location 00000000 caused an access violation.

Registers:
EAX=00000000 CS=001b EIP=00443524 EFLGS=00010206
EBX=00000000 SS=0023 ESP=71f2fd68 EBP=71f2fda0
ECX=71f2fd94 DS=0023 ESI=390c0db8 FS=003b
EDX=00000000 ES=0023 EDI=39379cf0 GS=0000
Bytes at CS:EIP:
8b 10 8b c8 ff 52 48 8d 4d d4 e8 1d c5 ff ff 8b
Stack dump:
71f2fd68: 26edb330 88004924 00000000 00000000 00000000 053629e6 00000000 88004924
71f2fd88: 00000001 88005884 71f2fd68 71f2fdc0 005a4328 ffffffff 71f2fdcc 00439bd3
71f2fda8: 26edb330 88004924 00000000 00000000 88004924 71f2fda8 71f2fdf0 005a3bd0
71f2fdc8: ffffffff 71f2fdfc 004f0bfe 00000000 79a623d4 00000000 00000000 26edb330
71f2fde8: 00024778 71f2fdd4 71f2fe1c 005ac46b ffffffff 71f2fe28 00506648 79a637ac
71f2fe08: 79a623d4 88004924 71f2fdf8 71f2fe58 71f2fe04 71f2fe58 005ad0f0 ffffffff
71f2fe28: 71f2fe94 00514678 00000000 26edfcd0 79a623d4 77e6bb6d 00024778 00053434
71f2fe48: 00514821 79a623d4 26edfcd0 26edfcd0 71f2fe88 005adb78 ffffffff 0051499a
71f2fe68: 79a623d4 00053434 79a623d4 77e6bb6d 71f2fedc 26edfcd0 71c02572 71f2fe6c
71f2fe88: 71f2feb8 005adb9b ffffffff 71f2fec4 00539654 0535dbe8 79a623d4 77e6bb6d


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

void IOThread_common(void *arglist) <--
void CIOSocket::ReadCallback(DWORD dwTransferred) <--
void CIOSocket::Close() <--
CUserSocket::OnClose <--
CUserSocket::SetUser(User* pUser) <--
User::Delete() <--
void CCreature::Delete() <--
CCreature::DeleteAllItemsInInventory()

Thread[0] (ahehe): Lock Stack : Creature_server.cpp(58[3a]) -> Inventory WriteLock (835333352[31ca2ce8])

been getting it a few times, to do with ur patch maybe? dunno...
ive also been getting alot of trade crashes, possible new duping method? ill post the linerror when it crashes again...

A user gets disconnect, or forces disconnect, after closing the socket deletes the user, which is a child member of ccreature, and starts to remove the items from the users inventory. L2server checks CObject pointer to make sure its valid before trying to remove it, but doesn't do anything but log it. Below you can see why it crashes.


.text:0044351F call template_deref
.text:00443524 mov edx, [eax]
.text:00443526 mov ecx, eax
.text:00443528 call dword ptr [edx+48h]



.text:0043FA50 template_deref proc near ; CODE XREF: CCreature__DeleteAllItemsInInventory+1BFp
.text:0043FA50 ; CCreature__DeleteAllItemsInInventory+1CEp ...
.text:0043FA50
.text:0043FA50 var_10 = dword ptr -10h
.text:0043FA50 var_C = dword ptr -0Ch
.text:0043FA50 var_4 = dword ptr -4
.text:0043FA50
.text:0043FA50 push ebp
.text:0043FA51 mov ebp, esp
.text:0043FA53 push 0FFFFFFFFh
.text:0043FA55 push offset unknown_libname_706 ; Microsoft VisualC 2-7/net runtime
.text:0043FA5A mov eax, large fs:0
.text:0043FA60 push eax
.text:0043FA61 mov large fs:0, esp
.text:0043FA68 sub esp, 0Ch
.text:0043FA6B push ebx
.text:0043FA6C push esi
.text:0043FA6D mov esi, ecx
.text:0043FA6F cmp dword ptr [esi], 0
.text:0043FA72 push edi
.text:0043FA73 mov [ebp+var_10], esp
.text:0043FA76 mov [ebp+var_4], 0
.text:0043FA7D jnz short loc_43FA9A
.text:0043FA7F push 64h
.text:0043FA81 push offset aCServerservice ; "c:\\serverservice\\l2server\\ThreadSafeLib"...
.text:0043FA86 push offset aSDReferencingN ; "[%s][%d] referencing NULL object."
.text:0043FA8B push 2 ; int
.text:0043FA8D push offset unk_18AA81D8 ; int
.text:0043FA92 call CLog__Add
.text:0043FA97 add esp, 14h
.text:0043FA9A
.text:0043FA9A loc_43FA9A: ; CODE XREF: template_deref+2Dj
.text:0043FA9A mov eax, [esi]
.text:0043FA9C mov ecx, [ebp+var_C]
.text:0043FA9F pop edi
.text:0043FAA0 pop esi
.text:0043FAA1 mov large fs:0, ecx
.text:0043FAA8 pop ebx
.text:0043FAA9 mov esp, ebp
.text:0043FAAB pop ebp
.text:0043FAAC retn
.text:0043FAAC template_deref endp


.text:0043FA6F cmp dword ptr [esi], 0

.text:0043FA9A mov eax, [esi]

Even though [esi] (our object) is null, it is logged and moved into eax anyways and returned, would imagine if you checked your server logs, if they were wrote the last thing you would see is "[%s][%d] referencing NULL object.". You can see that there is no error handling past this for the object being null as it trys to use it as a pointer it crashes reading from 0.

.text:00443524 mov edx, [eax]

Just need to check in CCreature::DeleteAllItemsInInventory for it being null.
.text:004433F0 push 44h
returning here if null would probably work fine and with appropriate error msg. I have no server to test so makes adding simple things such as these kind of difficult to test for simple errors.



Tontor
Why you don't add in patch HEX for visual EFFECT - SLEEP and other abnormal effect.

It include will be very need for more admins of l2 server.
for me exzample.

Although the private release of my patch has included AVE (abnormal visual effects) since about may of 2005, I beleive torune or some others have posted fixes for AVE here on the forum so you could simply use their fixes, mine would in most cases conflict with theirs and I think theirs is public so i'm sure alot of people use it. Including mine would probably just cause problems for most people.

2Rain
24.01.2006, 02:42
Ok. Ask my question by another

Tontor's patch don't fix this quest (Coin Collector):


class warehouse_keeper_sorint : warehouse_keeper

NPC just gives for cheaters these items:

L22075
....
push_const 198
push_const 1
func_call 77 // func[GiveItem1]

L22084
....
push_const 230
push_const 1
func_call 77 // func[GiveItem1]

L22093
....
push_const 95
push_const 1
func_call 77 // func[GiveItem1]

L22102
....
push_const 132
push_const 1
func_call 77 // func[GiveItem1]

L22111
....
push_const 2433
push_const 1
func_call 77 // func[GiveItem1]

L22120
....
push_const 632
push_const 1
func_call 77 // func[GiveItem1]

L22129
....
push_const 2456
push_const 1
func_call 77 // func[GiveItem1]

L22138
....
push_const 1149
push_const 1
func_call 77 // func[GiveItem1]

L22147
....
push_const 852
push_const 1
func_call 77 // func[GiveItem1]

L22156
....
push_const 853
push_const 1
func_call 77 // func[GiveItem1]

L22165
....
push_const 884
push_const 1
func_call 77 // func[GiveItem1]

L22174
....
push_const 916
push_const 1
func_call 77 // func[GiveItem1]


Anybody can fix?

vex
24.01.2006, 06:28
Why tontor?? May be some cheks directly in AI code?

vex
24.01.2006, 06:33
Just because you get safecast errors does not relate to this patch, safecast errors are usually caused by users and often end in crashes. deadlock is caused by a timer expiring that is considered critical, usually where a packet to/from cached is so lagged it times out and the server forcefully crashes itself because it is unrecoverable.

Ok! I understand, but how exactly users affect to __SafeCast.. ? May some example? I want understand to try fix it.

2Rain
24.01.2006, 08:12
Why tontor?? May be some cheks directly in AI code?
Topic name is "server side html exploit fix, cloning char fix"
Why not here? :roll:

Papa_Wader
24.01.2006, 08:28
It's definetly a new exploit - never met this problem before - latest patch running for almost 2 weeks now/

01/24/2006 11:00:xx.xx8, __SafeCastUSer saved the server...
01/24/2006 11:00:xx.xx1, __SafeCastCreature saved the server...
01/24/2006 11:00:xx.xx0, __SafeCastUSer saved the server...
01/24/2006 11:00:xx.xx5, __SafeCastCreature saved the server...
01/24/2006 11:02:xx.xx3, __SafeCastUSer saved the server...
01/24/2006 11:02:xx.xx8, WARNING: Possible exploit attempt ACCID:2493 CMD:[link collector_pipi003.htm].
01/24/2006 11:02:xx.xx6, __SafeCastUSer saved the server...
01/24/2006 11:03:xx.xx8, WARNING: Possible exploit attempt ACCID:3841 CMD:[bypass -h teleport_1294450016_2].
01/24/2006 11:03:xx.xx8, WARNING: Possible exploit attempt ACCID:3841 CMD:[bypass -h teleport_1294450016_2].
01/24/2006 11:03:xx.xx8, WARNING: Possible exploit attempt ACCID:3841 CMD:[bypass -h teleport_1128959104_0].
01/24/2006 11:03:xx.xx8, WARNING: Possible exploit attempt ACCID:3841 CMD:[bypass -h teleport_1128959104_0].
01/24/2006 11:03:xx.xx8, item [id:401a7407] null at file[UserSocket.cpp], line[898]
01/24/2006 11:15:xx.xx0, !!! deadlock or super-lag detected!!! (diff 665 sec)

then the server crashes

tontor
24.01.2006, 11:58
Ok. Ask my question by another

Tontor's patch don't fix this quest (Coin Collector):


class warehouse_keeper_sorint : warehouse_keeper

NPC just gives for cheaters these items:

L22075
....
push_const 198
push_const 1
func_call 77 // func[GiveItem1]

L22084
....
push_const 230
push_const 1
func_call 77 // func[GiveItem1]

L22093
....
push_const 95
push_const 1
func_call 77 // func[GiveItem1]

L22102
....
push_const 132
push_const 1
func_call 77 // func[GiveItem1]

L22111
....
push_const 2433
push_const 1
func_call 77 // func[GiveItem1]

L22120
....
push_const 632
push_const 1
func_call 77 // func[GiveItem1]

L22129
....
push_const 2456
push_const 1
func_call 77 // func[GiveItem1]

L22138
....
push_const 1149
push_const 1
func_call 77 // func[GiveItem1]

L22147
....
push_const 852
push_const 1
func_call 77 // func[GiveItem1]

L22156
....
push_const 853
push_const 1
func_call 77 // func[GiveItem1]

L22165
....
push_const 884
push_const 1
func_call 77 // func[GiveItem1]

L22174
....
push_const 916
push_const 1
func_call 77 // func[GiveItem1]


Anybody can fix?

If the NPC uses bypass and link which I'm sure it does since that's how all npcs work, by html, then you have a failed patch, probably link. It does not matter what quest it is, or what npc. you cannot call a bypass cmd that is not in the list of the html, and (if link is patched correctly) you cannot request any html that is not linked from another html . I'm starting to get tired of going over the same subjects over and over. Same with safecast. If you read this thread, yes I understand it is a large thread but you will see people have the same problems, there is nothing special about the coin collector quest.

Just because you get safecast errors does not relate to this patch, safecast errors are usually caused by users and often end in crashes. deadlock is caused by a timer expiring that is considered critical, usually where a packet to/from cached is so lagged it times out and the server forcefully crashes itself because it is unrecoverable.

Ok! I understand, but how exactly users affect to __SafeCast.. ? May some example? I want understand to try fix it.

"Safecasts are usually the result of inserting deleted object which almost always ends up in a crash." This is the most common, what causes safecasts? Many things. There is around 40-45 xrefs to safecastuser/safecastcreature any which could be the problem of each specific incident.


In most cases, checking the timestamps of the errors against cached logs will most likely find 1 that hits the time stamp very closely to the safecasts, and this is your user that is causing problems. Its not always intentional, sometimes it can happen to a perfectly innocent person. deadlock is caused by lag. Feel free to revert to other revisions of the dll, or stop using it to try to locate our problems, but none of these patches should effect causing safecasts.

testdude
24.01.2006, 14:20
thnx for the help tontor, ill have to have a look into that...
but right now that isnt my only problem :| my server is being extremely unstable...
01/24/2006 06:08:xx.xx3, Pick item resut is different. server[28585432], db[29585432]
01/24/2006 06:08:xx.xx2, depth>200 at file[Inventory_server.cpp], line[703]
then... poof.

Server Up Time Tue Jan 24 05:57:27 2006

Current Time : Tue Jan 24 06:08:19 2006

Elapsed Time : 0 days 0 hours 10 minutes 52 seconds
IOBufferPool - 13017

[(956) 2006/01/24 06:08:19]: =======================
a Privileged Instruction in module L2Server.exe at 001b:005d7278.
start at 2006/1/24 05:57:25

Registers:
EAX=25157d2c CS=001b EIP=005d7278 EFLGS=00010202
EBX=4010368d SS=0023 ESP=71f1fdd0 EBP=71f1fe04
ECX=25157d2c DS=0023 ESI=000003bf FS=003b
EDX=005b9c38 ES=0023 EDI=78f247dc GS=0000
Bytes at CS:EIP:
6f 00 63 00 6b 00 65 00 74 00 20 00 2a 00 73 00
Stack dump:
71f1fdd0: 78f247dc 004d0e43 78f247dc 79e9af2c 81f50cd0 00000000 71369a58 79e9bf60
71f1fdf0: 00000000 71f1fdd8 71f1fe4c 005aac20 ffffffff 71f1fed5 005020ee 79e9af2c
71f1fe10: 00000018 00000001 4010368c 00000000 00000001 78f247dc 00000002 81f50cd0
71f1fe30: 00000041 00000000 00000018 00000001 4010368c 00000000 71f1fe24 71f1feb8
71f1fe50: 005acd20 ffffffff 71f1fec4 0050fa78 78f247dc 81f50ce3 08c2c87a 78f247dc
71f1fe70: 77e6bb6d 0000003e 71f1fedc 0000003e 71c02572 000000bb 71f1fea0 71c0575e
71f1fe90: 00000000 08c2c858 71369a58 000003e5 71f1ff78 00000013 006c0794 31c58fec
71f1feb0: 81f50cd0 71f1fe68 71f1fee4 005ad778 ffffffff 71f1fef0 00539866 08c2c87a
71f1fed0: 78f247dc 77e6bb6d 71f1ff0c 71f1feec 71f1fecc 71f1ff6c 005afaa0 ffffffff
71f1fef0: 71f1ff78 0053be2a 00000013 00000001 0053cbe6 00000001 00000013 78f25acc


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

void IOThread_common(void *arglist) <--
void CIOSocket::ReadCallback(DWORD dwTransferred) <--
CUserSocket::OnRead <--
ShortCutRegisterPacket <--
void CShortCut::AddShortCut(User *pUser, int slotnum, int shortcuttype, int id, bool bSendToUser)

Thread[0] (ahehe): Lock Stack :

as u can see from that error, 10 MINUTE UPTIME!!!!! thats the max uptime ive had all day!!!
also just noticed, could this addshortcut thing be the result of the same error as before? with the CCreature, i noticed when i was looking into the possible fix u posted tontor and just above the code for the null esi problem was this...
004434AB |. 68 70A25C00 PUSH l2server.005CA270 ; UNICODE "depth>200 at file[%s], line[%d]"

this was the error right before the server crashed, as displayed above, same problem? will the whole checking if esi is null stop this error too? or is it the same error? o.o

oooo 6 minute uptime! hawt! :o

Server Up Time Tue Jan 24 06:30:13 2006

Current Time : Tue Jan 24 06:36:53 2006

Elapsed Time : 0 days 0 hours 6 minutes 40 seconds
IOBufferPool - 13196

[(2692) 2006/01/24 06:36:53]: =======================
an Access Violation in module Unknown at 001b:002c0062.
start at 2006/1/24 06:30:10
Write to location 00047140 caused an access violation.

Registers:
EAX=05779e68 CS=001b EIP=002c0062 EFLGS=00010202
EBX=80e9be30 SS=0023 ESP=71f2fe2c EBP=71f2fe58
ECX=2e257d48 DS=0023 ESI=2e257d48 FS=003b
EDX=00047140 ES=0023 EDI=00000000 GS=0000
Bytes at CS:EIP:
31 02 1c 05 32 02 1c 05 33 02 1c 05 34 02 1c 05
Stack dump:
71f2fe2c: 0050757a 7905ab14 00000009 80e9be30 78b5dc48 78b5dc48 40108e28 71f2fe30
71f2fe4c: 71f2feb8 005ad1d0 ffffffff 71f2fec4 0050fa78 7905ab14 80e9be4a 08dcee72
71f2fe6c: 7905ab14 77e6bb6d 0000003e 71f2fedc 0000003e 71c02572 0000009c 71f2fea0
71f2fe8c: 71c0575e 00000000 08dcee50 7136a130 000003e5 71f2ff78 00000012 006c0794
71f2feac: 31c58fec 80e9be30 71f2fe68 71f2fee4 005ad778 ffffffff 71f2fef0 00539866
71f2fecc: 08dcee72 7905ab14 77e6bb6d 71f2ff0c 71f2feec 71f2fecc 71f2ff6c 005afaa0
71f2feec: ffffffff 71f2ff78 0053be2a 00000012 00000001 0053cbe6 00000001 00000012
71f2ff0c: 7905be04 00000000 00000000 78a83398 00000000 00001000 00010000 bffeffff
71f2ff2c: 00000001 00000001 0000024a 00010000 0401000f f4d54c88 e104660b fdd8b3c0
71f2ff4c: 00000005 00000012 000503a0 00000000 e10465da 7905be04 7905ab14 71f2ff10


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

void IOThread_common(void *arglist) <--
void CIOSocket::ReadCallback(DWORD dwTransferred) <--
CUserSocket::OnRead <--
UseItemPacket

Thread[0] (ahehe): Lock Stack :

someone told me that this is caused when cached lags for like 10-20 seconds, then all the items get used at once, hence UseItemPacket...

horyfilipe
24.01.2006, 14:27
im running "stable" with lastest dll.. just usersocket stuff and few crashes..
[php:1:ce3726a149]
Server Up Time Tue Jan 24 09:00:36 2006

Current Time : Tue Jan 24 10:27:11 2006

Elapsed Time : 0 days 1 hours 26 minutes 35 seconds
IOBufferPool - 12763

[(2484) 2006/01/24 10:27:11]: =======================
an Access Violation in module l2server.exe at 001b:0054b840.
start at 2006/1/24 09:00:35
Read from location 00001070 caused an access violation.

Registers:
EAX=00000000 CS=001b EIP=0054b840 EFLGS=00010246
EBX=00001146 SS=0023 ESP=6ef7b45c EBP=6ef7b484
ECX=00000000 DS=0023 ESI=6af9f484 FS=003b
EDX=2417e684 ES=0023 EDI=000f7329 GS=0000
Bytes at CS:EIP:
8b 81 70 10 00 00 85 c0 7c 11 3b 05 98 03 71 16
Stack dump:
6ef7b45c: 0054cb6a 6ef7b6a4 00000000 00001146 6ef7c2a4 6ef7b428 6ef7b460 6ef7c4b0
6ef7b47c: 005b0360 ffffffff 6ef7c4bc 005b4dd9 99507f0c 00001141 000f7329 6ef804fa
6ef7b49c: 99418d14 369d5720 00000000 00000000 00000000 00000000 00000000 00000000
6ef7b4bc: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
6ef7b4dc: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
6ef7b4fc: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
6ef7b51c: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
6ef7b53c: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
6ef7b55c: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
6ef7b57c: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000


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

void IOThread_common(void *arglist) <--
void CIOSocket::ReadCallback(DWORD dwTransferred) <--
CUserSocket::OnRead <--
SysCMD2Packet <--
bool BuilderCmd2Handler(CSocket* pSocket, const unsigned char *packet) <--
bool BuilderCmd_create_pet(CSocket *pSocket, User* pUser, WCHAR* pBuf) <--
void CPet::CreatePet(User* pUser, int nCollarClassID, int nPetClassID)
[/php:1:ce3726a149]
more crashes on http://www.horyu.com.br/admin2222222222222/

testdude
24.01.2006, 14:30
im running "stable" with lastest dll.. just usersocket stuff and few crashes..
[php:1:e0a15754e8]
Server Up Time Tue Jan 24 09:00:36 2006

Current Time : Tue Jan 24 10:27:11 2006

Elapsed Time : 0 days 1 hours 26 minutes 35 seconds
IOBufferPool - 12763

[(2484) 2006/01/24 10:27:11]: =======================
an Access Violation in module l2server.exe at 001b:0054b840.
start at 2006/1/24 09:00:35
Read from location 00001070 caused an access violation.

Registers:
EAX=00000000 CS=001b EIP=0054b840 EFLGS=00010246
EBX=00001146 SS=0023 ESP=6ef7b45c EBP=6ef7b484
ECX=00000000 DS=0023 ESI=6af9f484 FS=003b
EDX=2417e684 ES=0023 EDI=000f7329 GS=0000
Bytes at CS:EIP:
8b 81 70 10 00 00 85 c0 7c 11 3b 05 98 03 71 16
Stack dump:
6ef7b45c: 0054cb6a 6ef7b6a4 00000000 00001146 6ef7c2a4 6ef7b428 6ef7b460 6ef7c4b0
6ef7b47c: 005b0360 ffffffff 6ef7c4bc 005b4dd9 99507f0c 00001141 000f7329 6ef804fa
6ef7b49c: 99418d14 369d5720 00000000 00000000 00000000 00000000 00000000 00000000
6ef7b4bc: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
6ef7b4dc: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
6ef7b4fc: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
6ef7b51c: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
6ef7b53c: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
6ef7b55c: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
6ef7b57c: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000


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

void IOThread_common(void *arglist) <--
void CIOSocket::ReadCallback(DWORD dwTransferred) <--
CUserSocket::OnRead <--
SysCMD2Packet <--
bool BuilderCmd2Handler(CSocket* pSocket, const unsigned char *packet) <--
bool BuilderCmd_create_pet(CSocket *pSocket, User* pUser, WCHAR* pBuf) <--
void CPet::CreatePet(User* pUser, int nCollarClassID, int nPetClassID)
[/php:1:e0a15754e8]
more crashes on http://www.horyu.com.br/admin2222222222222/that crash is when someone tries to //creatpet something that isnt recognized, had it a few times on my server ^_^ yell at ur gms :P

vex
24.01.2006, 18:52
yes! testdude - this 100per GM do some bad things with pet )

testdude
24.01.2006, 19:03
wtf...

Server Up Time Tue Jan 24 09:11:32 2006

Current Time : Tue Jan 24 10:09:12 2006

Elapsed Time : 0 days 0 hours 57 minutes 40 seconds
IOBufferPool - 10860

[(1168) 2006/01/24 10:09:12]: =======================
an Access Violation in module Unknown at 001b:00210027.
start at 2006/1/24 09:11:28
Write to location c2000500 caused an access violation.

Registers:
EAX=005b9c38 CS=001b EIP=00210027 EFLGS=00010a82
EBX=00000000 SS=0023 ESP=71f1fdc0 EBP=71f1fe08
ECX=25092c5c DS=0023 ESI=7a4ab4a4 FS=003b
EDX=00602c04 ES=0023 EDI=25092c5c GS=0000
Bytes at CS:EIP:
00 05 00 05 00 c2 01 08 00 00 00 00 00 fc e3 8f
Stack dump:
71f1fdc0: 00440894 31c58fec 7a4ab4a4 00000000 71f1fdbc 71f1fe04 005a7040 00000000
71f1fde0: 71f1fe10 004ad8b9 40111890 31c58fec 7a4ab4a4 00000000 71f1fdc4 71f1fe4c
71f1fe00: 005a4200 ffffffff 71f1fe58 0050a5ff 25092c5c 00000000 71f1fe00 7a3e8964
71f1fe20: 00000002 84234d50 71f1feb4 00013842 00027ce5 fffff18b 2c565a9c 006c07d4
71f1fe40: 40111890 00000000 71f1fe1c 71f1feb8 005ad3c8 ffffffff 71f1fec4 0050fa78
71f1fe60: 7a3e8964 84234d63 099f52ab 7a3e8964 77e6bb6d 0000003e 71f1fedc 00491b2a
71f1fe80: 2ed0c220 00491b86 2ed0c22c 2c565a98 0000001c 099f52a8 209d5360 0049215d
71f1fea0: 2c565a98 00000014 006c0794 31c58fec 84234d50 71f1fe68 71f1fee4 005ad778
71f1fec0: ffffffff 71f1fef0 00539866 099f52ab 7a3e8964 77e6bb6d 71f1ff0c 71f1feec
71f1fee0: 71f1fecc 71f1ff6c 005afaa0 ffffffff 71f1ff78 0053be2a 00000014 00000001


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

void IOThread_common(void *arglist) <--
void CIOSocket::ReadCallback(DWORD dwTransferred) <--
CUserSocket::OnRead <--
ActionPacket <--
CCreature::Action()

Thread[0] (ahehe): Lock Stack :

another CCreature error... what the hell... npc server issues? 90% of my errors right now seem to be CCreature errors! >.>
does the patch edit anyting with ccreature that could cause this? ive tried with 100% default l2server from pp release with latest patch and i still have these problems.. gonna try earlyer releases and see whats up...

vex
24.01.2006, 19:05
Okey tontor, thats me again! 8)
Leave SafeCast... Now we return back to our IconAction... :?
At this time I'm using yor latest dll definetly all offsets patched well, i'm sure 100% and pet patched to:
link patched: offset:5154b9 size:7 newcall_loc:20a12270
teleport patched: offset:515ffa size:22 newcall_loc:20a122d0
npchtml patched: offset:4a41f0 size:16 newcall_loc:20a11530
bypass patched: offset:5156bf size:7 newcall_loc:20a114f0
npcteleport patched: offset:4a95c7 size:6 newcall_loc:20a114d0
talk_selected patched: offset:4a7a04 size:6 newcall_loc:20a114b0
agit patched: offset:406828 size:18 newcall_loc:20a11480
cachedhtml patched: offset:5155ba size:6 newcall_loc:20a11460
cachedhtml1 patched: offset:5155f9 size:6 newcall_loc:20a11440
enterworld patched: offset:507231 size:6 newcall_loc:20a11390
recipe patched: offset:443ac8 size:6 newcall_loc:20a11370
sellitem patched: offset:457672 size:6 newcall_loc:20a11350
buyitem patched: offset:457c18 size:6 newcall_loc:20a11330
npcshowhtmlstring patched: offset:4a4594 size:6 newcall_loc:20a11310
npcshowbuypage patched: offset:4a9c80 size:6 newcall_loc:20a112f0
ctalkaction_onstart patched: offset:4d12c8 size:6 newcall_loc:20a112d0
overbuff patched: offset:4fac3e size:5 newcall_loc:20a15ee0
clone patched: offset:4668e7 size:5 newcall_loc:20a110c0
clone2 patched: offset:506bbf size:5 newcall_loc:20a11110
pet patched: offset:5b4e59 size:6 newcall_loc:20a15fc0
antiinject patched: offset:53a0c3 size:6 newcall_loc:20a11000
skillhack patched: offset:50a936 size:5 newcall_loc:20a15fe0
However we got oops again:

Server Up Time Tue Jan 24 08:50:08 2006

Current Time : Tue Jan 24 20:14:48 2006

Elapsed Time : 0 days 11 hours 24 minutes 40 seconds
IOBufferPool - 5036

[(1780) 2006/01/24 20:14:48]: =======================
an Access Violation in module l2server3.exe at 001b:03020100.
start at 2006/1/24 08:50:06
Write to location fffffd07 caused an access violation.

Registers:
EAX=fffffd07 CS=001b EIP=03020100 EFLGS=00010286
EBX=0f000001 SS=0023 ESP=6d90fdf0 EBP=6d90fe14
ECX=0000000f DS=0023 ESI=9a6d6304 FS=003b
EDX=34f40778 ES=0023 EDI=00000001 GS=0000
Bytes at CS:EIP:
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Stack dump:
6d90fdf0: 9a069bdc 00000023 0f000001 6d90fde0 6d90fe4c 6d90fdf0 6d90fe4c 005ac6b0
6d90fe10: ffffffff 6d90fe58 00503181 fffffd07 6ec67301 6ec67301 9a069bdc 00000023
6d90fe30: 6ec67370 9a069bdc 00000018 fffffd07 0f000001 13fffd07 6d90fe28 6d90feb8
6d90fe50: 005acdf0 ffffffff 6d90fec4 0050fa78 9a069bdc 6ec673a4 1b04f4fa 9a069bdc
6d90fe70: 77e4193e 0000003e 6d90fedc 0000003f 71a912ca 0000003f 00399678 71aa1a16
6d90fe90: 00000000 1b04f4f7 003970b8 000003e5 6d90ff78 0000002c 006c0794 20b38474
6d90feb0: 6ec67370 6d90fe68 6d90fee4 005ad778 ffffffff 6d90fef0 00539866 1b04f4fa
6d90fed0: 9a069bdc 77e4193e 6d90ff0c 6d90feec 6d90fecc 6d90ff6c 005afaa0 ffffffff
6d90fef0: 6d90ff78 0053be2a 0000002c 00000001 0053cbe6 00000001 0000002c 9a06aecc
6d90ff10: 00000000 00000001 69955020 00000000 00001000 00010000 bffeffff 00000003


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

void IOThread_common(void *arglist) <--
void CIOSocket::ReadCallback(DWORD dwTransferred) <--
CUserSocket::OnRead <--
IconAction <--
User::IconAction()

Thread[0] (good): Lock Stack :

Thread[1] (ahehe): Lock Stack :

I'm sure for about a 90% thats we have deal with some bad staff. I'll try to look into this more detailed, but i think you can do it better :lol:

zeronc
24.01.2006, 22:48
L2SERVER C3


help plss!!! :oops:


Server Up Time Tue Jan 24 20:29:49 2006

Current Time : Tue Jan 24 21:07:11 2006

Elapsed Time : 0 days 0 hours 37 minutes 22 seconds
IOBufferPool - 8990

[(520) 2006/01/24 21:07:11]: =======================
an Access Violation in module l2server.exe at 001b:0053c884.
start at 2006/1/24 20:27:47
Write to location 00000000 caused an access violation.

Registers:
EAX=0000000c CS=001b EIP=0053c884 EFLGS=00010206
EBX=7c8092ac SS=0023 ESP=4b96fd0c EBP=4b96fd3c
ECX=4b96fd30 DS=0023 ESI=0000eaac FS=003b
EDX=00000000 ES=0023 EDI=01d07b68 GS=0000
Bytes at CS:EIP:
c6 05 00 00 00 00 01 b9 28 a3 8c 16 c7 45 fc 00
Stack dump:
4b96fd0c: 00000000 241e0f08 3fcb9658 167103e8 00000000 241e0f08 3fcb9658 008fe46b
4b96fd2c: 4b96fd0c 4b96ff44 005afc90 ffffffff 4b96ff50 0048faad 00000000 00000000
4b96fd4c: 3fcb9658 3fcb9658 02020202 536e6957 206b636f 00302e32 00000000 4b96ffa4
4b96fd6c: 7c8fee18 7c900570 ffffffff 7c90056d 7c80f64a 00140000 00000000 41735b70
4b96fd8c: 000000c8 3fcb9658 7c80f657 4b96feb0 41735b70 f7ab25e2 e0d3db27 3fca31b8
4b96fdac: f7c75068 e0d3dd8e 00000048 00000001 00000000 00000038 00000023 00000023
4b96fdcc: 00000000 3fcb9878 3fcb9658 00000000 00000000 0058eabb 00000000 7c810856
4b96fdec: 0000001b 00000008 4b96fffc 00000023 00000000 003f0178 f8d0b118 3fcb96e8
4b96fe0c: f7ab2090 f8d0b118 00000044 00000014 003f0178 edc87b74 3fcb9880 00000014
4b96fe2c: 3fca31b0 38323030 003f0178 e0c25608 f7c75000 edc87ba4 00000002 00000018


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

void ListenThread_common() <--
unsigned __stdcall WaitThread(void *) <--
!!! deadlock or super-lag detected !!!

Thread[0] (good): Lock Stack :



[(520) 2006/01/24 21:07:15]: *L2Server.cpp:1042(Mon Jun 7 22:43:03 2004) exception

2Rain
25.01.2006, 07:15
If the NPC uses bypass and link which I'm sure it does since that's how all npcs work, by html, then you have a failed patch, probably link.Thanks for answer, but I far time ago to fix "failed link" problem. Thrue hexing L2server.exe (somewhere on PP it was shared).

But on my server you tandem don't crushes much time. Server uptime was more 5 days. Maybe more, but I self reboot server for apply new patches. :)

While I just disable dangerous quest by change problem places (give items) to InstantTeleport in my special prison. ;)

antiinject patched: offset:53a0c3 size:6 newcall_loc:20a11000
skillhack patched: offset:50a936 size:5 newcall_loc:20a15fe0
Hmmm... I hav not this. Where I can download newest version?

tontor
25.01.2006, 12:21
If the NPC uses bypass and link which I'm sure it does since that's how all npcs work, by html, then you have a failed patch, probably link.Thanks for answer, but I far time ago to fix "failed link" problem. Thrue hexing L2server.exe (somewhere on PP it was shared).

But on my server you tandem don't crushes much time. Server uptime was more 5 days. Maybe more, but I self reboot server for apply new patches. :)

While I just disable dangerous quest by change problem places (give items) to InstantTeleport in my special prison. ;)

antiinject patched: offset:53a0c3 size:6 newcall_loc:20a11000
skillhack patched: offset:50a936 size:5 newcall_loc:20a15fe0
Hmmm... I hav not this. Where I can download newest version?

https://postpacific.mmorpg-game.online/forum/download.php?id=834

vex
25.01.2006, 13:02
khe-khe
and what about me? :roll:

horyfilipe
25.01.2006, 13:07
oxi
: =======================
an Access Violation in module l2server.exe at 001b:004fe6e6.
start at 2006/1/25 10:54:04
Read from location 00000000 caused an access violation.

Registers:
EAX=2a671f84 CS=001b EIP=004fe6e6 EFLGS=00010206
EBX=00000000 SS=0023 ESP=6f0ada78 EBP=6f0add14
ECX=2a671f84 DS=0023 ESI=00000000 FS=003b
EDX=00000000 ES=0023 EDI=9933122c GS=0000
Bytes at CS:EIP:
0f bf 02 50 b9 80 00 00 00 68 bc 2f 5e 00 2b cb
Stack dump:
6f0ada78: 1732315c 172fc05c 9933122c 48107867 00002000 00000000 6f0ada7c 6f0adaec
6f0ada98: 005af4a0 00000000 6f0adaf8 0052e69a 0000002e 443e0038 78a2f4a0 7807ed70
6f0adab8: 99236a6c 6f0adb04 004dfae2 7807ed82 78a2f4b2 004dfb0f 78a314b8 00000106
6f0adad8: 99236a88 99236a90 31beaffc 29dfc6f0 6f0adad4 6f0adad8 99236a6c 6f0adad4
6f0adaf8: 6f0adb74 005ab7a0 00000000 00780078 0065006c 00690074 00690063 00780061
6f0adb18: 00000078 78a2f4a0 99236a6c 00005000 00445d1a 99266d24 48107838 99268e30
6f0adb38: 00000000 41700000 00000000 41700000 99382114 6f0adb94 006c090c 44ad8df8
6f0adb58: 000001fb 00000119 78a2f4a0 00000114 00000118 000001fa 00000000 6f0afc0c
6f0adb78: 00000000 00000000 0000034f 0000034f 00000000 00000370 00000370 0000002f
6f0adb98: 000000cd 00000000 00000994 000001b7 000001d7 0000025b 00000000 000000cd


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

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 ManipulateItemPacket(CDBSocket *socket, const unsigned char *packet) <--
User::SendItemList() <--
User::SendUserInfo()

Thread[0] (good): Lock Stack :

Thread[1] (ahehe): Lock Stack : ??????????(187[bb])

tontor
25.01.2006, 22:53
I am not here to tell you the reason for your every crash. I don't mind at all that you post your crash dumps for me to look at, but don't expect for me to trace your every dump and tell you the exact reason for every crash. Posting them here is helpful to see if they are the result of a malicious user, bad handling, or problem with a previous patch. But I'm not here to solve your servers every specific problem, don't expect it.




text:004FE6BF loc_4FE6BF: ; CODE XREF: User__SendUserInfo+5D2j
.text:004FE6BF mov [ebp+var_2C], eax
.text:004FE6C2 mov [ebp+var_24], 0
.text:004FE6C9 lea esp, [esp+0]
.text:004FE6D0
.text:004FE6D0 loc_4FE6D0: ; CODE XREF: User__SendUserInfo+636j
.text:004FE6D0 cmp [ebp+var_24], eax
.text:004FE6D3 jge short loc_4FE718
.text:004FE6D5 mov ecx, [edi+0A50h]
.text:004FE6DB mov eax, [ebp+var_24]
.text:004FE6DE shl eax, 5
.text:004FE6E1 mov edx, [eax+ecx]
.text:004FE6E4 add eax, ecx
.text:004FE6E6 movsx eax, word ptr [edx]


EDX=00000000 EAX=2a671f84 ECX=2a671f84

you can see by eax+ecx that var_24 was set to 0 from the path above not jumped to, var24 loaded into eax,eax<<5, eax=ecx since eax is 0 and added together edx is the contents of 2a671f84 which is null, dunno why. couldnt tell you. edi is the userstruct edi+0x0a50 is a substruct contents of which i dunno since have no server running, but +0a54 is >>5 and +0a50 is << 5. debugging it in a few mins would show what exactly it does knowing what i said above. it uses the signed value loaded from eax pushes it with format h and calls assemble, after this process is done, loads 3 floats, which are probably x,y,z location, later i have commented that path is used for gmwindow user stat view. user manipulated an item while gm checked his inv? dont know. just that the pointer was null for some value in userstruct while sending userinfo packet.

Note: ustruct+0a20 -> ustruct+0xadb was locked during this process, so the value was incorrect before it started, not a race condition.








Server Up Time Tue Jan 24 08:50:08 2006

Current Time : Tue Jan 24 20:14:48 2006

Elapsed Time : 0 days 11 hours 24 minutes 40 seconds
IOBufferPool - 5036

[(1780) 2006/01/24 20:14:48]: =======================
an Access Violation in module l2server3.exe at 001b:03020100.
start at 2006/1/24 08:50:06
Write to location fffffd07 caused an access violation.

Registers:
EAX=fffffd07 CS=001b EIP=03020100 EFLGS=00010286
EBX=0f000001 SS=0023 ESP=6d90fdf0 EBP=6d90fe14
ECX=0000000f DS=0023 ESI=9a6d6304 FS=003b
EDX=34f40778 ES=0023 EDI=00000001 GS=0000
Bytes at CS:EIP:
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Stack dump:
6d90fdf0: 9a069bdc 00000023 0f000001 6d90fde0 6d90fe4c 6d90fdf0 6d90fe4c 005ac6b0
6d90fe10: ffffffff 6d90fe58 00503181 fffffd07 6ec67301 6ec67301 9a069bdc 00000023
6d90fe30: 6ec67370 9a069bdc 00000018 fffffd07 0f000001 13fffd07 6d90fe28 6d90feb8
6d90fe50: 005acdf0 ffffffff 6d90fec4 0050fa78 9a069bdc 6ec673a4 1b04f4fa 9a069bdc
6d90fe70: 77e4193e 0000003e 6d90fedc 0000003f 71a912ca 0000003f 00399678 71aa1a16
6d90fe90: 00000000 1b04f4f7 003970b8 000003e5 6d90ff78 0000002c 006c0794 20b38474
6d90feb0: 6ec67370 6d90fe68 6d90fee4 005ad778 ffffffff 6d90fef0 00539866 1b04f4fa
6d90fed0: 9a069bdc 77e4193e 6d90ff0c 6d90feec 6d90fecc 6d90ff6c 005afaa0 ffffffff
6d90fef0: 6d90ff78 0053be2a 0000002c 00000001 0053cbe6 00000001 0000002c 9a06aecc
6d90ff10: 00000000 00000001 69955020 00000000 00001000 00010000 bffeffff 00000003


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

void IOThread_common(void *arglist) <--
void CIOSocket::ReadCallback(DWORD dwTransferred) <--
CUserSocket::OnRead <--
IconAction <--
User::IconAction()

Thread[0] (good): Lock Stack :

Thread[1] (ahehe): Lock Stack :


Stack is messed up somewhere, EIP's value is quite odd 03020100, there is alot of stuff on stack including the exception handler from the begining of the call, somehow returning without cleaning up stack, giving incorrect eip, off by alot.

6d90fdf0: 9a069bdc 00000023 0f000001 6d90fde0 6d90fe4c 6d90fdf0 6d90fe4c 005ac6b0
6d90fe10: ffffffff 6d90fe58 00503181

I'll look into it i think i might know what its related to.

vex
25.01.2006, 23:57
thanks to pay attention!
i'm never post stupid questions - i'm post my reports only to give some useful info to make your patch better and our community life easier

PS I'm not guru but i see many 6d90fd.. - intresting

testdude
26.01.2006, 01:37
***delete cos the pic was anoying me xD***

srh
26.01.2006, 06:26
2tontor:
i'm asking you in previos pages, about make handling of walker movements as it done in l2j. it is possible to add this func in your patch?

i mean block movement by walker. &%&% botterz :(

testdude
27.01.2006, 06:33
ok tontor i tried what u said, and it seems that is my problem, i set it to return to that pos that u said, when eax=0, and it said the whole "item invenroty is null" (nice typo of nc again >.>) but, still went boom, with this linerror:

Server Up Time Thu Jan 26 21:37:20 2006

Current Time : Thu Jan 26 22:24:46 2006

Elapsed Time : 0 days 0 hours 47 minutes 26 seconds
IOBufferPool - 14430

[(2660) 2006/01/26 22:24:46]: =======================
an Access Violation in module L2Serverz0rz0z.exe at 001b:0053cbc7.
start at 2006/1/26 21:37:18
Write to location 00000000 caused an access violation.

Registers:
EAX=00000000 CS=001b EIP=0053cbc7 EFLGS=00010202
EBX=77e6bb6d SS=0023 ESP=71f2ff10 EBP=71f2ff78
ECX=00000001 DS=0023 ESI=00000001 FS=003b
EDX=713e1748 ES=0023 EDI=168d767b GS=0000
Bytes at CS:EIP:
c6 05 00 00 00 00 01 8b 45 e8 8b 4d ec 8b 11 50
Stack dump:
71f2ff10: 00000000 00000000 78a83398 00000000 00001000 00010000 bffeffff 00000001
71f2ff30: 00000001 0000024a 00010000 0401000f f4fd6c88 e104660b fd1fca28 00000005
71f2ff50: 00000000 000503a0 00000000 e10465da 00000000 2a984bb8 71f2ff10 71f2ffa8
71f2ff70: 005afca0 ffffffff 71f2ffb8 0053cd1b 00000000 78a83398 0058eb2a 00000000
71f2ff90: 00000000 00000000 78a83398 c0000005 71f2ff90 71f2fb3c 71f2ffdc 0058c42c
71f2ffb0: 00666658 00000000 71f2ffec 77e66063 78a83398 00000000 00000000 78a83398
71f2ffd0: 00000000 71f2ffc4 f4fd6ce4 ffffffff 77e6b798 77e66070 00000000 00000000
71f2fff0: 00000000 0058eabb 78a83398 00000000


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

void IOThread_common(void *arglist)

Thread[0] (ahehe): Lock Stack : Creature_server.cpp(58[3a])

now i suspect that the reason it doesnt work is cos im a complete retard with asm and probably did it in the most inpractical inproffessional and inusable way xD but anyway, it also happened that i was looking on the pc the exact SECOND the server crashed, and got a print screen as vnc was refreshing the screen xD
http://img92.imageshack.us/img92/1774/invenroty6hl.jpg
that = boom... if it was hexed right would what you posted fix it? cos im stupid :P


and the whole depth>200 thing, could that be that someone, somehow, got more than 200 thingies in their inventory, which could cause the crash? O.o or is it something that has absolutly nothing to do with what it sounds like, just like everything else with the l2server :p


edit:: this has to be an exploit... ive replicated the some of the errors by filling my inventory with 200+ items, but i cannot seem to replicate the ones that happen upon crash, with 800+ players online its extremely hard to check the logs for 1 specific person doing something that is causing this, i just spent 2 hours looking through logs, compairing the logs of what im doing, to the logs from the crash... im 90% sure that this is someone crashing my server... btw, u can get 200+ items with multisell, as it will give u the item reguardless of inventory slots, and weight limit... aswell as CreatePet from AI, dont know what else... i tried putting in checkers into some stored procedures, check if someone has > 150 items in their inventory, but its just not working, i need help! >.>

supplier
27.01.2006, 20:22
tontor, We're using unmodified sinas L2server.exe and Warning message appear (lack of Striders I guess) when server is starting and server waits for closing or clicking OK on it.

Is it possible to skip this window or something similar?
It's very inconvenient to submitting it when server starts.
Thanks!

tontor
28.01.2006, 02:16
ok tontor i tried what u said, and it seems that is my problem, i set it to return to that pos that u said, when eax=0, and it said the whole "item invenroty is null" (nice typo of nc again >.>) but, still went boom, with this linerror:

Server Up Time Thu Jan 26 21:37:20 2006

Current Time : Thu Jan 26 22:24:46 2006

Elapsed Time : 0 days 0 hours 47 minutes 26 seconds
IOBufferPool - 14430

[(2660) 2006/01/26 22:24:46]: =======================
an Access Violation in module L2Serverz0rz0z.exe at 001b:0053cbc7.
start at 2006/1/26 21:37:18
Write to location 00000000 caused an access violation.

Registers:
EAX=00000000 CS=001b EIP=0053cbc7 EFLGS=00010202
EBX=77e6bb6d SS=0023 ESP=71f2ff10 EBP=71f2ff78
ECX=00000001 DS=0023 ESI=00000001 FS=003b
EDX=713e1748 ES=0023 EDI=168d767b GS=0000
Bytes at CS:EIP:
c6 05 00 00 00 00 01 8b 45 e8 8b 4d ec 8b 11 50
Stack dump:
71f2ff10: 00000000 00000000 78a83398 00000000 00001000 00010000 bffeffff 00000001
71f2ff30: 00000001 0000024a 00010000 0401000f f4fd6c88 e104660b fd1fca28 00000005
71f2ff50: 00000000 000503a0 00000000 e10465da 00000000 2a984bb8 71f2ff10 71f2ffa8
71f2ff70: 005afca0 ffffffff 71f2ffb8 0053cd1b 00000000 78a83398 0058eb2a 00000000
71f2ff90: 00000000 00000000 78a83398 c0000005 71f2ff90 71f2fb3c 71f2ffdc 0058c42c
71f2ffb0: 00666658 00000000 71f2ffec 77e66063 78a83398 00000000 00000000 78a83398
71f2ffd0: 00000000 71f2ffc4 f4fd6ce4 ffffffff 77e6b798 77e66070 00000000 00000000
71f2fff0: 00000000 0058eabb 78a83398 00000000


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

void IOThread_common(void *arglist)

Thread[0] (ahehe): Lock Stack : Creature_server.cpp(58[3a])

now i suspect that the reason it doesnt work is cos im a complete retard with asm and probably did it in the most inpractical inproffessional and inusable way xD but anyway, it also happened that i was looking on the pc the exact SECOND the server crashed, and got a print screen as vnc was refreshing the screen xD
http://img92.imageshack.us/img92/1774/invenroty6hl.jpg
that = boom... if it was hexed right would what you posted fix it? cos im stupid :P


and the whole depth>200 thing, could that be that someone, somehow, got more than 200 thingies in their inventory, which could cause the crash? O.o or is it something that has absolutly nothing to do with what it sounds like, just like everything else with the l2server :p


edit:: this has to be an exploit... ive replicated the some of the errors by filling my inventory with 200+ items, but i cannot seem to replicate the ones that happen upon crash, with 800+ players online its extremely hard to check the logs for 1 specific person doing something that is causing this, i just spent 2 hours looking through logs, compairing the logs of what im doing, to the logs from the crash... im 90% sure that this is someone crashing my server... btw, u can get 200+ items with multisell, as it will give u the item reguardless of inventory slots, and weight limit... aswell as CreatePet from AI, dont know what else... i tried putting in checkers into some stored procedures, check if someone has > 150 items in their inventory, but its just not working, i need help! >.>


actually would need to check if EDX is null since its the register used as the pointer, before the movsx, youll have to jump to a small code cave and insert the movzx after checking if edx is null and return back or if null return to err msg, but i assume you know that. sorry i still dont have a server to work on the stuff with so i cant really do too much :).

horyfilipe
28.01.2006, 03:18
tontor, i can give you a test server, pm