Skip to content

Instantly share code, notes, and snippets.

@flfymoss
Last active Dec 15, 2021
Embed
What would you like to do?
### **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