PDA

View Full Version : [HEX] AuthD


AgeNT2005
13.01.2006, 13:53
Anybody know How I can block another protocol connection to AuthD?

For example: i need block all OpenSocket connection by 413 version protocol

zcold
13.01.2006, 14:43
Block another?
Set your server's protocol to 413 (as i understand you want this protocol), in ini-file disallow to connect client with lower protocol...
then, go to 10105D in l2server.exe and change 2 bytes to any protocol nuber you want...
1C 02 - is 540 proto
12 02 - 530
9D 01 - will be 413 proto

barabashka
13.01.2006, 14:59
[rus] Проблема состоит в следующем. При переходе с Ц1 на Ц3 протокол сервера был изменен с 413 на 530. Но существует некое количество ботов, которые пытаються коннектиться на 413. при коннекте бота, на сервере открываеться соккет, который потом не закрываеться. при достаточно большом онлайне, количество открытых соккетов превышает все допустимые рамки, что приводит к крашу сервера. И я так понял суть этого топика создана для того, чтобы найти способ, который бы не позволял боту с 413 протоколом коннекта открывать соккет на сервере. Думаю эта проблема решаеться на уровне хекса AuthD.exe. /[rus]

Please translate to English, and sorry for my Bad english.

HF
13.01.2006, 19:00
interessing...
Please translate to English, and sorry for my Bad english.
Old C1 L2Auth protocol has been changed to 530 (C3). But, some l2walker (bot) try connect with use 413 protocol. Server open user socket, but cant close it later. And... big server online can have a lot amount bad "ghost" user socket sessions and server cause 2 problem:
- server crash
- "login server" failed. You can connect, autorize on server, but cant select character (you cant see select char window).
I think, this problem can fix in AuthD.exe. For example, need block 413 autorize protocol.

HF
13.01.2006, 19:02
need waiting C4.
We need change all. Authorize protocol, server features and etc.

Dmytro
13.01.2006, 22:14
Yep, maybe C12 ? :D

2 barabashka, zcold answer on your question.
<rus>Просто установи флаг в l2server.ini : AcceptLowerProtocol=false
по идее должно помочь</rus>

zcold
14.01.2006, 11:33
Yep, maybe C12 ? :D

2 barabashka, zcold answer on your question.
<rus>Просто установи флаг в l2server.ini : AcceptLowerProtocol=false
по идее должно помочь</rus>
No, my answer will not help, because AuthD will open socket and pass connection to l2server, and only then connection will be denied.

<rus>Короче не поможет мой ответ, потому что authd все равно будет открывать сокет и передавать "клиента" дальше - на l2server. А надо "рубать" левые протоколы еще на уровне authd, чтоб не оставались висеть открытые сокеты</rus>
(it was almost same text in russian)

barabashka
14.01.2006, 12:23
А может стоит думать в сторону хексинга winsock.dll? Добавить одну строку в OnRecieveSocketPacket: if (RecievePacket=='413 protocol firstpacket string') CloseSocket. может кто-то сталкивался с такого рода модификациями?

maxwell
15.01.2006, 18:49
А может проще прокси написать, который будет только 530 протокол пускать?
Maybe easy write Proxy, wich accept only 530 protocol?

Sry, for my bad english.

Wishmaster
15.01.2006, 20:02
Just analyze C4 client files by sniffing and make AuthD and L2server for C4...I think it's better than anything doing with C3....
Because C4 is on!!!

Wishmaster
15.01.2006, 20:05
Also we did it!!!!!!
We won the red-lighting weapon effect in the Char Selection menu!!!!
After few time i;ll put there an l2server.exe

toolpunk
15.01.2006, 20:48
what are you trying to tell us? :|
won the red-lightning weapon effect? :roll:

Validator
29.01.2006, 08:17
Bump

Flamestrike
29.01.2006, 09:36
HuH? Maybe he means that at the login screen the weapon is not showed as red colored or yellow or green.

Mirror
29.01.2006, 13:02
hm what if we allow 413 protocol in l2server.ini ? :)

Wishmaster
29.01.2006, 13:13
I said about glow effect of non-enchanted weapon.

drzoom
29.01.2006, 13:18
413 - it's not protocol version... It's encrypt algorythm version...
Protocols are 530, 535 ... 560

Mirror
29.01.2006, 13:39
i mean this : if what barabashka says is true, then if we set acceptlowerprotocl=true then connections from bots will not leave ghost sockets...so..:)..what do you think ?

Livid
31.01.2006, 00:36
The problem is not in ghosts sockets, eh... You can make ghost sockets close after some time and yet you wills till have same problems. No idea how to fight that one =\

Mirror
31.01.2006, 09:33
yes yes true. didn't work :/

rodier
31.01.2006, 22:47
pls can anyone share c3 authD? I used one from PP pack.. but Im getting too much problems ;-( after 10-12h of running with 400 ppl... invalid socket.. invalid user..
sometime ago when we have another server software [our disk crash and no backup..so we start from nothing..] we dont have that much problems..

win2003 server enteprise..fully updated..

top-gear
31.01.2006, 22:57
HIEW (decode mode) .0050105C

drzoom
31.01.2006, 23:02
What's it? What there?

AgeNT2005
03.02.2006, 17:03
WindowsServer2003-KB898060-v2-x86-enu.exe

Для 2003 заплатка помогла. Как только останавливаются UserConected сервер начинает закрывать лишние сокеты.


Решение (https://postpacific.loc-online.com/forum/viewtopic.php?t=2435)

Validator
03.02.2006, 17:29
After this patch, my system crached. So... ahtung ^_^.
MS sas what's MTU problem.

kvoxi
03.02.2006, 18:05
WindowsServer2003-KB898060-v2-x86-enu.exe

Для 2003 заплатка помогла. Как только останавливаются UserConected сервер начинает закрывать лишние сокеты.


Решение (https://postpacific.loc-online.com/forum/viewtopic.php?t=2435)
Из личного опыта+Microsoft Knowledge Base:
Эта заплатка исправляет ошибку обработки стеком TCP/IP протокола сервера ICMP пакета, возвращаемого ближайшим маршрутизатором, с требованием использовать фрагментацию пакетов или уменьшить MTU до указанного в пакете значения (т.е. макс МТУ пакета, которое рутер может передать дальше). Т.к. по умолчанию все пакеты отправляются сервером с установленным флагом "DF" - не фрагментировать, то неправильная обработка такой ситуации приводила к накопительной ошибке (там есть какой-то предел, по достижении которго считается, что маршрут до клиентского хоста плохой), после чего сервер отказывался принимать новые клиентские соединения.

Validator
03.02.2006, 18:28
Да и там рекомендуют поставить параметр МТУ в ручную. Только после запуска ХЗ что с твоей системой будет.

kvoxi
03.02.2006, 19:07
Да и там рекомендуют поставить параметр МТУ в ручную. Только после запуска ХЗ что с твоей системой будет.
После наката фикса, сервер сам нормально должен работать, НО если у тя серв стоит за жутко старой железкой, которая просто режет пакеты без возврата ICMP пакета типа Needed fragmentation с полем MTU установленным в то значение которое он может передать дальше, ТО те надо просто пгрить со своим провайдером и выставить то значение MTU, что тебе скажут. Без фантазий со своей стороны.
И не влнуйся, серв от этого падать не должен ну никак. Если у тя есть такая проблема, то ищи в другом месте. MTU не причем.

top-gear
04.02.2006, 00:24
HIEW (decode mode) .0050105C

search that address at l2server.exe
there is the protocol number

then l2server.ini
allowlowerprotocol=0

AgeNT2005
04.02.2006, 11:00
Нашел, может поможет. Только эксперементировать нужно.

Windows Socket (http://technet2.microsoft.com/WindowsServer/en/Library/823ca085-8b46-4870-a83e-8032637a87c81033.mspx)