Kali Linux

PasteMonitor : Scrape Pastebin API To Collect Daily Pastes, Setup A Wordlist And Be Alerted By Email When You Have A Match

PasteMonitor is a Scrape Pastebin API to collect daily pastes, setup a wordlist and be alerted by email when you have a match.

Description

The PasteMonitor tool allows you to perform two main actions (for educational purposes only):

  • Download daily new public pastes
Average number of pastes per day: 1000-3000 (filetype: .txt)Average number of pastes per day: 1000-3000 (filetype: .txt)
  • Send automatic email alert

You can setup a wordlist and be alerted by email when you have a match

If your paste is no longer online, you can find it on your computer/server via the ID of your paste (here ID is “WJq2YxPg”)

Before start

Before starting the tool, make sure to:

  • Get a Pastebin PRO account
  • Enter the IP address of your machine in the “Your Account & Whitelisted IP” section
  • Activate a mail account that can authorize a third party application (here we use a Gmail account)
  • Enable 2-step verification
  • Generate app password (for more help, see this tutorial)

Then, add to the code “pastemonitor.py”:

  • Email credentials (“email”, “password”)
  • Email alert recipient (“receiver”)

Wordlist

In the “wordlist.txt” file, add your keywords line by line.

Prerequisite

pip3 install -r requirements.txt

Usage

python3 pastemonitor.py

R K

Recent Posts

Bash Arrays Explained Simply: Beginner’s Guide with Examples

If you’re learning Bash scripting, one of the most useful features you’ll come across is…

11 hours ago

Bash For Loop Examples Explained Simply for Beginners

If you are new to Bash scripting or Linux shell scripting, one of the most…

22 hours ago

How Does a Firewall Work Step by Step

How Does a Firewall Work Step by Step? What Is a Firewall and How Does…

2 days ago

ROADTools: The Modern Azure AD Exploration Framework

ROADTools is a powerful framework designed for exploring and interacting with Microsoft Azure Active Directory…

6 days ago

How to Enumerate Microsoft 365 Groups Using PowerShell and Python

Microsoft 365 Groups (also known as M365 Groups or Unified Groups) are at the heart…

6 days ago

SeamlessPass: Using Kerberos Tickets to Access Microsoft 365

SeamlessPass is a specialized tool designed to leverage on-premises Active Directory Kerberos tickets to obtain…

7 days ago