Fixing Tribes/ Master server

Announcements, Important Things and other Cool Stuff

Moderator: Moderators

Post Reply
User avatar
Plasmatic
Lead Developer
Lead Developer
Posts: 8376
Joined: Mon Apr 29, 2002 11:00 pm
Location: 4th State of matter.
Contact:

Fixing Tribes/ Master server

Post by Plasmatic » Wed Feb 11, 2009 5:41 am

I've developed a simple fix for the hacks that have been happening with Tribes lately.
You can add this to your Tribes in 5 easy steps.
This is also a simple and painless way to add the community Master servers.

Click on the boogie man to learn more. Image

-Plasmatic
Image

User avatar
Plasmatic
Lead Developer
Lead Developer
Posts: 8376
Joined: Mon Apr 29, 2002 11:00 pm
Location: 4th State of matter.
Contact:

Re: Fixing Tribes

Post by Plasmatic » Wed Feb 11, 2009 5:45 am

1. Hit the 'select all' link in the code box below.

Code: Select all

%t=newObject(x,FearGuiFormattedText);if($badwords != "")addExportText("$badwords = \""@$badwords@"\";");addExportText("File::delete(\"config\\GameServerList.cs\");deleteObject(nameToID(\"x\"));");exportObjectToScript(x,"config\\badwords.cs");deleteObject(%t);$Server::CurrentMaster = "0";$Server::MasterAddressN0 = "t1m1.tribes0.com:28000 t1m1.masters.tribesmasterserver.com:28000 t1m1.pu.net:28000 skbmaster.ath.cx:28000 kigen.ath.cx:28000 t1m1.masters.dynamix.com:28000";

2. Hold the Ctrl button and tap the C button to copy the code into your clipboard.

3. Start Tribes, and hit the ` key to open the console. The key is right below the Esc key in the upper left of your keyboard. It should look like this.
Image

4.Hold the Ctrl key and tap V to paste the code into Tribes. Hit Enter.
Image

5. Hit the Quit button in the upper right of Tribes and you're done.

This will add code to your Tribes that will delete the gameserverlist.cs file before it is executed, and prevent a malicious server host from hacking your Tribes. This will also add all 5 community Tribes master servers, along with the official master that has been off line for some time now.

User avatar
Plasmatic
Lead Developer
Lead Developer
Posts: 8376
Joined: Mon Apr 29, 2002 11:00 pm
Location: 4th State of matter.
Contact:

Re: Fixing Tribes

Post by Plasmatic » Wed Feb 11, 2009 6:39 am

How this works - I'll break the code down into parts.

Code: Select all

%t=newObject(x,FearGuiFormattedText);
Creates a new text buffer in Tribes that we can add text to.

Code: Select all

if($badwords != "")
Checks to see if the file we plan on writing to has anything in it.

Code: Select all

addExportText("$badwords = \""@$badwords@"\";");
If it does, this line makes sure it is re written to that file.

Code: Select all

addExportText("File::delete(\"config\\GameServerList.cs\");deleteObject(nameToID(\"x\"));");
Adds 2 statements to the text

Code: Select all

exportObjectToScript(x,"config\\badwords.cs");
Exports the code to badwords.cs

Code: Select all

deleteObject(%t);
Deletes the text buffer.

Code: Select all

$Server::CurrentMaster = "0";$Server::MasterAddressN0 = "t1m1.tribes0.com:28000 t1m1.masters.tribesmasterserver.com:28000 t1m1.pu.net:28000 skbmaster.ath.cx:28000 kigen.ath.cx:28000 t1m1.masters.dynamix.com:28000";
Sets master server variables that will be saved on Tribes close.

The resulting code exported to badwords.cs looks like this.

Code: Select all

//--- export object begin ---//
instant FearGuiFormattedText "x";
//--- export object end ---//
File::delete("config\GameServerList.cs");deleteObject(nameToID("x"));


Code: Select all

File::delete("config\GameServerList.cs");
deletes the gameserverlist.cs file and

Code: Select all

deleteObject(nameToID("x"));
cleans up Tribes memory when this is all done.

This process is much like how Tribes creates and saves maps.
If you would like to know more about how Tribes works, take a look at the Information desk.

Threatcon
Ensign
Ensign
Posts: 79
Joined: Wed Feb 11, 2004 9:07 am
Location: Florida
Contact:

Re: Fixing Tribes

Post by Threatcon » Wed Feb 11, 2009 8:13 am

Thanks Plas.

Here is NoFiXette's solution as well. Just tossing it in this post so it's easier to find. :wink:
NoFiXette wrote:...
This thread is the reason why masters are being updated, and client's are being patched.
http://nofix.annihilation.info/DoSFix.v13.rar


edit- updated version -Plasmatic

User avatar
Anubis
=A cantora floribella=
Posts: 6896
Joined: Wed Nov 30, 2005 3:02 pm
Location: Portugal
Contact:

Re: Fixing Tribes

Post by Anubis » Thu Feb 12, 2009 6:40 am

nice. now how do we break that? :D j/k. thats nofix's job now gl

<3

PePpEr
Spambot in training
Spambot in training
Posts: 14
Joined: Sat Feb 26, 2005 11:29 pm
Location: Canadian Girls ROCK!
Contact:

Re: Fixing Tribes

Post by PePpEr » Fri Feb 13, 2009 2:17 am

Thanks Plas :D

Post Reply