The only trick, then, is to find the end of the script and, thus, the start of the payload. Consider this file, deliver.sh: #!/bin/bash WORKDIR=$( mktemp -d ) #find last line +1 SCRIPT_END=$( awk ...
Let's say you wrote a Bash script on an Ubuntu system. Could that same script run on another Unix-based machine? It can. Bash is among the most portable scripting languages, allowing users to ...