Post Pacific

Post Pacific (https://postpacific.loc-online.com/index.php)
-   Темы без сохранившегося раздела (https://postpacific.loc-online.com/forumdisplay.php?f=10001)
-   -   [share] AuthD addon (https://postpacific.loc-online.com/showthread.php?t=6078)

Dmytro 26.10.2006 10:08

[share] AuthD addon
 
Supports AuthD version 40504.


/*
This is a freeware addon, that enhance the functions of Auth.
"As Is".
Just for informational purposes.
*/


(v0.2.1)
+ New config-file system (addon.cfg).
+ Problems corrected.

(v0.2)
+ Packet filter, pass only needed packets.
+ Log logins on Acc per IP.
+ Some corrects.

(v0.1.1)
Small addon, reload BlockIPs.txt file through a time period, which one is set in addon.ini.
Now AuthD does not require restarting for blocking IP.
+ You can change path and name for BlockIPs.txt file (IP blocklist)
+ Reload IP blocklist using timer (interval)
+ You can change blowfish key in settings (key in HEX)

Correct works on x32, x64 systems.

Problems:
Not found.


<rus>
link
</rus>

Only addon (v0.2.1) - Attachment 853
Only addon (v0.2) - Attachment 756
AuthD+addon (v0.1.1) - Attachment 375
pass: *null*
(If you can't download attach -> rap*da )

Вложения из исходного сообщения (сами файлы в копии отсутствуют):
authd.rar — 163904 байт
authd_addon_v0.2.rar — 10092 байт
addon_v0.2.1.rar — 16124 байт

Mark20 27.10.2006 07:47

What is the allowed format for blocked IPs ?
i try with something like 1xx.xx8.* but that doesnt works, what is the right way ? thanks in advance.


PD: I know is a really noob question, but i never use that, always block with firewall.

m4rk 27.10.2006 08:04

ending it in 0 I believe.

LoVeRSaMa 27.10.2006 11:36

Nice share, very useful for very stable servers or servers that only restart every week :O

nathan <3

l2serverfull 27.10.2006 20:06

pass ? post plz

Dmytro 27.10.2006 20:09

Small update...

Quote:

Originally Posted by LoVeRSaMa (Post 70790)
Nice share, very useful for very stable servers or servers that only restart every week :O

I set interval to 5 min, it's important for me.
I don't wont wait hour or more for restart, when IP blocklist updated.

I think, every good server have own auth server, and don't use something like this. =)

Dmytro 27.10.2006 20:10

Quote:

Originally Posted by l2serverfull (Post 70819)
pass ? post plz

Sorry, 1st post changed ;)

rodier 07.11.2006 03:23

you can close authD and start it again.... but this is nice ;) with blowfish.. etc

cesarius 16.11.2006 15:49

Thank you...its a great share...can you please give me a source code for it when you have one.... im trying ro make now a new verification system, that will block all connections from not original clietnt that the server has...but i need a source code of authd to make it work....

testdude 16.11.2006 18:49

Quote:

Originally Posted by cesarius (Post 72454)
Thank you...its a great share...can you please give me a source code for it when you have one.... im trying ro make now a new verification system, that will block all connections from not original clietnt that the server has...but i need a source code of authd to make it work....

dont we all....

AsterisKSM 04.01.2007 06:50

well i changed the key In engine.dll... and In auth... but i cant connect... :( some help?

mcrabben7 04.01.2007 19:37

1) Post in the HELP section

2) You changed the wrong key, of course. As long as Auth and Engine key are the same it will connect just fine.

AsterisKSM 04.01.2007 19:48

well... than why when i use other Authd... and change the key In it... the engine works fine...?

mcrabben7 04.01.2007 19:59

C1 AuthD does work. C4 AuthD has never worked for me, ever :P Just use the C1 AuthD and change the keys in there.

Dmytro 05.01.2007 07:02

Yes i know, addon have some mistakes in code with write in memory.
And it's not properly work on win-2003-x64.
I work on new version, so, if you wont you may wait. =)

2Rain 15.01.2007 06:20

We have anough variants. :)

MEMENTO 13.02.2007 13:21

maybe dll Source ?

petre1980 13.02.2007 13:33

Or maybe a new version ? :D

MEMENTO 13.02.2007 15:00

Quote:

Originally Posted by petre1980 (Post 78294)
Or maybe a new version ? :D

give me source and ill make new version :)

DevilsAssociate 14.02.2007 03:37

damn why is this topic full of give me this and give me that

how about you make you own for the soruce

Lucas 14.02.2007 05:06

Quote:

