Post Pacific  

Go Back   Post Pacific > Lineage 2 > Tutorials & Guides

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 10.10.2005, 16:16   #51
tontor
Архивный участник
 
Join Date: May 2005
Posts: 109
Default

Quote:
Originally Posted by Domzelan
101005-dll.rar - this is new dll?:) ore what? plz ansfer me...
yes

Quote:
Originally Posted by Attary
Great share!
Thanks.

But this patch not fix the fake recipe. Only by ID, but not direct link on server html with recipe.
Maybe i am missing something but, did you test it? link as well as bypass is handled so how could they call link for the html? the call requesting a recipe is hooked parsing the html, adding valid cmds, linking this html directly shouldn't be possible, but maybe i am missing something? Explain please.


Also in the required list of every craft is the recipe itself, requiring the recipe to even craft this? And higher level recipes even require the consumption of the recipe.

Quote:
Originally Posted by horyfilipe
Hmm still freezing after a while its running.. worse is that it just freezes.. is there anyway to check reason?
If there's no error, it becomes very difficult to resolve you could let it run a little and see if it ever recovers or attach a debugger before hand and attempt to pause the process once it starts freezing, and see where you pause at, but being multithreaded this likely wont get you anything useful.
tontor is offline  
Old 10.10.2005, 17:14   #52
Attary
Архивный участник
 
Join Date: Jul 2005
Posts: 61
Default

tontor, i PM you a sapmle of HTML script with direct link on server-side recipe html.
May be I missing something but i test it and this exploit work perfect with your patch.

To stop using this exploit now i use my own tool for rename recipe ID in html and recipe.txt and file names of recipe and itemdata.txt

Anyway, your share is best of all PP shares =))

PS. Sorry for BE.
Attary is offline  
Old 10.10.2005, 17:40   #53
tontor
Архивный участник
 
Join Date: May 2005
Posts: 109
Default

Quote:
Originally Posted by Attary
tontor, i PM you a sapmle of HTML script with direct link on server-side recipe html.
May be I missing something but i test it and this exploit work perfect with your patch.

To stop using this exploit now i use my own tool for rename recipe ID in html and recipe.txt and file names of recipe and itemdata.txt

Anyway, your share is best of all PP shares =))

PS. Sorry for BE.
I think maybe you have missed something. I copied and pasted a few of yours that use link for recipes from what you sent, and linkerr.htm displays denying me access, and logged me as an exploiter just as it should. Are you sure in the console window that link was patched successfully? Sounds like this is the issue, being unpatched would cause it to be unhandled being vulnerable to the attempts, double check for failure and if it fails, check my other post for reverting changes in l2server to the original.
tontor is offline  
Old 10.10.2005, 18:21   #54
LDragonL
Архивный участник
 
Join Date: May 2005
Posts: 133
Default

Possible crashes of the l2server file is when you let norton or symantec corporate realtime file portection turned on.
It attemps to acces the file in a way the file can't handle and it crashes.
Try to exclude the file or change to another virus scanner MAY be the solution.
LDragonL is offline  
Old 10.10.2005, 18:34   #55
Attary
Архивный участник
 
Join Date: Jul 2005
Posts: 61
Default

tontor, you was right =) sorry.
I have modded server and link patch not work. Only link patch and i missed this.
Now i undo some change in server, get success patch link and exploit not work anymore.

Thanks.
Attary is offline  
Old 11.10.2005, 00:00   #56
horyfilipe
Архивный участник
 
Join Date: Jul 2005
Posts: 242
Default

is anybody facing freezes as well?
horyfilipe is offline  
Old 11.10.2005, 00:12   #57
bob1122
Архивный участник
 
Join Date: Aug 2005
Posts: 278
Default

Quote:
Originally Posted by tontor
Quote:
Originally Posted by Juiced
Scan type: Realtime Protection Scan
Event: Virus Found!
Virus name: W32.Small.gen
File: C:\DOCUME~1\CaDuSiMs\CONFIG~1\Temp\Rar$EXxx.xx5\pa tch.exe
Location: Quarantine
Computer: CADU
User: CaDuSiMs
Action taken: Clean failed : Quarantine succeeded : Access denied
Date found: Sun Oct 09 04:33:38 2005
Quote:
Originally Posted by toolpunk
lol you got a virus XD
W32.Small.gen...
detected by norton antivirus corp...
so dont tell me im talking shit.
its true. you should scan your pc for viruses
btw i dont say this happened on purpose but i wanted to warn everyone and especially you to scan your system for viruses.
so its rather a good advice than criticism...

edit: damn juiced was faster XD
This is not a virus, but a false positive by some virus scanners. The full source to patch.exe is below. Review and compile it yourself if you wish.

Code:
;Static DLL Injection for MASM by Aphex
;http://www.iamaphex.cjb.net
;unremote@knology.net
;This uses code by Yodah and Freddy K

;What this does: It forces a PE to load a DLL everytime it is ran by
;patching the actual file. No other loaders or memory injectors are needed.

;How it does this: It opens the PE file, adds a section to the end of the file,
;alters the entry point to execute this section first. Then the new code loads
;a dll and jumps back to the original entry point where it runs as normal. ;)

;NOTE: you must add this linker option "/SECTION:.text,RWX"
;ml.exe /coff patch.asm /link /SECTION:.text,RWX /SUBSYSTEM:WINDOWS /OPT:NOREF
.386
.model flat, stdcall
option casemap:none
include \masm32\include\windows.inc
include \masm32\include\kernel32.inc
include \masm32\include\user32.inc
includelib \masm32\lib\kernel32.lib
includelib \masm32\lib\user32.lib

SEH_STRUCT struct
  OrgEsp dword 0
  OrgEbp dword 0
  SaveEip dword 0
SEH_STRUCT ends

.data
;-------> Path to EXE to be patched with DLL <-------
szTarget byte 'L2Server.exe', 0

.data?
dwFile dword ?
dwSize dword ?
dwBytes dword ?
dwImage dword ?
dwBuffer dword ?
dwHeader dword ?
dwLength dword ?
dwSections dword ?

.data
errmsg	db	'failed to open l2server.exe',0
sucmsg	db	'patching l2server.exe succeeded',0
titlemsg db	'beepbeepboop',0

.code
EntryPoint:
jmp PatchEnd
PatchBegin:
jmp SkipData
szName byte '.PATCH', 2 dup (0)
szLoadLibrary byte 'LoadLibraryA', 0
;-------> Path to DLL to be patched into EXE <-------
szDll byte 'patch.dll', 0
SEH SEH_STRUCT <>
_LoadLibrary dword 0
dwKernelBase dword 0
dwEntryPoint dword 0
_DllOff dword 0
SkipData:
assume fs:NOTHING
pushad
call Root
Root:
pop ebp
sub ebp, offset Root
push dword ptr [esp + 20h]
call Base
or eax, eax
jz Return
mov [ebp + dwKernelBase], eax
lea eax, [ebp + offset szLoadLibrary]
push eax
push [ebp + dwKernelBase]
call Address
or eax, eax
jz Return
mov [ebp + _LoadLibrary], eax
lea eax, [ebp + offset szDll]
push eax
call [ebp + _LoadLibrary]
mov [ebp + offset _DllOff], eax
Return:
mov eax, [ebp + dwEntryPoint]
mov [esp + 1ch], eax
popad
jmp eax
Base:
mov edi, [esp + 4]
lea eax, [ebp + offset SehHandler]
push eax
push dword ptr fs:[0]
lea eax, [ebp + offset SEH]
assume eax:ptr SEH_STRUCT
mov [eax].OrgEsp, esp
mov [eax].OrgEbp, ebp 
lea ebx, [ebp + offset Continue]
mov [eax].SaveEip, ebx
mov fs:[0], esp
assume eax:NOTHING
and edi, 0FFFF0000h
.while TRUE
  .if word ptr [edi] == IMAGE_DOS_SIGNATURE
    mov esi, edi
    add esi, [esi + 03Ch]
    .if dword ptr [esi] == IMAGE_NT_SIGNATURE
      .break
    .endif
  .endif
Continue:
  sub edi, 010000h
  .if edi < 070000000h
    mov edi, 0BFF70000h
    .break
  .endif
.endw
xchg eax, edi 
pop dword ptr fs:[0]
add esp, 4
ret 4
Address:
lea eax, [ebp + offset SehHandler]
push eax
push dword ptr fs:[0]
lea eax, [ebp + offset SEH]
assume eax:ptr SEH_STRUCT
mov [eax].OrgEsp, esp
mov [eax].OrgEbp, ebp
lea ebx, [ebp + offset Continue]
mov [eax].SaveEip, ebx
mov fs:[0], esp
assume eax:NOTHING
mov esi, [esp + 0ch]
.if word ptr [esi] != IMAGE_DOS_SIGNATURE
  jmp Halt
.endif
add esi, [esi + 03Ch]
.if dword ptr [esi] != IMAGE_NT_SIGNATURE
  jmp Halt
.endif
mov edi, [esp + 10h]
mov ecx, 150
xor al, al
repnz scasb
mov ecx, edi
sub ecx, [esp + 10h]
mov edx, [esi + 078h]
add edx, [esp + 0ch]
assume edx:ptr IMAGE_EXPORT_DIRECTORY
mov ebx, [edx].AddressOfNames
add ebx, [esp + 0ch]
xor eax, eax
.repeat
  mov edi, [ebx]
  add edi, [esp + 0ch]
  mov esi, [esp + 10h]
  push ecx
  repz cmpsb
  .if zero?
    add esp, 4
    .break
  .endif
  pop ecx
  add ebx, 4
  inc eax
