-
-
Notifications
You must be signed in to change notification settings - Fork 252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"IP address" parameter type #136
Comments
Hi @xxlaefxx, IP address type makes sense and a nice idea, thanks! I'll add it Regarding && operator (and any other bash operators): script server protects from it, a bit more details here: Shell commands injection. It will always be passed as a positional argument to your script and not executed on its own (even if you put it in |
1/ Thank you in advance for IP addresses and this quick response! :) 1.5/ Yes, I read it and added double quotes (everywhere), but I got something like that in the beginning:
conf/runner/SimpleScript.json
|
Hi @xxlaefxx, I don't know how you parse and use incoming arguments, I tried to reproduce it locally and I couldn't. The test script I was using (it's without -ip, just a positional argument):
All pings and parameters initializations worked fine, without processing &&. |
Ok, the reason was CentOS 6 and "latest" python34 installed. Spasibo! |
Hi @xxlaefxx , thank you for getting back. |
Hi, @bugy
|
Hi @xxlaefxx, thank you! |
Added new parameter types:
Validation is done on server and client side. The dev build is available at https://github.com/bugy/script-server/releases/download/dev/script-server.zip |
Hi guys,
the app is really wonderful! ..And I have 1,5 questions:
1/ Did someone faced with the necessity to verify if entered parameter is valid IPv4/IPv6 address? :)
I'm checking it by the separate py script, but I think it's worthy to be a parameter type...
1.5/ What is the best way to exclude the possibility of using "&&" operator? for example: "some_thing && kill -9 $(pgrep -f python)"
Thank you!
The text was updated successfully, but these errors were encountered: