Script to monitor pastebin.com's public pastes for sensitive data leakage.
It "greps" raw data against regular expressions,
if matches
- downloads file to /opt/pastebin/ directory
- gives you alert
- saves message in log
How to run?
bash MONITOR_pastebin.sh
How to add to cron?
crontab -l | { cat; echo "*/5 * * * * bash /root/Desktop/dev/sh/MONITOR_pastebin.sh"; } | crontab -
When nothing changed after the last run
When something changed after the last run
When script finds something
Data downloaded in /opt/pastebin