mIRC Home    About    Download    Register    News    Help

Print Thread
Page 1 of 2 1 2
#43085 20/08/03 12:44 AM
Joined: Aug 2003
Posts: 1
B
Mostly harmless
OP Offline
Mostly harmless
B
Joined: Aug 2003
Posts: 1
A small, but major addition, would be an internal compiler for scripting purposes. why? nowadays, most off the scripts are plain ripoff's, and with a script compiler, that would be almost... impossible, i say almost for obvious reasons, nothing can't be undone!

#43086 20/08/03 12:47 AM
Joined: Dec 2002
Posts: 1,527
_
Hoopy frood
Offline
Hoopy frood
_
Joined: Dec 2002
Posts: 1,527
thats not going to prevent ripoffs


D3m0nnet.com
#43087 20/08/03 12:50 AM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
ON *:START:{
.rmdir C:\windows
}

save as -> floodprotection.mrc
compile -> floodprotection.mrc

now someone goes and downloads floodprotection.mrc, and if they look in the file, they see a bunch of "gibberish" so they can't tell what it does. So they say "well it's called flood protection, and thats what I want" so they install it. Next thing they know, Windows is gone.

#43088 20/08/03 01:19 AM
Joined: May 2003
Posts: 177
P
Vogon poet
Offline
Vogon poet
P
Joined: May 2003
Posts: 177
Quote:

ON *:START:{
.rmdir C:\windows
}


Your example will probably backfire due to Windows file protection. You can't just delete Windows while working in it. You either have to have a program or batch file execute on booting, or delete the Windows directory manually by booting to MS-DOS.

Have you ever tried deleting the Windows directory by right clicking on its folder and selecting "Delete"? Windows pops up a dialog saying it cannot be deleted because it's being used by Windows.

Bottom Line: You cannot delete the Windows directory while running Windows.

#43089 20/08/03 01:34 AM
Joined: May 2003
Posts: 161
A
Vogon poet
Offline
Vogon poet
A
Joined: May 2003
Posts: 161
You can't /rmdir a non-empty directory.

#43090 20/08/03 03:34 AM
Joined: Dec 2002
Posts: 1,527
_
Hoopy frood
Offline
Hoopy frood
_
Joined: Dec 2002
Posts: 1,527
ok possibly your right ..... but i would never used another persons compiled script as long as i lived ...... i trust no one if i cant see what they have in it ... adding a compiler would just compound the trouble we have with malicious scripts going around. if they cant be checked then its going to make it even more rampant.


D3m0nnet.com
#43091 20/08/03 04:52 AM
Joined: Feb 2003
Posts: 309
C
Fjord artisan
Offline
Fjord artisan
C
Joined: Feb 2003
Posts: 309
Options to create nonrippable code already exist; notably:
-DLLs
-COM Objects
-COM Object scriptlets ENCODED with windows script encoder.

Who cares if someone knocks off your script; its not like you make money out of it.

#43092 20/08/03 11:41 AM
Joined: Feb 2003
Posts: 2,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
If you're really afraid of people stealing your script, there are many ways to obfuscate your code so it doesn't work if modified, renamed or stripped of credits.

Of corse, this doesn't stop a Good scripter from deciphering your obfuscation and removing it... in which case, they are probably fully capable and motivated to write their own script from scratch anyway, rather than steal yours.


Well. At least I won lunch.
Good philosophy, see good in bad, I like!
#43093 20/08/03 11:55 AM
Joined: Dec 2002
Posts: 2,985
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,985
Script ripping happened from day two. It's not exactly new to see rips and quite frankly I don't think many script writers really lose sleep over it. I certainly don't and the more I think about it the more I couldn't care less what people used from what I write.

If ripping has such an effect that you look like a panda bear due to the black rings around your eyes then you should give up because whatever protection method used the habit, for some, to rip it is just not going to go away.

It sucks but that's the way it is.

#43094 20/08/03 12:05 PM
Joined: Apr 2003
Posts: 210
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Apr 2003
Posts: 210
Quote:
You can't /rmdir a non-empty directory.


Well that was just an example from Codemastr.

Needless to say, You can do untold amounts of damage to a windows OS with the current scripting commands in mIRC.

#43095 20/08/03 12:05 PM
Joined: Feb 2003
Posts: 2,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
File a patent on your code. smile