.until eax == [edx].NumberOfNames
.if eax == [edx].NumberOfNames
  jmp Halt
.endif
mov esi, [edx].AddressOfNameOrdinals
add esi, [esp + 0ch]
push edx
mov ebx, 2
xor edx, edx
mul ebx
pop edx
add eax, esi
xor ecx, ecx
mov word ptr cx, [eax]
mov edi, [edx].AddressOfFunctions
xor edx, edx
mov ebx, 4
mov eax, ecx
mul ebx
add eax, [esp + 0ch]
add eax, edi
mov eax, [eax]
add eax, [esp + 0ch]
jmp Exit
assume edx:nothing
Halt:
xor eax, eax
Exit:
pop dword ptr fs:[0]
add esp, 4
ret 8
SehHandler proc c pExcept:dword, pFrame:dword, pContext:dword, pDispatch:dword
mov eax, pContext
assume eax:ptr CONTEXT
push SEH.SaveEip
pop [eax].regEip
push SEH.OrgEsp
pop [eax].regEsp
push SEH.OrgEbp
pop [eax].regEbp
mov eax, ExceptionContinueExecution
ret
SehHandler endp
PatchEnd:
mov eax, offset PatchEnd
sub eax, offset PatchBegin
mov dwLength, eax
invoke CreateFile, offset szTarget, GENERIC_READ or GENERIC_WRITE, 0, 0, OPEN_EXISTING, 0, 0
.if eax == INVALID_HANDLE_VALUE
  invoke MessageBox, NULL,addr errmsg,addr titlemsg,MB_OK
  invoke ExitProcess, 0
.endif
mov dwFile, eax
invoke GetFileSize, dwFile, 0
mov dwSize, eax
add eax, 2000h
invoke GlobalAlloc, GMEM_FIXED or GMEM_ZEROINIT, eax
mov dwBuffer, eax
invoke ReadFile, dwFile, dwBuffer, dwSize, offset dwBytes, 0
mov esi, dwBuffer
add esi, 03ch
mov eax, dword ptr [esi]
mov dwHeader, eax
sub eax, 03ch
add esi, eax
assume esi:ptr IMAGE_NT_HEADERS
mov ax, [esi].FileHeader.NumberOfSections
mov dwSections, eax
inc [esi].FileHeader.NumberOfSections
mov eax, [esi].OptionalHeader.AddressOfEntryPoint
add eax, [esi].OptionalHeader.ImageBase
mov dwEntryPoint, eax
mov eax, [esi].OptionalHeader.SizeOfImage
mov dwImage, eax
add [esi].OptionalHeader.SizeOfImage, 1000h
mov [esi].OptionalHeader.AddressOfEntryPoint, eax
assume esi:NOTHING
mov esi, dwBuffer
add esi, dwHeader
add esi, 0f8h
assume esi:ptr IMAGE_SECTION_HEADER
mov eax, 0E0000060h
mov [esi].Characteristics, eax
mov eax, 28h
mov ecx, dwSections
imul ecx
add esi, eax
mov eax, dword ptr [szName]
mov dword ptr [esi].Name1, eax
mov eax, dword ptr[szName+4]
mov dword ptr [esi].Name1+4, eax
mov eax, 1000h
mov [esi].Misc.VirtualSize, eax
mov eax, dwImage
mov [esi].VirtualAddress, eax
mov eax, dwLength
mov [esi].SizeOfRawData, eax
mov eax, dwSize
mov [esi].PointerToRawData, eax
mov eax, 0E0000020h
mov [esi].Characteristics, eax
assume esi:NOTHING
mov edi, dwBuffer
add edi, dwSize
lea eax, PatchBegin
xchg esi, eax
mov ecx, dwLength
rep movsb
invoke SetFilePointer, dwFile, 0, 0, FILE_BEGIN
mov eax, dwSize
add eax, dwLength
invoke  WriteFile, dwFile, dwBuffer, eax, offset dwBytes, 0
invoke CloseHandle, dwFile
invoke GlobalFree, dwBuffer
invoke MessageBox, NULL,addr sucmsg,addr titlemsg,MB_OK
invoke ExitProcess, 0
end EntryPoint
.

HOLY FUCK, sorry about the language, but ur Aphex ?? If you are then we could majorly use your help mate, and this will be detected by av's simply because Aphex is a well known Mallicious coder and most of his work is flagged by the damn av companies.....

btw my decision is Norton is for noobs try Kaspersky and Nod32 the best...norton if ur lucky might detect shit , but easily changing Entry point or anything else will undetect it ... its pathetic.
bob1122 is offline  
Old 11.10.2005, 01:08   #58
Koner
Архивный участник
 
Join Date: Sep 2005
Posts: 212
Default

offtop try this thing as av (trial)
unasoft.com.ua
Koner is offline  
Old 11.10.2005, 08:09   #59
kok
Архивный участник
 
Join Date: Jun 2005
Posts: 39
Default

