Buckwild Posted November 16, 2014 Posted November 16, 2014 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.cThanks! =F|A=Buckwild Quote
Clan Friend SunLight Posted November 16, 2014 Clan Friend Posted November 16, 2014 I assume you need 32 bits, but here I can only compile 64... later maybe Quote
Buckwild Posted November 16, 2014 Author Posted November 16, 2014 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. Quote
Heretic121 Posted November 16, 2014 Posted November 16, 2014 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 Quote
Clan Friend SunLight Posted November 16, 2014 Clan Friend Posted November 16, 2014 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 Quote
Buckwild Posted November 16, 2014 Author Posted November 16, 2014 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! Quote
Doc Posted November 19, 2014 Posted November 19, 2014 Ok so what do you need an et silent server that you can try shit on? Quote
Buckwild Posted November 19, 2014 Author Posted November 19, 2014 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... Quote
Buckwild Posted February 9, 2015 Author Posted February 9, 2015 There's a hax that sends net packets to an Enemy Territory server and can fillall 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.luaHe added it to His etpro combinedfixes.lua used for competition:http://antman.info/wolf/etpro/download.php?luamodules/combinedfixes.luaBut old Jaymod doesn't have Lua support. After a Clan's Jaymod server was filled with fakeplayersconnecting...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/bashcd /home/etserver/etded.x86 // fs_homepathexport 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.exehttp://fearless-assassins.com/index.php?app=core&module=attach§ion=attach&attach_id=31847and a dat file also goes in same directory as ETDED.exe:Make a text file named: connect.txt with: ÿÿÿÿconnectThen change the file extension from .txt to .datThat's it, Tested...Works! Patch limits fakeplayers to 3 on Linux Jaymod ET servers.Other mods can use fakeplimit.lua. Quote
Buckwild Posted February 14, 2015 Author Posted February 14, 2015 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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.