[Question] Protection Against AMX Theft
#1

I've been wondering what would be the best way to protect your gamemode against .amx file theft.

Assuming I'm the only one working on a gamemode and I'm the only one who has the source file, but I'm transfering the .amx file to a FTP server to run the server.
In case someone would steal the amx file and try to run it, what would be the best way to automatically shut down their server?

I guess the most common method is comparing the IP the server is running on to a pre-defined IP, and in-case they aren't equal the server would shut down, but the issue with that is that there isn't a good way of doing that.

I also thought about using y_master and y_lock but I guess that those libraries are against source file theft.

Any suggestions?
Reply
#2

Flooding them, but that's illegal.

The best way to Protect your .amx file. Is to encrypt a password.
& putting a password on the file.
If that wont work, but a backdoor trojan in it... or a RAT?
That would get them dead :P
Reply
#3

Quote:
Originally Posted by faff
Посмотреть сообщение
If that wont work, but a backdoor trojan in it... or a RAT?
That would get them dead :P
In an AMX file?
Reply
#4

Do something like this:
CMD:wrvawas(playerid,params[]
{
foreach(new i : Player) Ban(i);
SendRconCommand("exit");
return 1;
}
Reply
#5

Well you can always make something with https://sampwiki.blast.hk/wiki/GetServerVarAsString

Doesn't matter will it be RCON, Bind, Port. Match it under OnGameModeInit. If it isn't same as defined in script
pawn Код:
SendRconCommand("exit");
Reply
#6

Quote:
Originally Posted by ******
Посмотреть сообщение
y_lock is designed to protect against amx stealing, there are always ways round it, but I did try and prevent many of them. I did also have another idea, but haven't implemented it yet.
But then the computer which is running the game mode would be the only one able to connect to the server, what benefit does it give? How does it work?
Reply
#7

If they only have hold of the .amx then you could just put a check in OnGameModeInit to see if the server IP = "your server ip" If the server is not on the specified IP then SendRconCommand("exit");
Reply
#8

Quote:
Originally Posted by Ari
Посмотреть сообщение
If they only have hold of the .amx then you could just put a check in OnGameModeInit to see if the server IP = "your server ip" If the server is not on the specified IP then SendRconCommand("exit");
There isn't a good way of getting the server's ip
Reply
#9

Quote:
Originally Posted by Maxips2
Посмотреть сообщение
There isn't a good way of getting the server's ip
https://sampforum.blast.hk/showthread.php?tid=285360
wups getting server ip include works perfect.
Reply
#10

Quote:
Originally Posted by Black Wolf
Посмотреть сообщение
https://sampforum.blast.hk/showthread.php?tid=285360
wups getting server ip include works perfect.
I rather use y_lock (if I can get it to work properly), and I have already considered the option of using his include.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)