RASH.ash
http://www.paragon.net84.net/Kol
What is it?
Rash is a script that enables ash scripts hosted on a remote repository to be run locally.
Why would I use it?
When scripts are updated on the rash repository, the newer version will be detected and can be used automatically on the local machine. Also, the original script doesn't need to be on your local machine. Personally, I use kol on multiple computers, my desktop and my laptop, keeping track of what version I have on which machine can become annoying, using rash I can know that the same version of the script will be run no matter which Mafia directory on which machine I run it from!
Is it safe?
Safety is subjective... however there are a number of precautions taken that in my opinion make rash safe to use.
First, users must register to upload files (you do not need to register to use any scripts) to the rash repository, those users can then be verified. A user is verified, by contacting me on this forum. Once a user is verified it is safe to assume that the person representing a username on the rash repository is the same person representing the same username here on these forums. You should not run scripts posted by unverified users unless you view the source each and every update. Also note, that being verified does not guarantee the uploader is not malicious, you should only trust the verified user as much as you trust the same user from this forum.
Second, whenever a new version of a script is detected rash gives you the option of viewing the source before caching and using the source. The source is displayed in a reasonably formatted way such that reviewing the source should not be too difficult. The source that is shown is the source that is stored in your local cache and you can be sure that the source that you reviewed and accepted is the source being run until a new version is detected, in which case you again have the option of reviewing the source. You can also decline an update and continue to use the older source.
Third, sources imported into a script are kept individually, therefore if a library that a script depends upon is updated you will be notified, and allowed to view the source of the new version of the library.
Fourth, only the user that uploads a script are given permission to update that script. If a verified user has uploaded the script, you know that same user is the only user applying new versions.
Finally, by default the script will not run source that has just been updated, you will have the option to review the source, via the view command and rash will only run cached source.
How do I use it?
Once you download rash into your script directory you can type rash <command> into the CLI.
Commands:
List [+verified] [filter]:> List all scripts on the rash repository, using the +verified flag shows only scripts uploaded by verified users, supplying a filter will filter by uploaded name and script name
View scriptname :> views the cached version of the script
The list displayed contains the script name, the name of the user that uploaded the file, an icon to indicate if the user is verified, the date the script was last updated and the comments left by the script uploader the last time the uploader updated the script. Clicking on the name of the script follows the link to the human readable, current source of the script.
rash scriptname [Script parameters] :> Calls the script the same as if you had the script locally and had used the call command.
As a script writer, what do I have to do to make my script compatible?
There are only 2 things to consider when deciding if your script is rashable.
First, a rash script *can* be run without a main function... but it causes a pop up to appear so It is highly recommended that you use a main function.
Second you cannot denote comments with a # character. (This may be fixed with future .php scripts, but currently it is a minor inconvenience with a trivial work around
Beyond those two issues, just register, upload and run.
Change log:
1.01 fix issue with a greedy vs. lazy regex that caused some scripts to work incorrectly
1.01 fixes to correct an issue with the rash cache.
1.02 Add RASH_Run_New_Source property default to false
1.02 Add View command to view cached source
1.02 Add capability to view the php source for viewSrc.php, upload.php and uploader.php
1.02 Add ability to filter list
1.03 Correctly handle notification commands, including setting script name.
http://www.paragon.net84.net/Kol
What is it?
Rash is a script that enables ash scripts hosted on a remote repository to be run locally.
Why would I use it?
When scripts are updated on the rash repository, the newer version will be detected and can be used automatically on the local machine. Also, the original script doesn't need to be on your local machine. Personally, I use kol on multiple computers, my desktop and my laptop, keeping track of what version I have on which machine can become annoying, using rash I can know that the same version of the script will be run no matter which Mafia directory on which machine I run it from!
Is it safe?
Safety is subjective... however there are a number of precautions taken that in my opinion make rash safe to use.
First, users must register to upload files (you do not need to register to use any scripts) to the rash repository, those users can then be verified. A user is verified, by contacting me on this forum. Once a user is verified it is safe to assume that the person representing a username on the rash repository is the same person representing the same username here on these forums. You should not run scripts posted by unverified users unless you view the source each and every update. Also note, that being verified does not guarantee the uploader is not malicious, you should only trust the verified user as much as you trust the same user from this forum.
Second, whenever a new version of a script is detected rash gives you the option of viewing the source before caching and using the source. The source is displayed in a reasonably formatted way such that reviewing the source should not be too difficult. The source that is shown is the source that is stored in your local cache and you can be sure that the source that you reviewed and accepted is the source being run until a new version is detected, in which case you again have the option of reviewing the source. You can also decline an update and continue to use the older source.
Third, sources imported into a script are kept individually, therefore if a library that a script depends upon is updated you will be notified, and allowed to view the source of the new version of the library.
Fourth, only the user that uploads a script are given permission to update that script. If a verified user has uploaded the script, you know that same user is the only user applying new versions.
Finally, by default the script will not run source that has just been updated, you will have the option to review the source, via the view command and rash will only run cached source.
How do I use it?
Once you download rash into your script directory you can type rash <command> into the CLI.
Commands:
List [+verified] [filter]:> List all scripts on the rash repository, using the +verified flag shows only scripts uploaded by verified users, supplying a filter will filter by uploaded name and script name
View scriptname :> views the cached version of the script
The list displayed contains the script name, the name of the user that uploaded the file, an icon to indicate if the user is verified, the date the script was last updated and the comments left by the script uploader the last time the uploader updated the script. Clicking on the name of the script follows the link to the human readable, current source of the script.
rash scriptname [Script parameters] :> Calls the script the same as if you had the script locally and had used the call command.
As a script writer, what do I have to do to make my script compatible?
There are only 2 things to consider when deciding if your script is rashable.
First, a rash script *can* be run without a main function... but it causes a pop up to appear so It is highly recommended that you use a main function.
Second you cannot denote comments with a # character. (This may be fixed with future .php scripts, but currently it is a minor inconvenience with a trivial work around
Beyond those two issues, just register, upload and run.
Change log:
1.01 fix issue with a greedy vs. lazy regex that caused some scripts to work incorrectly
1.01 fixes to correct an issue with the rash cache.
1.02 Add RASH_Run_New_Source property default to false
1.02 Add View command to view cached source
1.02 Add capability to view the php source for viewSrc.php, upload.php and uploader.php
1.02 Add ability to filter list
1.03 Correctly handle notification commands, including setting script name.
Attachments
Last edited: