Skip to content
forked from pclr/pystemon

Monitoring tool for PasteBin-alike sites written in Python. Inspired by pastemon http://github.com/xme/pastemon

License

Notifications You must be signed in to change notification settings

tmendo/pystemon

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pystemon

Monitoring tool for PasteBin-alike sites written in Python

Features added and bugs fixed in this fork:

  • update-min and update-max are now honoured
  • added option to enable or disable proxy use
  • added option to enable single or random proxy (random proxies are still removed after a few errors)
  • disabled redis by default
  • redis dependency only loaded if redis is enabled

My original fork can be found here cvandeplas#26. Meanwhile others have contributed to this repo :)

Original README below:

Copyleft AGPLv3 - Christophe Vandeplas - [email protected]
Feel free to use the code, but please share the changes you've made

Features:

  • search for regular expressions in pasties
  • flexible design, minimal effort to add another paste* site
  • use custom download functions for complex pastie sites
  • uses multiple threads per unique site to download the pastes
  • waits a random time (within a range) before downloading the latest pastes, time customizable per site
  • (optional) only trigger on X hits in the same pastie
  • (optional) exclude matching pasties if exclusion regex matches
  • (optional) allow additional email recipients per search pattern
  • (optional) uses random User-Agents
  • (optional) uses random proxies
  • removes a proxy if it is unreliable (fails 5 times)
  • (optional) compress saved files with Gzip. (no zip to limit external dependencies)

Python Dependencies

  • PyYAML
  • BeautifulSoup

Limitations:

  • Only HTTP proxies are allowed
  • Only HTTP urls will use proxies

Usage

Usage: pystemon.py [options]
Options:
      -h, --help            show this help message and exit  
      -c FILE, --config=FILE  
                            load configuration from file  
      -d, --daemon          runs in background as a daemon (NOT IMPLEMENTED)  
      -s, --stats           display statistics about the running threads (NOT IMPLEMENTED)    
      -v                    outputs more information  

Default configuration file: /etc/pystemon.yaml or pystemon.yaml in current directory

About

Monitoring tool for PasteBin-alike sites written in Python. Inspired by pastemon http://github.com/xme/pastemon

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%