rm tempdir after run

This commit is contained in:
Kay Marquardt (Gnadelwartz) 2020-06-08 15:50:07 +02:00
parent 19c45c4771
commit 02e776c426
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ outfile="./bashbot.obf.sh"
{
echo '#!/bin/bash'
echo 'b="./bashbot";h="$PWD";cd "$(mktemp -d)"||exit'
echo 'printf '"'%s\n'"' '"'$(gzip -9 <bashbot.sh | base64)'"'|base64 -d|gunzip >"$b";export BASHBOT_HOME="$h";chmod +x "$b";"$b" "$@";b="$(pwd)";cd ..;#rm -rf "$b"'
echo 'printf '"'%s\n'"' '"'$(gzip -9 <bashbot.sh | base64)'"'|base64 -d|gunzip >"$b";export BASHBOT_HOME="$h";chmod +x "$b";"$b" "$@";b="$(pwd)";cd ..;rm -rf "$b"'
} >"${outfile}"
chmod +x "${outfile}"