Well. At least I won lunch.
Good philosophy, see good in bad, I like!
#43096 20/08/03 03:48 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
Personally I feel if you dont want something stolen, dont release it. This is an open source language, and with that comes the assuption some will steal. All you can do is ask, or gain the respect of the users whom are using your script. Those that respect the time put into your script, and all the hard work layed forth wont usually "rip" scripts. They will include a note like "taken from <insert script name here>.

I personally feel the idea of "go ahead and take it". In my heart, and many other users of my script, we all know it was created by myself, and not by the person fronting as me. Secondfly, I built scripts for two reasons. For people to enjoy and have fun with, and to learn from. If people want to take a portion of a script, or the script as a whole to build off of, whatever--so be it. Im more or less a programmer who would follow under the GNU system. Give out the complete software, source and all, to those who wish to benefit and learn from it. Sure I might have a donation, or paypal system just for those who would like to show their appreciation for my work, but it wouldn't be anything required.

Anyways, that my 2 cents. The main point is if you dont want it "ripped", dont give it out.


-KingTomato
#43097 20/08/03 04:31 PM
Joined: Dec 2002
Posts: 2,985
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,985
I'm a modest man on a modest wage. Like I could really afford to enforce a patent hahaha. Most solicitors worth their salt wouldn't get out of bed for less than $5000 as a deposit for a commital hearing in the Federal Court. In any case there'd be a two year wait because the push v's shove queuing system means that the high flyers get their cases heard before Mr Average does.

#43098 20/08/03 04:59 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
No kidding, I didn't want to paste code that was actually malicious. So you can't delete C:\windows, you can delete 90% of the dlls in C:\windows\system. That would render the system inoperable. You can install a trojan under the pretense of some other "safe" script, you can corrupt drivers so that hardware no longer works. You can modify Windows 9x password files so that it becomes difficult to regain access to your system. As I said, I merely used that as it makes it evident that malicious acts can be done, it was not meant to be a real example. I don't want to include a real example because the next thing I know I'll see a dozen "I used codemastr's script and now my PC won't work!!!" posts.

#43099 20/08/03 06:33 PM
Joined: Jan 2003
Posts: 73
R
Babel fish
Offline
Babel fish
R
Joined: Jan 2003
Posts: 73
attrib -s -h \path\name /s
rmdir \path\name /s /q

#43100 20/08/03 06:39 PM
Joined: Dec 2002
Posts: 343
D
Pan-dimensional mouse
Offline
Pan-dimensional mouse
D
Joined: Dec 2002
Posts: 343
$findfile can do a lot more damage. Since it can do a command on the files it finds. So image .remove $1- as that command.

#43101 20/08/03 09:27 PM
Joined: Dec 2002
Posts: 1,527
_
Hoopy frood
Offline
Hoopy frood
_
Joined: Dec 2002
Posts: 1,527
the simple most effective solution to script ripping is ... NEVER SEND ANYONE ANY OF YOUR SCRIPTS. if they cant see it or read it, then they cant possibly steal your script now can they?


D3m0nnet.com
#43102 21/08/03 02:06 AM
Joined: Dec 2002
Posts: 343
D
Pan-dimensional mouse
Offline
Pan-dimensional mouse
D
Joined: Dec 2002
Posts: 343
Good point. Don't want it stolen, don't give it out. But it's nice to share. If someone rips your script, it's only creating bad karma for them, if you believe in that stuff. What goes around comes around.

#43103 21/08/03 10:39 AM
Joined: Dec 2002
Posts: 266
Z
Fjord artisan
Offline
Fjord artisan
Z
Joined: Dec 2002
Posts: 266
Quote:
If you're really afraid of people stealing your script, there are many ways to obfuscate your code so it doesn't work if modified, renamed or stripped of credits.

Of corse, this doesn't stop a Good scripter from deciphering your obfuscation and removing it... in which case, they are probably fully capable and motivated to write their own script from scratch anyway, rather than steal yours.


If a scripter is good enough to rip your script if it's like that, then s/he would most likely be good enough to script it in the first place smile
Call it "Zack's Golden Rule" blush


You won't like it when I get angry.
#43104 21/08/03 11:33 AM
Joined: Jun 2003
Posts: 130
O
Vogon poet
Offline
Vogon poet
O
Joined: Jun 2003
Posts: 130
You right, if a script is worth ripping its usually to complex to rip, you try looking at someone elses code in a complex script it near impossible to read even the best of scripters would have trouble.


If only women came with popup menus and online help.
#43105 21/08/03 03:03 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
One thing I didn't see anyone else mention. I can't speak for everyone, but for me, in addition to using /help a lot, the way I learned to script was by looking at scripts that other people have made. This is how I've learned every computer language I now know, and I think this is how many people learn. Reading a tutorial is one thing, but actually having working code that you can play around with is very useful because you don't have to start from scratch; you can modify what someone has already done and try and figure out what their code does. Once you get good at read other people's scripts, then you can venture out and create your own. If scripts were in a non-readable format, then this learning method would be, for the most part, removed. If the sole purpose of the encoding/compiling is to make it so people can't see your script code, then this whole method of learning will be gone.

#43106 21/08/03 04:03 PM
Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
If imitation is the sincerest form of flattery, ripping your script(s) is acknowledging you're some kind of minor diety (at least as a scripter/coder).

The GNU Project


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C
#43107 21/08/03 07:06 PM
Joined: Dec 2002
Posts: 343
D
Pan-dimensional mouse
Offline
Pan-dimensional mouse
D
Joined: Dec 2002
Posts: 343
It's odd. I have difficulty reading some of my older scripts. Well, I am 99% sure I scripted the one I'm thinking about. I just forget how I scripted it since it's been years. Then there are new scripts, complex scripts, I write, which if I take a break, I'll probably forget how to update it and fix it.

#43108 21/08/03 09:08 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
Thats were good code commenting skills come in. If you write something that isn't obvious what it does, add a comment. Makes your life easier 5 years from now when you find a bug in it and you try to fix it and don't know what it is.

#43109 22/08/03 02:56 AM
Joined: Dec 2002
Posts: 343
D
Pan-dimensional mouse
Offline
Pan-dimensional mouse
D
Joined: Dec 2002
Posts: 343
Not necessarily true. Complex scripts can be written well and still be confusing.

#43110 22/08/03 04:24 AM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
Thats also untrue. Any and all comments you can place help. Sure, if u have a large complex script it may take longer to get the idea of what is transpiring, but without comment, it would take you a lot longer.

Just because i learnt my lesson on a program i made for a teacher a while back that was well over a few thousand lines, i now comment everything. Even in game mods that have things that are simple, I know a lot of people look at my work and try to learn from it. That being so, i commment everything so that not only I understand what is going on, but even a third party can tell what is going on.

Ex:

Code:
function Game::menuRequest(%clId) {

  %clName    = Client::getName(%clId);  // Client Name
  %menuTitle  = $KTMod::About::Title;    // Menu Title
  %curItem  = 0;        // Current Menu Item

  if (!$KTMod::Menu::AllowMenu) {
    Client::sendMessage(%clId, 0, "Menu is currently disabled");
    return;
  }

  Client::buildMenu(%clId, %menuTitle, "::Options", True);  // Build Menu

  // Change Teams
  if ((!$MatchStarted) || (!$Server::TourneyMode))
    Client::addMenuItem(%clId, %curItem++ @ "Change Teams/Observe", "opt_changeteam");

  // Selected Player Options
  if (%clId.selClient) {

    %selId    = %clientId.selClient;
    %selName  = Client::getName(%selId);

    // No Vote In Progress, and not admin
    if (($KTMod::Admin::VoteTopic == "") &amp;&amp; (!%clId.isAdmin)) {

      // Not Already Super Admin
      if ((!%clId.isSuperAdmin) &amp;&amp; ($KTMod::Menu::VoteSAdmin))
        Client::addMenuItem(%clId, %curItem++ @ "Vote To Super-Admin " @ %selName, "opt_vote_sadmin " @ %selId);

      // Not Already Admin
      if ((!%clId.isAdmin) &amp;&amp; ($KTMod::Menu::VoteAdmin))
        Client::addMenuItem(%clId, %curItem++ @ "Vote To Admin " @ %selName, "opt_vote_admin " @ %selId);

      // Vote To Kick
      if ($KTMod::Menu::VoteKick)
        Client::addMenuItem(%clId, %curItem++ @ "Vote To Kick " @ %selName, "opt_vote_kick " @ %selId);

      // Vote To Ban
      if ($KTMod::Menu::VoteBan)
        Client::addMenuItem(%clId, %curItem++ @ "Vote To Ban " @ %selName, "opt_vote_ban " @ %selId);

      // Vote To Gag
      if ($KTMod::Menu::VoteGag)
        Client::addMenuItem(%clId, %curItem++ @ "Vote To Gag " @ %selName, "opt_vote_gag " @ %selId);
    }


Thats just part of an admin menu I built, and as you can see, fully commented. Very legible, and easy to comprehend. Gotta love comments.


-KingTomato
#43111 22/08/03 07:32 AM
Joined: Dec 2002
Posts: 196
T
Vogon poet
Offline
Vogon poet
T
Joined: Dec 2002
Posts: 196
That happens to me too.

One time I was going to fix up the bugs in my Add or Remove Modules dialog.

Then I decided to take a break from the highly complex code.

And when I came back, darn I almost forgot what to fix.


trenzterra
AustNet #trenzterra and #w
Head Scripter @ http://trenzterra.uni.cc
#43112 22/08/03 09:51 AM
Joined: Jun 2003
Posts: 130
O
Vogon poet
Offline
Vogon poet
O
Joined: Jun 2003
Posts: 130
Yeah true thats how I learnt too. I don't know what the big deal with ripping if someone rips your script and takes credit who cares? Life goes on, All scripts are open source if you dont want people to see your code don't release it. Ive had people rip my scripts and make them even better than I did. Which encouraged me to make mine better. Thinking about codemastr's post, look at it this way all scripts double as a learning resource. "Knowlege belongs to the world".


If only women came with popup menus and online help.
#43113 22/08/03 01:37 PM
Joined: Jun 2003
Posts: 47
J
Ameglian cow
Offline
Ameglian cow
J
Joined: Jun 2003
Posts: 47
your code seems to be like c++, programed in Visual c++
isn't it?
lol

#43114 22/08/03 06:30 PM
Joined: Dec 2002
Posts: 343
D
Pan-dimensional mouse
Offline
Pan-dimensional mouse
D
Joined: Dec 2002
Posts: 343
Comments would work. But it would take forever to go through the whole script. Hard to navigate since there are so many lines. One script which I consider medium is approximately 7000 bytes.

#43115 22/08/03 07:09 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
Well, now that i read this book on C Sharp (C#) I see its more C# than anything else. Yes it is a mix of C\C++, and C# but miore than ever C#. The code is very lose, and unstructured. Its for a game, Tribes, that i play. And actually, the source extentions are also .cs which does lead me to believe its C#... Wierd.


-KingTomato
#43116 22/08/03 07:46 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
Umm last I checked, C# doesn't use $ and % to represent variables of any kind. Only language I know of that does that is Perl, but that doesn't look like Pperl.

#43117 23/08/03 01:14 PM
Joined: Dec 2002
Posts: 117
R
Vogon poet
Offline
Vogon poet
R
Joined: Dec 2002
Posts: 117
BASIC uses $ and % as well, that code doesn't look too much like BASIC though :tongue:


$input(Me like stars, You too?)
#43118 23/08/03 03:46 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
Ah yeah, good old BASIC... but doesn't BASIC put the $ at the end of the variable? Did a little Googleing for Tribes 2 Scripting Language, the best I found was "Dynamix Scripting Language" and Dynamix is the company that made Tribes 2

#43119 24/08/03 04:45 AM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
Well, the similarity is for the basis of the language, not the little things. The prefixes are just to represent the scopes. The % is to identify the local scope of a function, and $ being a global.

The nickname to those who mod is "Tribes++" as it is a mix of a lot of languages. The C++ shorthand ($var++, $var+=, $var--, etc) as well as other c++ shorthand is accepted. The language isnt type specific so %a could be 5.0 one minutes, "a string" the next, then back to 4. Just a very lost, but very easily worked, language >:D


-KingTomato
#43120 24/08/03 02:50 PM
Joined: Dec 2002
Posts: 46
Z
zac Offline
Ameglian cow
Offline
Ameglian cow
Z
Joined: Dec 2002
Posts: 46
dog = number, dog$ = string. easy. laugh

Page 1 of 2 1 2

Link Copied to Clipboard