tontor, can you insert in patch fix for multibuff (overbuff) ?
kok is offline  
Old 11.10.2005, 10:32   #60
Livid
Архивный участник
 
Join Date: Apr 2005
Posts: 314
Default

[offtopic] I'm tied of reading that "norton sux", so here you go.
If you ever wrote some virus to bypass kaspersky, norton and minorities (drweb, panda etc) you should know, that kaspersky can't hanle some instructions... No, really, until now kasp's virtual machine can't handle SSE2 instructions.
Norton's bloodhound, at the same time, is a pain in the ass for a hacker, especially when norton is run in paranoid mode.
What's more, norton consumes much lesser system resources than kaspersky. Bypassing drweb and panda is easy as hell, Im not stopping on those.[/offtopic]
Livid is offline  
Old 11.10.2005, 11:01   #61
Digital
Архивный участник
 
Join Date: Nov 2004
Posts: 1,405
Default

File: patch.rar
Status: POSSIBLY INFECTED/MALWARE (Note: this file was only flagged as malware by heuristic detection(s). This might be a false positive. Therefore, results of this scan will not be stored in the database)
MD5 ebab4304dc7f8b2f2b5e8c6ba409c8e9
Packers detected: -
Scanner results
AntiVir Found Heuristic/Virus.Win32 (probable variant)
ArcaVir Found nothing
Avast Found nothing
AVG Antivirus Found nothing
BitDefender Found nothing
ClamAV Found nothing
Dr.Web Found nothing
F-Prot Antivirus Found nothing
Fortinet Found nothing
Kaspersky Anti-Virus Found nothing
NOD32 Found nothing
Norman Virus Control Found nothing
UNA Found nothing
VBA32 Found nothing

--------------------

File: 101005-dll.rar
Status: OK
MD5 2b28f34c4b9fe5dc5f8c4bb94d74344c
Packers detected: -
Scanner results
AntiVir Found nothing
ArcaVir Found nothing
Avast Found nothing
AVG Antivirus Found nothing
BitDefender Found nothing
ClamAV Found nothing
Dr.Web Found nothing
F-Prot Antivirus Found nothing
Fortinet Found nothing
Kaspersky Anti-Virus Found nothing
NOD32 Found nothing
Norman Virus Control Found nothing
UNA Found nothing
VBA32 Found nothing

------------------

scanned by
Jotti's malware scan 2.99-TRANSITION_TO_3.00
http://virusscan.jotti.org/

should be safe to use...
Digital is offline  
Old 11.10.2005, 11:32   #62
BiGBoY
Архивный участник
 
Join Date: May 2005
Posts: 216
Default

Quote:
Originally Posted by Livid
[offtopic] I'm tied of reading that "norton sux",...[/offtopic]
Cant agree more with u Livid. But i am tired of proving to anyone what is good and what is not. If they dont like it, than they should not use it. All i know since i am using Symantec Corporate i got no prob with any kind of bugs.
BiGBoY is offline  
Old 11.10.2005, 15:22   #63
LDragonL
Архивный участник
 
Join Date: May 2005
Posts: 133
Default

I am facing freezes/crashes too.
But when had the chance of using auto restart it wouldn''t be a problem.
Anyways this is a very nice tool, i hope it will be further developed.

Greetz
LDragonL is offline  
Old 11.10.2005, 15:31   #64
horyfilipe
Архивный участник
 
Join Date: Jul 2005
Posts: 242
Default

Mine freezes often.. most times it doesnt reach 1hour online :/
horyfilipe is offline  
Old 11.10.2005, 15:49   #65
LDragonL
Архивный участник
 
Join Date: May 2005
Posts: 133
Default

Can anyone please help me by sending a not-freezing l2server.exe including the patch ? It must be some bad l2server files i am 100% sure of that considering the loq amount of posts about freezing here.
LDragonL is offline  
Old 11.10.2005, 16:04   #66
Phantom2005
Архивный участник
 
Join Date: Aug 2005
Posts: 394
Default

Mine also freezed when it didn't patched my l2server.exe correctly... i used a standard l2server.exe... added the things i changed.. didn't use tp-fix patch and it worked
Phantom2005 is offline  
Old 11.10.2005, 16:06   #67
LDragonL
Архивный участник
 
Join Date: May 2005
Posts: 133
Default

Thanks for your advice phantom,
i will test it tonight.

In 't nederlands, harstikke bedankt
LDragonL is offline  
Old 11.10.2005, 16:45   #68
horyfilipe
Архивный участник
 
Join Date: Jul 2005
Posts: 242
Default

Ldragonl would you be so kind to send me too?
horyfilipe is offline  
Old 11.10.2005, 17:49   #69
LDragonL
Архивный участник
 
Join Date: May 2005
Posts: 133
Default

I'm testing now, if it was a clean file i had, and it's works allright i will post it here tonight.
LDragonL is offline  
Old 11.10.2005, 22:08   #70
bob1122
Архивный участник
 
