Skip to content

Instantly share code, notes, and snippets.

View ChrisCarini's full-sized avatar

Chris Carini ChrisCarini

View GitHub Profile
@ChrisCarini
ChrisCarini / embeddedPayload.sh
Last active July 7, 2025 05:14
Embed TAR file in a shell script
#!/bin/bash
# Instructions:
# 1) Create your TAR archive
# tar -czpf file.tar <file1> <file2> ... <fileN>
# 2) Append the TAR file contents to the script
# cat file.tar >> embeddedPayload.sh
# 3) Run script. (./embeddedPayload.sh)