Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > Old Scripting Engine (GS1)
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #16  
Old 07-29-2012, 02:46 AM
Tricxta Tricxta is offline
The Muffin Man
Tricxta's Avatar
Join Date: Oct 2010
Location: Australia
Posts: 563
Tricxta is a jewel in the roughTricxta is a jewel in the rough
Quote:
Originally Posted by xXziroXx View Post
Limiting scripting functionality in fear of what abuse/poor scripting could cause is a horrible approach.

I'll probably pick up a negative rep or two for the following comment, but it'd be like not allowing immigrants from middle eastern countries in fear of letting in terrorists.
Fair call, i'll +rep.

edit: (when I can...)
Reply With Quote
  #17  
Old 07-29-2012, 09:11 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by xXziroXx View Post
Limiting scripting functionality in fear of what abuse/poor scripting could cause is a horrible approach.
With that said, I wish it was possible to control things like this better. It bothers me that any random LAT can delete every weapon on the server, drop all my SQL tables, spawn money or items, etc.
__________________
Reply With Quote
  #18  
Old 07-29-2012, 09:39 AM
xXziroXx xXziroXx is offline
Master of Puppets
xXziroXx's Avatar
Join Date: May 2004
Location: Sweden
Posts: 5,288
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Send a message via AIM to xXziroXx Send a message via MSN to xXziroXx
Quote:
Originally Posted by cbk1994 View Post
With that said, I wish it was possible to control things like this better. It bothers me that any random LAT can delete every weapon on the server, drop all my SQL tables, spawn money or items, etc.
I agree, but I don't think limiting the language is the right approach.
__________________

"A delayed game is eventually good, but a rushed game is forever bad." - Shigeru Miyamoto
Reply With Quote
  #19  
Old 07-29-2012, 03:47 PM
MattKan MattKan is offline
the KattMan
Join Date: Aug 2010
Location: United States
Posts: 1,325
MattKan is a splendid one to beholdMattKan is a splendid one to beholdMattKan is a splendid one to beholdMattKan is a splendid one to beholdMattKan is a splendid one to behold
Send a message via AIM to MattKan
Quote:
Originally Posted by xXziroXx View Post
I agree, but I don't think limiting the language is the right approach.
I didn't know this before, and I'll have to admit it makes me just a little bit nervous. Do you know how I could go about overriding that command, and if possible only for scripts starting with certain names?
Reply With Quote
  #20  
Old 07-29-2012, 09:29 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by MattKan View Post
I didn't know this before, and I'll have to admit it makes me just a little bit nervous. Do you know how I could go about overriding that command, and if possible only for scripts starting with certain names?
Add this to the weapons.

PHP Code:
public function destroy() {
  echo(
"no");

A better solution is to simply make routine backups.
__________________

Last edited by cbk1994; 07-29-2012 at 09:58 PM.. Reason: good catch Skyld
Reply With Quote
  #21  
Old 07-29-2012, 09:55 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by cbk1994 View Post
Add this to the weapons.

PHP Code:
function destroy() {
  echo(
"no");

A better solution is to simply make routine backups.
Maybe that wants to be a public function.
__________________
Skyld
Reply With Quote
  #22  
Old 07-30-2012, 01:10 AM
Bleachlover551 Bleachlover551 is offline
Soul Reaper
Bleachlover551's Avatar
Join Date: Jul 2012
Location: Brunswick
Posts: 34
Bleachlover551 is an unknown quantity at this point
Quote:
Originally Posted by Skyld View Post
Maybe that wants to be a public function.
its an honor to have you comment i admire u you (no homo)
Reply With Quote
  #23  
Old 07-30-2012, 02:04 AM
scriptless scriptless is offline
Banned
Join Date: Dec 2008
Location: N-Pulse
Posts: 1,412
scriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to behold
Quote:
Originally Posted by cbk1994 View Post
Add this to the weapons.

PHP Code:
public function destroy() {
  echo(
"no");

A better solution is to simply make routine backups.
I wasn't sure how to override functions. This could be useful:o

And yeah backups would definitely be best. As for the LAT thing, It would be rather simple to have lat's upload to a folder only they can, and then checked/moved by an admin. It could be simple to script a GS2 checker to see if it uses certain functions by scanning the level as a file first.
Reply With Quote
  #24  
Old 07-30-2012, 02:06 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by scriptless View Post
It could be simple to script a GS2 checker to see if it uses certain functions by scanning the level as a file first.
It's a lot more difficult than you would think.
__________________
Reply With Quote
  #25  
Old 07-30-2012, 02:30 AM
Bleachlover551 Bleachlover551 is offline
Soul Reaper
Bleachlover551's Avatar
Join Date: Jul 2012
Location: Brunswick
Posts: 34
Bleachlover551 is an unknown quantity at this point
Agreed ^,^
Reply With Quote
  #26  
Old 07-30-2012, 06:26 AM
MattKan MattKan is offline
the KattMan
Join Date: Aug 2010
Location: United States
Posts: 1,325
MattKan is a splendid one to beholdMattKan is a splendid one to beholdMattKan is a splendid one to beholdMattKan is a splendid one to beholdMattKan is a splendid one to behold
Send a message via AIM to MattKan
Quote:
Originally Posted by cbk1994 View Post
It's a lot more difficult than you would think.
That should be your next project- something that allows people to block certain functions unless they are coming from certain scripts.
Reply With Quote
  #27  
Old 07-30-2012, 07:53 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by MattKan View Post
That should be your next project- something that allows people to block certain functions unless they are coming from certain scripts.
This is not possible. The best you can do is a scanner that looks for things that look unsafe in a level, and these are difficult to make. Time is better spent elsewhere.
__________________
Reply With Quote
  #28  
Old 07-30-2012, 11:37 AM
xXziroXx xXziroXx is offline
Master of Puppets
xXziroXx's Avatar
Join Date: May 2004
Location: Sweden
Posts: 5,288
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Send a message via AIM to xXziroXx Send a message via MSN to xXziroXx
Do regular backups and limit write rights off (npcserver). Problem solved.
__________________

"A delayed game is eventually good, but a rushed game is forever bad." - Shigeru Miyamoto
Reply With Quote
  #29  
Old 07-30-2012, 06:12 PM
scriptless scriptless is offline
Banned
Join Date: Dec 2008
Location: N-Pulse
Posts: 1,412
scriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to behold
Quote:
Originally Posted by cbk1994 View Post
This is not possible. The best you can do is a scanner that looks for things that look unsafe in a level, and these are difficult to make. Time is better spent elsewhere.
Actually I made a program back in 2007 using Delphi that scanned levels, it wasn't to hard to have it find certain text within and count the number of occurances.. However making it remove them is indeed difficult.. Think find position within a substring.. Was all I did tho.. But your right time is better spent elsewhere. I personally recommend the temp folder with admins checking to prevent abuse..
Reply With Quote
  #30  
Old 07-30-2012, 06:33 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by scriptless View Post
Actually I made a program back in 2007 using Delphi that scanned levels, it wasn't to hard to have it find certain text within and count the number of occurances.. However making it remove them is indeed difficult.. Think find position within a substring..
Replacing occurrences of something in a string is rather easy, just use regular expressions. That's not the problem though. Programs/scripts like that are easily avoided. If you really want to cause harm, you'll be able to get past such protection. It's just impossible to efficiently check for malicious code.
__________________
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 01:55 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.