/Monitor-pastebin-leaks

Script to monitor pastebin.com's public pastes for sensitive data leakage

Primary LanguageShellMIT LicenseMIT

Monitor-pastebin-leaks

Script to monitor pastebin.com's public pastes for sensitive data leakage.

It "greps" raw data against regular expressions,

if matches

  1. downloads file to /opt/pastebin/ directory
  2. gives you alert
  3. saves message in log

NOTE: Script is tested only for root user.

Usage

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 -

Screenshots

When nothing changed after the last run

When nothing changed after the last run

When something changed after the last run

When something changed after the last run

When script finds something

When script finds something

Data downloaded in /opt/pastebin

Data downloaded in /opt/pastebin