3 ms·
If you're willing assume a Linux platform and a Python installation, you can do something like: echo -n "base64encodedelf" | base64 --decode | python3 -c 'im
by 10000truths 3y ago
If you're willing assume a Linux platform and a Python installation, you can do something like:
echo -n "base64encodedelf" | base64 --decode | python3 -c 'import os;import sys;f=os.memfd_create(os.MFD_CLOEXEC);os.write(f,sys.stdin.buffer.read());os.execve(f,["dummy"],[])'
- londons_explore 3y agoSurprising that no combination of bash symbols lets you do this.
- Tepix 3y agoNeat. But is the base64 even necessary?
- erik_seaberg 3y agoI don’t know that every editor today will gracefully handle a blob that isn’t valid UTF-8. Emacs needed a library (so-long) to disable some features that choke trying to render very long lines.
- Tepix 3y agoYou'll to edit the shell script without the binary at the end and once you're done you append the blob.