Join Date: Aug 2005
Posts: 278
Default

2h uptime, im using Frozens L2Server.exe ... allthough last night those bastards crashed it, time for me to program a autoreboot :<.....

to tontor: Source ... Either privatly pm me or releasing source publiclly would probably help out... i've been working (more like thinking :P) about the dll .... i guess aphexs way off adding it to .exe's should work.... I'm just to damn tired latly to start working on a dll from scratch... if you want to know anything further let me know....I dont *think* Any exploits can be made from source, but if it is possible, dont release it to public... and i hesitate thinking of even releasing it to me :P
bob1122 is offline  
Old 12.10.2005, 04:31   #71
melco
Архивный участник
 
Join Date: Sep 2005
Posts: 33
Default

server crached
Quote:
Server Up Time Wed Oct 12 08:08:58 2005

Current Time : Wed Oct 12 08:25:21 2005

Elapsed Time : 0 days 0 hours 16 minutes 23 seconds
IOBufferPool - 19448

[(3912) 2005/10/12 08:25:21]: =======================
an Access Violation in module l2server.exe at 001b:0045f79e.
start at 2005/10/12 08:08:55
Write to location 00000000 caused an access violation.

Registers:
EAX=00000000 CS=001b EIP=0045f79e EFLGS=00010246
EBX=78991444 SS=0023 ESP=75dffe50 EBP=00000000
ECX=00000000 DS=0023 ESI=1734a264 FS=003b
EDX=00000000 ES=0023 EDI=17371364 GS=0000
Bytes at CS:EIP:
0f 00 00 e8 2a 12 07 00 8d 4d d0 e8 22 c4 fb ff
Stack dump:
75dffe50: 00000000 2c142c4c 77e6bb6d 00000000 00000019 00000000 00000000 48107fa8
75dffe70: 000003e8 014069f2 00000002 75dffe50 75dffeb8 005a52e8 ffffffff 75dffec4
75dffe90: 0053adaf 787d4524 876286fb 03d9e124 00000001 77e6bb6d 004df622 0000001b
75dffeb0: 876286e0 75dffe9c 75dffef0 005afb80 ffffffff 75dffefc 0053aed9 00000001
75dffed0: 00000002 00000000 03d9e124 00000001 77e6bb6d fffd40e0 ffffffff 75dffed8
75dffef0: 75dfff6c 005afb90 ffffffff 75dfff78 0053cbe6 00000001 00000002 00000000
75dfff10: 00000000 00000003 787c0bf0 00000000 00001000 00010000 bffeffff 0000000f
75dfff30: 00000004 0000024a 00010000 0205000f f1133c88 e0632cee fce8e8a0 00000005
75dfff50: 00000002 000503a8 00000000 e062d821 00000000 2c142c4c 75dfff10 75dfffa8
75dfff70: 005afca0 ffffffff 75dfffb8 0053cd1b 00000003 787c0bf0 0058eb2a 00000003


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

void IOThread_common(void *arglist) <--
void CDBPacket::OnIOCallback(BOOL bSuccess, DWORD dwTransferred, LPOVERLAPPED lpOverlapped) <--
void CPacket::OnIOCallback(BOOL bSuccess, DWORD dwTransferred, LPOVERLAPPED lpOverlapped) <--
cpacket:niocallback_funccall <--
ReplyPackageSendToTarget(CDBSocket *socket, const unsigned char *packet)

Thread[0] (good): Lock Stack :

Thread[1] (good): Lock Stack :

Thread[2] (good): Lock Stack :

Thread[3] (ahehe): Lock Stack :
:roll:
melco is offline  
Old 12.10.2005, 08:36   #72
lich
Архивный участник
 
Join Date: Jul 2005
Posts: 96
Default

Seems to be the same problem
Quote:
Server Up Time Wed Oct 12 09:49:09 2005

Current Time : Wed Oct 12 14:20:05 2005

Elapsed Time : 0 days 4 hours 30 minutes 56 seconds
IOBufferPool - 1320

[(4740) 2005/10/12 14:20:05]: =======================
an Access Violation in module L2Server.exe at 001b:0053aa21.
start at 2005/10/12 09:49:02
Write to location 00000000 caused an access violation.

