|
|
Or, use your gamerDNA username: (more...)
| ||||||
| |
![]() |
| | LinkBack | Thread Tools | Rate Thread | Display Modes |
| | #16 (permalink) |
| upper management material Join Date: Nov 2002 Location: Orlando, FL
Posts: 2,197
+17 Internets | Thanks a lot Camerous. Unbelievably (or not) we've actually had cheaters on the GAR Official server. They seem to be doing some memory offset hacking to fire faster. I didn't really cheat proof it because I figured nobody would bother. ![]() |
| | |
| | #17 (permalink) | |
| Registered User Join Date: Oct 2004
Posts: 2,081
| Quote:
Code: public static void SendFireMessage(int selectedWeapon, int damage, float polarity)
{
for (int i = 0; i < 5; i++)
{
try
{
NetBuffer sendBuffer = new NetBuffer();
sendBuffer.WriteRangedInteger(0, 0x80, 3);
sendBuffer.WriteRangedInteger(0, 0x80, Globals.player.playerID);
sendBuffer.Write(Globals.player.position.X);
sendBuffer.Write(Globals.player.position.Z);
sendBuffer.Write(Globals.player.weaponArray[selectedWeapon].aimYaw);
sendBuffer.WriteRangedInteger(0, 4, selectedWeapon);
sendBuffer.WriteRangedInteger(0, 0x4000, damage*3);
sendBuffer.WriteRangedInteger(-1, 1, (int)polarity);
netClient.SendMessage(sendBuffer, NetChannel.Unreliable);
}
catch
{
MessageQueue.AddPriorityBigMessage("Failed to send fire message!");
}
}
} | |
| | |
| | #19 (permalink) |
| Registered User | Would love ability to move the camera angle =/
__________________ A Stupid Name - Winterhoof |
| | |
| | #21 (permalink) | |
| upper management material Join Date: Nov 2002 Location: Orlando, FL
Posts: 2,197
+17 Internets | Quote:
| |
| | |
| | #22 (permalink) |
| upper management material Join Date: Nov 2002 Location: Orlando, FL
Posts: 2,197
+17 Internets | Oh damn. Yeah just searched for C# decompiler and in 5 mins I was reading the executable with .net Reflector. Hmm so what do you use to either alter the executable or the memory? |
| | |
| | #23 (permalink) |
| Registered User Join Date: Oct 2004
Posts: 2,081
| There are tools out there to help obfuscate your code. Tutorial: Visual Studio 2008 Obfuscating with Dotfuscator - CodeCall Programming Forum should give you a good start |
| | |
| | #24 (permalink) |
| Conquest Join Date: Mar 2002 Location: Switzerland
Posts: 5,643
+25 Internets | Guru Hachima: super hero or villain, you, digital god?
__________________ -retrosabotage- |
| | |
| | #25 (permalink) |
| Registered User Join Date: Feb 2006
Posts: 1,971
| Relying on tools to obfuscate the code really isn't practical to stop anyone with any motivation at all. Even assuming nobody at all could decipher the IL and fiddle with the executable in a useful way (an impossible assumption) it's pretty simple work to watch Wireshark and figure out what's going on, and then fiddle with it in-memory to send the proper messages over. If you want even a little bit of security, you'll have to do stuff like weapon calculations on the server, but since you did this for your Ph.D., I presume you're well aware and decided not to go to the effort. As such, I suggest you don't even bother trying to obfuscate the code. The de facto tool for disassembly is OllyDbg, but I assume that whoever is working on your code is just using ildasm to decompile it and ilasm back into an executable. Last edited by Fog; 07-11-2009 at 10:23 PM.. |
| | |
| | #28 (permalink) |
| Registered User Join Date: Oct 2004
Posts: 2,081
| I don't know if he does or doesn't. I was just letting him know his options if he did, since he seemed to be unaware that you could look at the high level version of the source so easily. I guess is he did want the source to be available he could release the actual source w/ any comments for educational purposes, which would be pretty cool if he did. With the full source being available for this far into the project already it seems like a decent route. Give it some OS status and let people build upon it. |
| | |
| | #29 (permalink) |
| upper management material Join Date: Nov 2002 Location: Orlando, FL
Posts: 2,197
+17 Internets | I will obfuscate the code in the next version just so it is a bit harder to cheat. Although, I banned the accounts and IPs of the few people that were hacking, and haven't had any complaints since. I threw in server-side IP banning at the last minute before release. Glad I did. ![]() |
| | |
| | #30 (permalink) |
| Registered User Join Date: Feb 2006
Posts: 1,971
| There's a Metafilter thread here on the game (I didn't post it, just letting you know.) |
| | |
![]() |
|
| Thread Tools | |
| Display Modes | Rate This Thread |
| |