Luigi Auriemma

aluigi.org (ARCHIVE-ONLY FORUM!)
It is currently 19 Jul 2012 14:03

All times are UTC [ DST ]





Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 14 posts ] 
Author Message
 Post subject: Universal game players limiter for Deer Hunter 2005?
PostPosted: 23 Aug 2010 15:17 

Joined: 23 Aug 2010 14:43
Posts: 12
First off, thanks for all the tools and documentation... Very helpful and certainly teaching me a few things left and right.

Anyways, I would like to use Universal game maximum players limiter 0.1 (playerslimitermax) to try and protect my Deer Hunter 2005 server from the 'basic' Fake Players DoS attacks that have been on the rise for the last couple of months...

I understand I should "dump the beginning (NOT the whole) of the join packet to filter in the packet.dat file" but I'm unsure on how to do that... let alone know "how much of its bytes are needed to dump." At this point I think I could just as well use the "dh2005.d8f" from your "latest dp8games package" found here, but even if I'm correct about that I still need to figure out how much of that 'header' needs to be dumped.


Top
 Profile  
 
 
 Post subject: Re: Universal game players limiter for Deer Hunter 2005?
PostPosted: 25 Aug 2010 18:57 

Joined: 24 Sep 2007 02:12
Posts: 1114
Location: http://sethioz.co.uk
i dont think it matters, you just dump some data, like 32 bytes and see if that does it, if not, dump more, like 64 bytes.


Top
 Profile  
 
 Post subject: Re: Universal game players limiter for Deer Hunter 2005?
PostPosted: 25 Aug 2010 21:50 

Joined: 23 Aug 2010 14:43
Posts: 12
Oki I tried that but the server closes right after it launches... No error in the log.

When I remove the "myproxocket.dll" from the game's executable directory the server remains up but off course unprotected.


Top
 Profile  
 
 Post subject: Re: Universal game players limiter for Deer Hunter 2005?
PostPosted: 27 Aug 2010 09:24 

Joined: 24 Sep 2007 02:12
Posts: 1114
Location: http://sethioz.co.uk
have you followed this step ?

Quote:
- copy the ws2_32.dll file of the proxocket package in the folder of
the game where you copied myproxocket.dll


if it does not work with ws2_32.dll, then you need wsock32.dll


- try not using "off course" it sounds very stupid, the word you tried to say is "ofcourse"


Top
 Profile  
 
 Post subject: Re: Universal game players limiter for Deer Hunter 2005?
PostPosted: 27 Aug 2010 11:27 

Joined: 23 Aug 2010 14:43
Posts: 12
With either setup (ws2_32.dll, myproxocket.dll and my packet.dat or wsock32.dll, myproxocket.dll and my packet.dat) the server will not remain up.

If I move myproxocket.dll out of the executable directory the server runs without problems.

So sadly, no go...

And ofcourse you are right, thanks for correcting me.


Top
 Profile  
 
 Post subject: Re: Universal game players limiter for Deer Hunter 2005?
PostPosted: 28 Aug 2010 19:29 

Joined: 24 Sep 2007 02:12
Posts: 1114
Location: http://sethioz.co.uk
forget the playerslimiter for a second and try proxocket alone. set it to so called "monitoring" mode (read the files included).
if it works fine, then the error is in the playerslimiter script or the .dat file. if it doesn't, then i think that server conflicts with proxocket and you need to wait for Luigi's help.


Top
 Profile  
 
 Post subject: Re: Universal game players limiter for Deer Hunter 2005?
PostPosted: 29 Aug 2010 14:20 

Joined: 23 Aug 2010 14:43
Posts: 12
Using Proxocket a .cap file is being generated with "wsock32.dll" in the executable directory.

Funny thing is that the .cap file is created in a directory which is one level deeper then the executable directory.


Top
 Profile  
 
 Post subject: Re: Universal game players limiter for Deer Hunter 2005?
PostPosted: 29 Aug 2010 20:05 

Joined: 24 Sep 2007 02:12
Posts: 1114
Location: http://sethioz.co.uk
umm thats weird that its generate one level deeper, what is the folder where it goes ?

lets say /gameserver/wsock32.dll is your server, then where is the .cap ?
is it like /gameserver/blah/.cap ?

never the less, it means that proxocket works, might be the .dat file. check the existing examples that Luigi have included there.
i just checked myself and it seems that it is enough to include only few bytes, just enought to reconize the packet.
there's about 4 - 12 bytes only, so try that.

and make sure it is called packet.dat

also post DH2005 join packet here (use code block). i want to see, how it looks like.


Top
 Profile  
 
 Post subject: Re: Universal game players limiter for Deer Hunter 2005?
PostPosted: 29 Aug 2010 20:54 

Joined: 23 Aug 2010 14:43
Posts: 12
Folderstructure:

.../Deer Hunter 2005/wsock.dll (directory containing executable: DH2005.exe)
.../Deer Hunter 2005/Game/proxocket_29.aug.2010_15.19.32.cap (directory containing the Game's ".spk" data-files)

Packet.dat:
Code:
Offset(h)  00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
00000000   7F 00 01 00 C1 00 00 00 02 00 00 00               ....??.......


Top
 Profile  
 
 Post subject: Re: Universal game players limiter for Deer Hunter 2005?
PostPosted: 31 Aug 2010 23:27 

Joined: 24 Sep 2007 02:12
Posts: 1114
Location: http://sethioz.co.uk
uhm, maybe you messed something up, i dont think that proxocket can do this, that it goes into other directory. makes no sense actually, because .exe loads .dll files only from the same level directories and/or from windows system folder by default.


are you 100% sure its the "join" packet ? looks like something else. what did you use to capture it ?

here's what you can do, use commview or any other packet editor/monitor that can make a .cap file. capture the whole join process (dont make chaos, make filters to get packets ONLY from game.exe and ONLY when connecting to server, not when getting the list of servers or when updating or when going to online mode..etc) and then zip/rar it and post it as attachment (if it doesnt work, send it to admin@sethioz.co.uk)
i will take a look at the whole communication.


Top
 Profile  
 
 Post subject: Re: Universal game players limiter for Deer Hunter 2005?
PostPosted: 02 Sep 2010 22:50 

Joined: 23 Aug 2010 14:43
Posts: 12
The file I used is "dh2005.d8f" from the latest (30 Aug 2005) dp8games package, found here. I took the first 16 bytes from that file to create my join packet.

I'll try Commview to create my own .cap-file as soon as I have the time to do so :)

Thanks for now!


Top
 Profile  
 
 Post subject: Re: Universal game players limiter for Deer Hunter 2005?
PostPosted: 03 Sep 2010 08:56 

Joined: 24 Sep 2007 02:12
Posts: 1114
Location: http://sethioz.co.uk
doh ofcourse it doesn't work, you have to capture the packet. how can you get a join packet out of file ? it doesnt exist in a file, it is created upon join and must be captured.


Top
 Profile  
 
 Post subject: Re: Universal game players limiter for Deer Hunter 2005?
PostPosted: 08 Sep 2010 10:42 

Joined: 24 Jun 2010 10:04
Posts: 70
Location: aluigi not @ home
dh2005 uses the DirectPlay protocol so it's possible that the playerlimiter project doesn't work correctly with it because the network operations are not implemented in the game itself.

at the moment I'm far from my PC so I can't confirm it


Top
 Profile  
 
 Post subject: Re: Universal game players limiter for Deer Hunter 2005?
PostPosted: 08 Sep 2010 15:09 

Joined: 19 May 2009 21:37
Posts: 36
tested and its not working with dh games....


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 14 posts ] 

All times are UTC [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron