Jump to content

Recommended Posts

Posted

Can someone compile a .c file into a .so file for Me?

I'm trying to patch Enemy Territory server against exploit.

The instructions are: linux: gcc -o myproxocket.so myproxocket.c -shared -ldl

.c file: http://www.mediafire.com/download/h61d3092ossjcwf/myproxocket.c

Thanks! =F|A=Buckwild

Posted

Yes, ET server is using etded.x86.exe(ET2.60b).

 

Both 32 and 64 version of patch.so would be nice to have though.

 

Instructions also state: - everytime you want to load the plugin you must execute:
  export LD_PRELOAD=./myproxocket.so
 

Any idea how to do this?  My buddy has putty access and server root access.

Posted

That's literally the command, although just to be sure I would do:

export LD_PRELOAD=$LD_PRELOAD:./myproxocket.so

If any of what I said is wrong, Sun can correct me :D

  • Clan Friend
Posted

here is the 32bit version

lib.zip

 

put the .so where etded is then make a script, something like this

#!/bin/bash
cd /path/to/your/etded/

export LD_PRELOAD=$LD_PRELOAD:./myproxocket.so
./et300 $*

make it executable via chmod+x scriptname.sh

 

then you run scriptname.sh etded options

I don't know if your etded is called et300 (trackbase one) or etded.x86, instead of $* you can put the server options directly in the script.

 

maybe you could add 'unset LD_PRELOAD' after that, not sure if it's really necessary, btw you could have also done it like

LD_PRELOAD="$LD_PRELOAD:./myproxocket.so" ./etded.x86 parameters to etded

instead of export

 

I don't think you need 64 bit version since etded is 32bit

 

p.s.

note that some settings are inside the code, so if you wanted to change them you would have to recompile it, I didn't touch anything and I compiled the code you uploaded

Posted

OK! Thanks!  My friend installed games on server, He'll know what to do with the scripts.

Unfortunately, Owner won't permit Me to test against exploit patches.

The Windows version DLL works well to limit fake players from filling server.  I tested on My computer.

 

Oops! sorry, Server is using etded.x86.exe(ET2.60b).  The TrackBase Linux ET3.00 is named WolfDED.exe.

I was telling DareDevil that I tested and patched ET3.00 Windows version against a number of exploits.

I have no way of knowing for sure, but I don't think TB Paul's Linux ET3.00 is patched at all(Except for 2.60b fixes).

I found the .c file used to compile the Windows DLL patch. It has some settings like server IP that don't seem to need changing.

The reason I got started on this Is because another ET server was attacked with fake players, Denying anyone from connecting.

I hope I can make this fix available to Them, Maybe with server provider's assistance.

Thanks for all the help!

Posted

Ok so what do you need an et silent server that you can try shit on?

Posted

There's a Lua script that fixes the exploit for mods with Lua support.

 

Silent Linux ET server can be patched with Lua script.

 

Jaymod has no Lua support right now.

 

To test the fix, I would need a Linux Jaymod ET server.

 

And there's 3 different ways to activate the patch.

 

1 - a program called putty can send commands to server, I would need SSH access.

 

2 - A script could be added to server files,  the command could be added to server's startup line.

 

I have a friend, Furqan, That I could ask to make Jaymod server for me to test patch.

 

He could make the scripts and grant me access...If He's willing and is free...

  • 2 months later...
Posted

There's a hax that sends net packets to an Enemy Territory server and can fill

all available client slots(Denial of service attack).  

Most newer mods have Lua script support and some are already patched to limit fakeplayers(Nitmod).

There's a Lua script made by reyalp:  fakeplimit.lua that can limit fakeplayers.

http://antman.info/wolf/etpro/download.php?luamodules/fakeplimit.lua

He added it to His etpro combinedfixes.lua used for competition:

http://antman.info/wolf/etpro/download.php?luamodules/combinedfixes.lua

But old Jaymod doesn't have Lua support.  After a Clan's Jaymod server was filled with fakeplayers

connecting...I really searched for a patch that would stop this.

I found one and asked if someone could compile it for linux ET server.

Luckily, SunLight was able to compile it and give instructions for deploying.

This is not something that the average ET server renter can do.  The server provider would need to help.

A script must be added to the directory where ETDED.exe is: startjaymod.sh(or whatevername)

It starts the server and patch.
---------------------------------------------------------------------------------------------------------
#!/bin/bash
cd /home/etserver/etded.x86  // fs_homepath

export LD_PRELOAD=$LD_PRELOAD:./myproxocket.so

//Here: server startline > ./etded.x86 +exec server.cfg +sv_maxclients 24 +set fs_homepath /.....Bla Bla.

---------------------------------------------------------------------------------------------------------
Script must be made executable via chmod+x scriptname.sh
---------------------------------------------------------------------------------------------------------

The patch files: myproxocket.so and myproxocket.c go into same directory as ETDED.exe

http://fearless-assassins.com/index.php?app=core&module=attach&section=attach&attach_id=31847

and a dat file also goes in same directory as ETDED.exe:

Make a text file named: connect.txt with: ÿÿÿÿconnect

Then change the file extension from .txt to .dat

That's it, Tested...Works!  Patch limits fakeplayers to 3 on Linux Jaymod ET servers.

Other mods can use fakeplimit.lua.








 

Posted

Oh, the .c file is not needed as it's what was compiled.

 

SunLight compiled a myproxocket DLL to patch a Windows Jaymod server.

 

against fakeplayers too.  It needs proxocket DLL: ws2_32.dll with it to deploy patch on server.

 

Contact Me If anyone needs help patching Jaymod server.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.