Skip to content

Instantly share code, notes, and snippets.

@flfymoss
Last active December 15, 2021 10:42
Show Gist options
  • Save flfymoss/4978e8dacde8bb94b872f495c2c9bf06 to your computer and use it in GitHub Desktop.
Save flfymoss/4978e8dacde8bb94b872f495c2c9bf06 to your computer and use it in GitHub Desktop.
### **CAUTION** : This script is created for demonstration of sysbox's security feature. DON'T RUN ON PRODUCTION!
#!/bin/sh
### **CAUTION** : This script is created for demonstration of sysbox's security feature. DON'T RUN ON PRODUCTION!
if [ "${SCAN}" != "y" ]; then
echo "Scanner is disabled."
exit 1
fi
### FAKE SECURITY SCAN
echo "=== Starting security scanner v1.0 ==="
echo "Scanning files..."
for i in `ls`; do
echo "${i} is OK!"
sleep 0.2s
done
### PUT A CUTE BANNER :)
mkdir -p /tmp/scanner
mount /dev/vda1 /tmp/scanner
echo "HEY, BUY ME A BEER! :)" > /tmp/scanner/etc/motd
umount /tmp/scanner
echo "Scan completed. Your project is absolutely secure!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment