Server/Gamemode protection -
ZmaXy - 10.10.2015
Are there any possibilities that can protect GM from copy from other scripters? Because my friend work on one project that will be something new in SAMP world, something doesn't seen so far. And he wouldn't want that somebody steals his ideas.
I actually think,maybe authorized rights or something else..
Edit: Explain better what I actually think: Maybe SA:MP team have something authorized rights system and who copy your unique system, he banned from "SAMP world" and his server go down. And to protect your rights(or system), you have to pay for it to SAMP team but a system that is copied must be completely identical.
Re: Server/Gamemode protection -
Alex1990 - 10.10.2015
This works well against DeAMX.
PHP код:
@___If_u_can_read_this_u_r_nerd(); // 10 different ways to crash DeAMX
@___If_u_can_read_this_u_r_nerd() // and also a nice tag for exported functions table in the AMX file
{ // by Daniel_Cortez, exclusively for pro-pawn.ru (who cares anyway? -_-)
#emit stack 0x7FFFFFFF // wtf (1) (stack over... overfuck!?)
#emit inc.s cellmax // wtf (2) (this one should probably make DeAMX allocate all available memory and lag forever)
static const ___[][] = {"pro-pawn", ".ru"}; // pretty old anti-deamx trick
#emit retn
#emit load.s.pri ___ // wtf (3) (opcode outside of function?)
#emit proc // wtf (4) (if DeAMX hasn't crashed already, it would think it is a new function)
#emit proc // wtf (5) (a function inside of another function!?)
#emit fill cellmax // wtf (6) (fill random memory block with 0xFFFFFFFF)
#emit proc
#emit stack 1 // wtf (7) (compiler usually allocates 4 bytes or 4*N for arrays of N elements)
#emit stor.alt ___ // wtf (8) (...)
#emit strb.i 2 // wtf (9)
#emit switch 4
#emit retn // wtf (10) (no "casetbl" opcodes before retn - invalid switch statement?)
L1:
#emit jump L1 // avoid compiler crash from "#emit switch"
#emit zero cellmin // wtf (11) (nonexistent address)
}
Author: Daniel_Cortez (http://*******/member.php?100-Daniel_Cortez)
Re: Server/Gamemode protection -
Potassium - 10.10.2015
Quote:
Originally Posted by Alex1990
This works well against DeAMX.
PHP код:
@___If_u_can_read_this_u_r_nerd(); // 10 different ways to crash DeAMX
@___If_u_can_read_this_u_r_nerd() // and also a nice tag for exported functions table in the AMX file
{ // by Daniel_Cortez, exclusively for pro-pawn.ru (who cares anyway? -_-)
#emit stack 0x7FFFFFFF // wtf (1) (stack over... overfuck!?)
#emit inc.s cellmax // wtf (2) (this one should probably make DeAMX allocate all available memory and lag forever)
static const ___[][] = {"pro-pawn", ".ru"}; // pretty old anti-deamx trick
#emit retn
#emit load.s.pri ___ // wtf (3) (opcode outside of function?)
#emit proc // wtf (4) (if DeAMX hasn't crashed already, it would think it is a new function)
#emit proc // wtf (5) (a function inside of another function!?)
#emit fill cellmax // wtf (6) (fill random memory block with 0xFFFFFFFF)
#emit proc
#emit stack 1 // wtf (7) (compiler usually allocates 4 bytes or 4*N for arrays of N elements)
#emit stor.alt ___ // wtf (8) (...)
#emit strb.i 2 // wtf (9)
#emit switch 4
#emit retn // wtf (10) (no "casetbl" opcodes before retn - invalid switch statement?)
L1:
#emit jump L1 // avoid compiler crash from "#emit switch"
#emit zero cellmin // wtf (11) (nonexistent address)
}
Author: Daniel_Cortez (http://*******/member.php?100-Daniel_Cortez)
|
He's talking about copyright etc, not physical protection against his script being stolen lol.
Re: Server/Gamemode protection -
ChromeAmazing - 11.10.2015
No such thing as protection. Go with a trusted host, never give someone your passwords or access to the script, and never hire developers off the street that you don't know.
Only way to protect your script from leakers.
Re: Server/Gamemode protection -
AleemIqbal1 - 11.10.2015
There is nothing that can stop a scripter to copy a server.I have myself copied many scripts :P
Re: Server/Gamemode protection -
Potassium - 11.10.2015
Quote:
Originally Posted by ChromeAmazing
No such thing as protection. Go with a trusted host, never give someone your passwords or access to the script, and never hire developers off the street that you don't know.
Only way to protect your script from leakers.
|
Is anyone even reading the thread before replying
Re: Server/Gamemode protection -
Morpheine - 11.10.2015
You can't.
Re: Server/Gamemode protection -
Logic_ - 11.10.2015
Well you cant but u can make protection in your gamemode that if someone steals it and uses/runs it, it will close the server
Re: Server/Gamemode protection -
AbyssMorgan - 11.10.2015
PHP код:
AntiDeAMX(){
new UAX[][] = { "Unarmed (Fist)", "Brass K" };
#pragma unused UAX
}
#define FILE_SERVERIP "127.0.0.1"
#define FILE_SERVERPORT (7777)
#define FILE_LICENSEID (20160201) //01.02.2016
public OnGameModeInit(){ //or OnFilterScriptInit
AntiDeAMX();
//IP and PORT check
new serverIP[16];
GetServerVarAsString("bind",serverIP, sizeof serverIP);
if(strcmp(serverIP,FILE_SERVERIP,false)!=0 || isnull(serverIP)){
if((strcmp(serverIP,"127.0.0.1",false)!=0) || (strcmp(serverIP,"localhost",false)!=0) || isnull(serverIP)){
//local allow ?
} else {
//stolen
SendRconCommand("exit");
}
} else if(GetServerVarAsInt("port") != FILE_SERVERPORT){
//stolen
SendRconCommand("exit");
}
//Date Check
new tmpdate, tmpyear, tmpmonth, tmpday;
getdate(tmpyear,tmpmonth,tmpday);
tmpdate = (10000*tmpyear)+(100*tmpmonth)+tmpday;
if(tmpdate > FILE_LICENSEID){
//license time out
SendRconCommand("exit");
}
return 1;
}
Re: Server/Gamemode protection -
ZmaXy - 11.10.2015
Quote:
Originally Posted by Potassium
He's talking about copyright etc, not physical protection against his script being stoled lol.
|
Quote:
Originally Posted by Potassium
Is anyone even reading the thread before replying
|
I give you reputation for this comment. (Y)
@AbyssMorgan
I know what you mean, but that isn't problem, read theard.
Explain better what I actually think: Maybe SA:MP team have something authorized rights system and who copy your unique system, he banned from "SAMP world" and his server go down. And to protect your rights(or system), you have to pay for it to SAMP team but a system that is copied must be completely identical.