Registers:
EAX=74a28650 CS=001b EIP=0053aa21 EFLGS=00010297
EBX=0001c199 SS=0023 ESP=70a9f950 EBP=70a9f9b8
ECX=00000007 DS=0023 ESI=00000032 FS=003b
EDX=73c535b0 ES=0023 EDI=20b3839c GS=0000
Bytes at CS:EIP:
c6 05 00 00 00 00 01 33 c9 89 88 10 20 00 00 c7
Stack dump:
70a9f950: 0043fbb6 00000032 004459f0 005bd8b8 70a9f9f0 0001d8bf 4820b47e 0001c199
70a9f970: 402ecb0c cacf5f3b c0116912 00000000 00000000 89ea644c 006c090c 89ea63e4
70a9f990: 40700000 00000000 70a9f984 70a9f9cc 005a1570 00000000 70a9f964 70a9fa28
70a9f9b0: 005a4468 ffffffff 70a9fa34 0049deb7 44440024 4820b47e 0000f000 4a2b3378
70a9f9d0: 40fc1991 a9efb833 40fd8bfc 00000000 c0ab3000 00000000 40b77000 005bd8b8
70a9f9f0: 00000001 4820b47e 0001c1a8 0001d8bb fffff268 0001c199 0001d8bf fffff268
70a9fa10: 89ea644c 70a9fb08 89ea63e4 005433c8 0034b9e2 70a9fa10 70a9fbac 005a7c80
70a9fa30: ffffffff 70a9fbb8 00543abe 4a2b3378 40fc1991 a9efb833 40fd8bfc 00000000
70a9fa50: c0ab3000 a29302f4 40fc1a87 05a48cf6 40fd8bb7 00000000 70a9f9cc 89ea63e4
70a9fa70: 8b24b544 20b3839c 70a9fb08 0043efc9 005c961c 00001f75 33926270 70a9fb2c


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

void IOThread_common(void *arglist) <--
void CIOSocket::ReadCallback(DWORD dwTransferred) <--
CUserSocket::OnRead <--
MoveToLocationPacket <--
CCreature::MoveToLocation <--
inline void AddExecutable(MemoryObject *Matrix, Native Func, CExecutionArgument* Arg) <--
add exec - func call <--
void CCreatureController::Move <--
void CCreatureController:oFirstAction() <--
void CMoveAction::Start() <--
void CMoveAction::SetMoving() <--
void CCreatureController::ActionBroadcastMove(FVector vStart, FVector vTo) <--
void BroadcastToNeighborDist(FVector vPos, double dist, const char* format, ...)

Thread[0] (good): Lock Stack :

Thread[1] (ahehe): Lock Stack :
10 minutes before crashing in l2server there is error appears
Quote:
10/12/2005 14:15:xx.xx0, [c:\serverservice\l2server\ThreadSafeLibrary.h][2298] Asynchronous Execution Overflow.
repeating many times for approximately 10 minutes then server crashes.
There were many times with the same sympoms.

But the work tontor done is really great! It's solve all html bugs in one time.
lich is offline  
Old 12.10.2005, 10:12   #73
tontor
Архивный участник
 
Join Date: May 2005
Posts: 109
Default

Quote:
Originally Posted by bob1122
2h uptime, im using Frozens L2Server.exe ... allthough last night those bastards crashed it, time for me to program a autoreboot :<.....

to tontor: Source ... Either privatly pm me or releasing source publiclly would probably help out... i've been working (more like thinking :P) about the dll .... i guess aphexs way off adding it to .exe's should work.... I'm just to damn tired latly to start working on a dll from scratch... if you want to know anything further let me know....I dont *think* Any exploits can be made from source, but if it is possible, dont release it to public... and i hesitate thinking of even releasing it to me :P
Awhile ago i would of considered releasing it but due to the ammount of other fixes i have incorperated into the same source I wont be.The only thing that seperates what I've released and what I use is some ifdefs.

Quote:
Server Up Time Wed Oct 12 09:49:09 2005

Current Time : Wed Oct 12 14:20:05 2005

Elapsed Time : 0 days 4 hours 30 minutes 56 seconds
IOBufferPool - 1320

[(4740) 2005/10/12 14:20:05]: =======================
an Access Violation in module L2Server.exe at 001b:0053aa21.
start at 2005/10/12 09:49:02
Write to location 00000000 caused an access violation.

Registers:
EAX=74a28650 CS=001b EIP=0053aa21 EFLGS=00010297
EBX=0001c199 SS=0023 ESP=70a9f950 EBP=70a9f9b8
ECX=00000007 DS=0023 ESI=00000032 FS=003b
EDX=73c535b0 ES=0023 EDI=20b3839c GS=0000
Bytes at CS:EIP:
c6 05 00 00 00 00 01 33 c9 89 88 10 20 00 00 c7
Stack dump:
70a9f950: 0043fbb6 00000032 004459f0 005bd8b8 70a9f9f0 0001d8bf 4820b47e 0001c199
70a9f970: 402ecb0c cacf5f3b c0116912 00000000 00000000 89ea644c 006c090c 89ea63e4
70a9f990: 40700000 00000000 70a9f984 70a9f9cc 005a1570 00000000 70a9f964 70a9fa28
70a9f9b0: 005a4468 ffffffff 70a9fa34 0049deb7 44440024 4820b47e 0000f000 4a2b3378
70a9f9d0: 40fc1991 a9efb833 40fd8bfc 00000000 c0ab3000 00000000 40b77000 005bd8b8
70a9f9f0: 00000001 4820b47e 0001c1a8 0001d8bb fffff268 0001c199 0001d8bf fffff268
70a9fa10: 89ea644c 70a9fb08 89ea63e4 005433c8 0034b9e2 70a9fa10 70a9fbac 005a7c80
70a9fa30: ffffffff 70a9fbb8 00543abe 4a2b3378 40fc1991 a9efb833 40fd8bfc 00000000
70a9fa50: c0ab3000 a29302f4 40fc1a87 05a48cf6 40fd8bb7 00000000 70a9f9cc 89ea63e4
70a9fa70: 8b24b544 20b3839c 70a9fb08 0043efc9 005c961c 00001f75 33926270 70a9fb2c


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

void IOThread_common(void *arglist) <--
void CIOSocket::ReadCallback(DWORD dwTransferred) <--
CUserSocket::OnRead <--
MoveToLocationPacket <--
CCreature::MoveToLocation <--
inline void AddExecutable(MemoryObject *Matrix, Native Func, CExecutionArgument* Arg) <--
add exec - func call <--
void CCreatureController::Move <--
void CCreatureController:oFirstAction() <--
void CMoveAction::Start() <--
void CMoveAction::SetMoving() <--
void CCreatureController::ActionBroadcastMove(FVector vStart, FVector vTo) <--
void BroadcastToNeighborDist(FVector vPos, double dist, const char* format, ...)

Thread[0] (good): Lock Stack :

Thread[1] (ahehe): Lock Stack :
Actually upon reviewing this specific crash, its due to something in server deadlock handler that from the look of stack isnt directly an effect of my modifications, there is 1 addr on stack relative to it though.

Quote:
0053AA1D . 5F POP EDI
0053AA1E . 5E POP ESI
0053AA1F . 7D 07 JGE SHORT L2Server.0053AA28
0053AA21 C605 00000000>MOV BYTE PTR DS:[0],1
0053AA28 > 33C9 XOR ECX,ECX
0053AA2A . 8988 10200000 MOV DWORD PTR DS:[EAX+2010],ECX
Quote:
0053AA21 C605 00000000>MOV BYTE PTR DS:[0],1
This isn't the only location I've seen this done, purposely causing an exception? Or somewhere along the lines someones modifications have left it this way. I haven't checked it against original c1 exe. Theres 1 other location that I have seen this in a deadlock handler off the top of my head. The other one I nop'd out and it recovers from deadlock and resumes just fine. I discovered it while debugging l2server, pausing it in a debugger would cause deadlock so i ran into it. Can't tell you the effects of nop'ing this really, but looks like it was done intentionally on unrecoverable errors.

Quote:
0040D0F5 > /C605 00000000>MOV BYTE PTR DS:[0],1
004393A5 > /C605 00000000>MOV BYTE PTR DS:[0],1
00489FC5 > /C605 00000000>MOV BYTE PTR DS:[0],1
004BF835 > /C605 00000000>MOV BYTE PTR DS:[0],1
004B39D5 > /C605 00000000>MOV BYTE PTR DS:[0],1
004E03A5 > /C605 00000000>MOV BYTE PTR DS:[0],1
^some shared memory error

0048E874 > \C605 00000000>MOV BYTE PTR DS:[0],1 ; Case 8019 of switch 0048E2CD
^some menu handler

0053AA21 C605 00000000>MOV BYTE PTR DS:[0],1
^your crash, something to do CIODeadlock handler
And then there was another I changed for deadlocks during debugging in there somewhere that's not listed.





Quote:
Server Up Time Wed Oct 12 08:08:58 2005

Current Time : Wed Oct 12 08:25:21 2005

Elapsed Time : 0 days 0 hours 16 minutes 23 seconds
IOBufferPool - 19448

[(3912) 2005/10/12 08:25:21]: =======================
an Access Violation in module l2server.exe at 001b:0045f79e.
start at 2005/10/12 08:08:55
Write to location 00000000 caused an access violation.

Registers:
EAX=00000000 CS=001b EIP=0045f79e EFLGS=00010246
EBX=78991444 SS=0023 ESP=75dffe50 EBP=00000000
ECX=00000000 DS=0023 ESI=1734a264 FS=003b
EDX=00000000 ES=0023 EDI=17371364 GS=0000
Bytes at CS:EIP:
0f 00 00 e8 2a 12 07 00 8d 4d d0 e8 22 c4 fb ff
Stack dump:
75dffe50: 00000000 2c142c4c 77e6bb6d 00000000 00000019 00000000 00000000 48107fa8
75dffe70: 000003e8 014069f2 00000002 75dffe50 75dffeb8 005a52e8 ffffffff 75dffec4
75dffe90: 0053adaf 787d4524 876286fb 03d9e124 00000001 77e6bb6d 004df622 0000001b
75dffeb0: 876286e0 75dffe9c 75dffef0 005afb80 ffffffff 75dffefc 0053aed9 00000001
75dffed0: 00000002 00000000 03d9e124 00000001 77e6bb6d fffd40e0 ffffffff 75dffed8
75dffef0: 75dfff6c 005afb90 ffffffff 75dfff78 0053cbe6 00000001 00000002 00000000
75dfff10: 00000000 00000003 787c0bf0 00000000 00001000 00010000 bffeffff 0000000f
75dfff30: 00000004 0000024a 00010000 0205000f f1133c88 e0632cee fce8e8a0 00000005
75dfff50: 00000002 000503a8 00000000 e062d821 00000000 2c142c4c 75dfff10 75dfffa8
75dfff70: 005afca0 ffffffff 75dfffb8 0053cd1b 00000003 787c0bf0 0058eb2a 00000003


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

