destruct2

This commit is contained in:
SkyperTHC 2023-05-15 12:30:59 +01:00
parent 33d239f394
commit 6ff9745ec3
No known key found for this signature in database
GPG Key ID: A9BD386DF9113CD6
2 changed files with 12 additions and 6 deletions

@ -672,6 +672,7 @@ RUN /pkg-install.sh LARGE ghdir gophish/gophish 'linux-64bit.zip$' /usr/gophish
&& echo -e "#! /bin/bash\ncd /usr/gophish && exec ./gophish \"\$@\"" >/usr/bin/gophish \
&& chmod 755 /usr/bin/gophish; }'
RUN /pkg-install.sh HUGE npm install -g wscat
RUN /pkg-install.sh HUGE bash -c 'mkdir -p /usr/share/wordlists; curl -fsSL https://crackstation.net/files/crackstation-human-only.txt.gz | gunzip >/usr/share/wordlists/crackstation-human-only.txt'
RUN sed 's/deb-src.*//' -i /etc/apt/sources.list \
&& apt-get autoremove -y \
&& apt-get update

@ -16,13 +16,14 @@ encrypted data will remain until next log in (with the correct SECRET).
This system will ${CRY}SELF-DESTRUCT${CN} in 10 seconds."
read -r -n8 -t10 str && {
echo -e "${CDR}Self-Destruct cancelled...${CDY}*phew*${CN}"
[[ $str == "halt" ]] && {
echo -e "HALT instead..."
halt
[[ $str != "now" ]] && {
echo -e "${CDR}Self-Destruct cancelled...${CDY}*phew*${CN}"
[[ $str == "halt" ]] && {
echo -e "HALT instead..."
halt
}
exit 255
}
[[ $str != "now" ]] && exit 255
}
}
@ -35,6 +36,10 @@ echo -e "${CDR}***DESTRUCT***${CN}"
shopt -s dotglob
rm -rf /onion/*
rm -rf "/everyone/${SF_HOSTNAME,,}/"*
rm -rf /sec/*
# Bloody at-spi-bu re-creates a fuse-hidden file when the parent directory is deleted.
# Force kill it.
rm -rf /sec/* 2>/dev/null
find /sec/root/.cache/dconf -exec fuser -k {} \; &>/dev/null
rm -rf /sec/root/*
echo -e "${CDG}DONE.${CN}"
halt