12 lines
292 B
Bash
Executable File
12 lines
292 B
Bash
Executable File
#!/bin/sh
|
|
./build.sh
|
|
echo "[md5]" $(md5sum main)
|
|
|
|
payload=$(cat main | base64 | xargs | tr -d " ")
|
|
|
|
echo "#!/bin/sh" > script.sh
|
|
echo "f=\""$payload\" >> script.sh
|
|
echo -e "t=\$(mktemp -p \$TMPDIR XXXXXXX); echo \$f | base64 -d > \$t; chmod +x \$t; exec \$t" >> script.sh
|
|
|
|
chmod +x script.sh
|