/pastebin-scraper-frontend

The frontend to https://github.com/mitchya1/PasteBin_SecurityScraper

Primary LanguageHTMLGNU General Public License v3.0GPL-3.0

pastebin-scraper-frontend

Overview

This is the frontend to this tool.

The PasteBin_SecurityScraper iterates through the latest 249 (or whatever you configure) pastes on Pastebin and searches for strings. If it finds a match, the full paste, keyword, and URL of the paste are added to MongoDB (assuming you enable that feature).

The frontend provides a means to view and categorize (false alarm, match, unclassified) the responses from the scraper.

Setup

  • Clone the repo

    • The files in app_files/ assume you've cloned the repo to /opt/
  • Move config.example.py to config.py

  • Fill in your MongoDB settings. These should match the credentials you're using for PasteBin_SecurityScraper

    • The user needs to be able to modify the documents in the collection
  • Add a user for gunicorn to run as

    • app_files/pbfe.service assume the user is named pbscrape
  • Move app_files/pbfe.service to /etc/systemd/system/

    • If you do not proxy this with NGINX/httpd/something else, change 127.0.0.1:5000 to 0.0.0.0:5000
  • Run sudo systemctl daemon-reload

  • You can now run the application (sudo systemctl start pbfe)

Optional

There's an example NGINX config (app_files/pbfe.service) if you'd like to reverse proxy the Flask app.