mIRC Home    About    Download    Register    News    Help

Print Thread
How to protect scripts? #109284 27/01/05 12:57 PM
Joined: May 2004
Posts: 17
S
shadowen Offline OP
Pikka bird
OP Offline
Pikka bird
S
Joined: May 2004
Posts: 17
Hi all, I have a problem. I have written a script for mirc, but I don't want to allow users to see the code. The file is a txt file loaded in the remote. There's a way to hide the souce code or to put it into dll?
Any other solution is good if the code is not accessible


Thanks

Re: How to protect scripts? #109285 27/01/05 12:59 PM
Joined: Dec 2002
Posts: 15
I
idk Offline
Pikka bird
Offline
Pikka bird
I
Joined: Dec 2002
Posts: 15
I dont think/know of any way to prevent users from seeing the code. Im almost pretty sure there isnt a way, but i could be wrong.

There used to be a dll to lock the remote editor, forgot the name of it, but the users could still open the actual text files and read the code.

Last edited by idk; 27/01/05 01:08 PM.
Re: How to protect scripts? #109286 27/01/05 01:18 PM
Joined: Mar 2004
Posts: 175
Relinsquish Offline
Vogon poet
Offline
Vogon poet
Joined: Mar 2004
Posts: 175
There is no point in hiding your script. Scripts will always be open source. Users can simply look in the mIRC directory to find your .txt file. It is not that hard.


- Relinsquish
Re: How to protect scripts? #109287 27/01/05 01:42 PM
Joined: Oct 2003
Posts: 96
J
JoeDaddy Offline
Babel fish
Offline
Babel fish
J
Joined: Oct 2003
Posts: 96
Quote:
I don't want to allow users to see the code


Well there is one sure way to do that with the code below.

Code:
if (($me writes mirc script) && ($me !want others to see code)) { keep it to myself }

Re: How to protect scripts? #109288 27/01/05 01:56 PM
Joined: May 2004
Posts: 132
N
NoPleX Offline
Vogon poet
Offline
Vogon poet
N
Joined: May 2004
Posts: 132
HAHA Nice one wink


if ($me != geek) { $life is $false }
else { $life is $true }
NoPleX
Re: How to protect scripts? #109289 27/01/05 06:10 PM
Joined: May 2004
Posts: 17
S
shadowen Offline OP
Pikka bird
OP Offline
Pikka bird
S
Joined: May 2004
Posts: 17
Instead I am pretty sure that is possible. I have seen a script turned in a binary files then loaded into mirc. I just don't know how to make like that. mad

Re: How to protect scripts? #109290 27/01/05 07:25 PM
Joined: Feb 2004
Posts: 2,019
FiberOPtics Offline
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
Surely you can appreciate the irony?

You want us to share with you how to do something, though you don't want to share your script with others, who might want to learn something from you.

mIRC scripts are open source, and I'm very glad it's like that. One of the best ways to learn to script is by looking at good examples. I'm pretty sure you've also looked at some code here and there, as everyone does. Wanting to hide your code from others is extremely selfish, and ungrateful.

Besides, what makes you so sure people are going to want to "rip" your code? Do you really consider yourself as an extraordinary scripter, who uses scripting concepts that are unknown to the scripting community, introducing innovative techniques that would revolutionize the way we script, if they are revealed?

Chances are anything you've made has been done thousands of times before, and will continue to be redone thousands of times in the future.

To conclude, if you don't want people to see your code, then don't release your script. It's as simple as that.


Gone.
Re: How to protect scripts? #109291 27/01/05 09:29 PM
Joined: Sep 2003
Posts: 4,230
D
DaveC Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
I have a script that well do it, But i dont want to share it with you. smile


PS : this was sarcasim, so dont ask for the script.

Re: How to protect scripts? #109292 27/01/05 11:15 PM
Joined: May 2004
Posts: 17
S
shadowen Offline OP
Pikka bird
OP Offline
Pikka bird
S
Joined: May 2004
Posts: 17
Since people already do that with me, why I can't give the same back?

Re: How to protect scripts? #109293 28/01/05 12:09 AM
Joined: Sep 2003
Posts: 4,230
D
DaveC Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
poeple dont do it to u, I have never heard or seen any system where mirc script can be encoded or hidden, in anyway that cant be simply and quickly reveresed. Your placing it in a binary file, sounds like your talking DLL's which are not scripts. And also cause pople to not want them since there essentially EXE's and people dont know what they migth do.

Re: How to protect scripts? #109294 28/01/05 12:11 AM
Joined: Dec 2003
Posts: 261
M
milosh Offline
Fjord artisan
Offline
Fjord artisan
M
Joined: Dec 2003
Posts: 261
Hi. In that script that you saw they didn't use binary, they just changed font to some "non readable" font type, and then you think that it is binary... I am very sure about that grin


velicha dusha moja Gospoda
Re: How to protect scripts? #109295 28/01/05 07:12 PM
Joined: Apr 2003
Posts: 701
K
Kelder Offline
Hoopy frood
Offline
Hoopy frood
K
Joined: Apr 2003
Posts: 701
I've noticed that some people use $decode to scramble their scripts... needless to say, all those scripts were spammed around and did things people who run them do not want to happen. You've probably seen them, hopefully not executed them.

The advice for mIRC (and a lot of other) scripts: if you cannot read and check the script, you most likely shouldn't run it...

Re: How to protect scripts? #109296 29/01/05 01:09 PM
Joined: Dec 2004
Posts: 40
B
bog__ Offline
Ameglian cow
Offline
Ameglian cow
B
Joined: Dec 2004
Posts: 40
Well what if this is the case, i made some script and all the users in that room can play together if they have it, but someone from the room edit the script that i made, and he is cheating in the game, is there a way to protect the script from editing it?

Re: How to protect scripts? #109297 29/01/05 01:25 PM
Joined: Feb 2004
Posts: 2,019
FiberOPtics Offline
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
Well,

have you told him he should stop cheating or there will be repercussions? If he keeps cheating just ban him, and the problem is solved.

When people used to try to cheat in my Rpg bot, I'd just take away their scores. That pretty much stopped them from cheating alltogether :tongue:

Greets


Gone.
Re: How to protect scripts? #109298 29/01/05 08:24 PM
Joined: Sep 2003
Posts: 4,230
D
DaveC Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
I would suggest you rewrite the script, so it relies on a client server basis to run.

How is he cheating?