This question applies to multiple programming languages. I ask for Python and Ruby. The answer for other interpreted languages are also welcome by me.
I want to download and execute a script from the Web and its import
(Python) or require
(Ruby) to also download from the Web.
Example (Python, but the same applies to Ruby and other languages):
I want to execute script
If in script.py there is the operator
import mod
This "import" operator should download and compile
Certainly I want this to work recursively for modules importing other modules.
Yes, I am aware of security considerations. So I am going to use Linux security commands firejail
and ulimit
and execute it on a separate server to minimize the impact of possible hacking.
Aucun commentaire:
Enregistrer un commentaire