Closed UlrichBerntien closed 5 years ago
uuencode/uudecode are missing on a lot of systems, so I wouldn't merge this just yet.
Thank you. I changed from uuencode/uudecode to the base64 tool. Now the combination gzip + base64 is used to encode/decode the memexec Perl script. I hope this is supported by more systems.
If you know a better tool combination I will use it. Another option is to store the plain text of the Perl script in o.rc. But the original o.rc version uses an obfuscation so I want to support obfuscation also.
Now the memexec function should be able to download and execute script files.
A script file must start with the "#!". This two bytes will be checked and then the script file executed via the env tool.
Added python2 and python3 implementation of memexec.
Now the download and execution of binary programs and script files should be work with python3, python2 or perl.