Originally Posted by DevilsAssociate (Post 78409)
damn why is this topic full of give me this and give me that

how about you make you own for the soruce

Easy big boy. Gotta show some love ^^

Dmytro 14.02.2007 08:03

Sources O_o
Code:

BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpReserved) 
{
        switch(fdwReason)
        {
                case DLL_PROCESS_ATTACH:
                        DllStartPoint();
                        break;
                case DLL_THREAD_ATTACH:       
                        break;       
                case DLL_THREAD_DETACH:
                        break;
                case DLL_PROCESS_DETACH:
                        break;   
        }   
        return TRUE;
}

void DllStartPoint()
{
        dwProcessId = GetCurrentProcessId();
        hMainInst = OpenProcess(PROCESS_ALL_ACCESS,NULL,dwProcessId);

        if(hMainInst)
        {
                InjectFuture();
                CloseHandle(hMainInst);
        }
}

void InjectFuture()
{
        MessageBox(0,"Inject!","Notice!",MB_OK);
 
        VirtualProtect((void*)(SomePoint+0x0230C),5,PAGE_READWRITE,&VirtualProtectOld);
        DWORD * dataAddr = (DWORD *)(SomePoint+0x0230C+1);
        *dataAddr = (DWORD)NewData;
        VirtualProtect((void*)(SomePoint+0x0230C),5,VirtualProtectOld,&VirtualProtectOld);

        ...

}

It's very simple. :D

V0gelz 14.02.2007 21:55

Hehe i love this stuff :p, made something like this for gta sa-mp. Oh well ...

Dmytro 26.04.2007 07:50

Updated.....

FidoW 26.04.2007 08:43

Quote:

Originally Posted by Pipec (Post 84700)
Updated.....

Can you explain what kind of packets are stoped? l2walker login packets ?

And what are the things dont work in w2k3 x64 ? i think most of us use that OS so would be interesting try to fix that because the addon looks very interesting

GJ Pipec.

Dmytro 26.04.2007 10:52

Quote:

Originally Posted by FidoW (Post 84704)
Can you explain what kind of packets are stoped? l2walker login packets ?

Code:

[PacketFilter]
; On/Off packet filtering
; "true" -> pass only packets with header: 0x00, 0x02, 0x05
Enable=true
; Enable/Disable log requests on accounts with IP, in log-file and display.
LogLogins=true

It's dosn't block bots and etc tools. It's only passthru three packets needed for login on server (headers: 0x00, 0x02, 0x05).
I integrate in addon full control of incoming packets, i can integrate simple checking for packets, encode it and etc. But that need client changes, and for short time someone write anti-xxxxx. =)
On login, packets that using Bot not differ from client.
Also i do this for integrate RSA encoding ... someday :D

Quote:

And what are the things dont work in w2k3 x64 ? i think most of us use that OS so would be interesting try to fix that because the addon looks very interesting
That things perfect work on winXP(x32). =)
I set address of memory in some var. VirtualProtect parameter - PAGE_READWRITE, addr var, size(4 byte) (now 8 bytes). Do like *var_addr = (dword)SomeAddr; - and this don't work only in one or two places.
(BlowFish key dosn't changes and maybe path to file BlockIPs)
In v0.2 i change *addr=...; -> WriteProcessMemory(...)
Thats first problem.
Second, CreateThread and SetTimer create handlers, but after don't call functions. On winXP(x32) it work perfectly. Also can't understand where i miss something that can influence on this.

Dmytro 05.06.2007 08:36

Updated :p

petre1980 05.06.2007 09:12

Quote:

Originally Posted by Dmytro (Post 87700)
Updated :p

Does now work on x64 environment? :D

FidoW 05.06.2007 10:46

Quote:

Originally Posted by Dmytro (Post 87700)
Updated :p

Testing, looks like it work perfect this time! GJ!

Are you going to share sources?

FidoW 05.06.2007 14:10

Quote:

Originally Posted by FidoW (Post 87721)
Testing, looks like it work perfect this time! GJ!

Are you going to share sources?

Have some kind of memory issue, after 2 hours the auth stop responding 3 times and ram memory used go to 99%.

Dmytro 05.06.2007 17:02

Hm, i think this is buffer overflow of CLog, but not sure.

Try with this config:
Quote:

BlockIPsShowMsg=false
LogLogins=false

Techno 05.06.2007 19:01

Pass ?
 
Password ?

Forcer 05.06.2007 19:22

Wash your eyes...
Look first post and press ctrl+a >_<

Nevyn 05.06.2007 19:44

Well done. Plus one kebab-points for you.

m4rk 05.06.2007 20:58

Thanks gonna check it as soon as I can


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