Protecting the Plugin Author Name
Hi,
this is a question for advanced programmers, this is actually meant for a RTCW(Return to Castle Wolfenstein) mod, there are many people that use a Hex progam to change the mod's name into theirs(Also called Modstealing). So i made a Proof Of Concept of how to protect a name(string)... Code:
#include <amxmodx> |
Re: Protecting the Plugin Author Name
Code:
char alfabet[] = { 'a', 'b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};Every name has it's own number, for example amxx has the number '23' (a = 0, + a = 0 + x=23) //new alfabet[][] = { "a","b","c","d","e","f","g","h","i","j","k"," l","m","n","o","p","q","r","s","t","u","v","w ","x","y","z"} // 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 In this case the 'name number' is 86. So if the 'name number' is correct, there's a second check to match the length of the name. This is C++, and not small, but you can easily port it if you need it... I hope someone find it useful. |
Re: Protecting the Plugin Author Name
This 'protection' can be easily circumvented, you only have to change one integer.
Also, your code has one unneeded for() loop. (the second one) |
Re: Protecting the Plugin Author Name
I don't think that that integer is shown in a game dll, and why is the second loop unneeded? i need to check every character with the alfabet.
|
Re: Protecting the Plugin Author Name
Quote:
Quote:
|
Re: Protecting the Plugin Author Name
Have you ever coded for q3 games?
You will see when the game is compiled in either a .dll or .qvm, there isn't much left to decompile, only the most important strings and variables. Also how do you know the num is 86 ?(if you haven't viewed the source) |
Re: Protecting the Plugin Author Name
Why not use md5 or an random integer.
Code:
md5 - Calculates the md5 keysum of a string.Quote:
|
Re: Protecting the Plugin Author Name
There is no way you can disamble the gamedll of a q3 game in a proper way.
|
Re: Protecting the Plugin Author Name
Best is using md5,or did you know that this "755d08eef0a2c557877828998eda3d75" is your name?
Quote:
|
Re: Protecting the Plugin Author Name
well you're right, but would someone take that much effort to rename a mod ?
|
| All times are GMT -4. The time now is 00:43. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.