void IOThread_common(void *arglist) <--
void CDBPacket::OnIOCallback(BOOL bSuccess, DWORD dwTransferred, LPOVERLAPPED lpOverlapped) <--
void CPacket::OnIOCallback(BOOL bSuccess, DWORD dwTransferred, LPOVERLAPPED lpOverlapped) <--
cpacket:niocallback_funccall <--
ReplyPackageSendToTarget(CDBSocket *socket, const unsigned char *packet)

Thread[0] (good): Lock Stack :

Thread[1] (good): Lock Stack :

Thread[2] (good): Lock Stack :

Thread[3] (ahehe): Lock Stack :
However this one is related in some way, but i need the base address of the dll if you could click on the console icon in top left and edit->mark all, copy it right after it loads the dll and paste to me here, i can tell what call its in. Looks like stack got messed up returning somewhere it shouldn't.
tontor is offline  
Old 12.10.2005, 13:29   #74
PhDoc
Архивный участник
 
Join Date: May 2005
Posts: 30
Default

Code:
[bypass -h teleport_1112319664_3]
Its exploit or?
PS. Nice share %)
PhDoc is offline  
Old 12.10.2005, 14:40   #75
kembl
Архивный участник
 
Join Date: May 2005
Posts: 63
Default

As I understand, all of this are commans with wrong CRC, that cant tome send to server by original unmodified client?

[bypass -h _agitauclist].
[bypass -h _agitaucmy].
[bypass -h create_pledge?].
[bypass -h creativ_ghost_item].
[bypass -h deposit bypass menu_select?].
[bypass -h deposit].
[bypass -h deposit_pledge].
[bypass -h dismiss_pledge].
[bypass -h dupe_item].
[bypass -h dupe_item_creativ].
[bypass -h forth player@ 83400 147943 -3404 teleport_player_to].
[bypass -h forth strider 1 0 temporary-ride].
[bypass -h jbf_ride 12526 1].
[bypass -h learn_skill].
[bypass -h level_up_pledge?].
[bypass -h menu_select?ask= &reply=].
[bypass -h menu_select?ask= 1 &reply=].
[bypass -h menu_select?ask= 403 &reply= 2].
[bypass -h menu_select?ask= lala &reply= op op].
[bypass -h menu_select?ask= op &reply=].
[bypass -h menu_select?ask=0337&reply=1].
[bypass -h menu_select?ask=-1&reply=0].
[bypass -h menu_select?ask=-1&reply=1].
[bypass -h menu_select?ask=-1&reply=10].
[bypass -h menu_select?ask=-1&reply=8].
[bypass -h menu_select?ask=-201&reply=1].
[bypass -h menu_select?ask=-201&reply=2].
[bypass -h menu_select?ask=216&reply=3].
[bypass -h menu_select?ask=333&reply=15].
[bypass -h menu_select?ask=334&reply=1].
[bypass -h menu_select?ask=334&reply=7].
[bypass -h menu_select?ask=334&reply=9].
[bypass -h menu_select?ask=403&reply=2].
[bypass -h menu_select?ask=419&reply=1].
[bypass -h menu_select?ask=503&reply=3].
[bypass -h menu_select?ask=503&reply=9].
[bypass -h multisell?id= 1].
[bypass -h multisell?id= 2].
[bypass -h multisell?id=].
[bypass -h multisell?id=0].
[bypass -h multisell?id=2].
[bypass -h multisell?id=4].
[bypass -h multisell?id=6].
[bypass -h recipe?id=20].
[bypass -h recipe?id=21].
[bypass -h recipe?id=24].
[bypass -h recipe?id=30].
[bypass -h recipe?id=334].
[bypass -h recipe?id=340].
[bypass -h recipe?id=46].
[bypass -h recipe?id=55].
[bypass -h recove_pledge].
[bypass -h talk_select].
[bypass -h teleport_1120176160_1].
[bypass -h teleport_1154531928_3].
[bypass -h teleport_1159621888_4].
[bypass -h teleport_request].
[bypass -h withdraw].
[bypass -h withdraw_pledge].
kembl is offline  
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 14:58.