forked from pclr/pystemon
-
Notifications
You must be signed in to change notification settings - Fork 1
/
pystemon.yaml
253 lines (212 loc) · 9.2 KB
/
pystemon.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
#network: # Network settings
# ip: '1.1.1.1' # Specify source IP address if you want to bind on a specific one
syslog:
enable: yes # enable syslog
archive:
save: yes # Keep
save-all: no # Keep a copy of all pasties
dir: "alerts" # Directory where matching pasties should be kept
dir-all: "archive" # Directory where all pasties should be kept (if save-all is set to yes)
compress: yes # Store the pasties compressed
db:
sqlite3: # Store information about the pastie in a database
enable: no # Activate this DB engine # NOT FULLY IMPLEMENTED
file: 'db.sqlite3' # The filename of the database
redis:
queue: no
server: "localhost"
port: 6379
database: 10
email:
alert: no # Enable/disable email alerts
from: alert@example.com
to: alert@example.com
server: 127.0.0.1 # Address of the server (hostname or IP)
port: 25 # Outgoing SMTP port: 25, 587, ...
username: '' # (optional) Username for authentication. Leave blank for no authentication.
password: '' # (optional) Password for authentication. Leave blank for no authentication.
subject: '[pystemon] - {subject}'
#####
# Definition of regular expressions to search for in the pasties
#
search:
# - description: '' # (optional) A human readable description. (used in alerting)
# search: '' # The regular expression to search for
# count: '' # (optional) How many hits should it have to be interesting?
# exclude: '' # (optional) Do not alert if this regular expression matches
# regex-flags: '' # (optional) Regular expression flags to give to the find function.
# # Default = re.IGNORECASE
# # Set to 0 to have no flags set
# # See http://docs.python.org/2/library/re.html#re.DEBUG for more info.
# # Warning: when setting this the default is overridden
# # example: 're.MULTILINE + re.DOTALL + re.IGNORECASE'
# to: '' # (optional) Additional recipients for email alert, comma separated list
- search: '[^a-zA-Z0-9]example\.com'
- search: '[^a-zA-Z0-9]foobar\.com'
- description: 'Download (non-porn)'
search: 'download'
exclude: 'porn|sex|teen'
count: 4
#####
# Configuration section for the paste sites
#
threads: 1 # number of download threads per site
site:
# example.com:
# archive-url: # the url where the list of last pasties is present
# # example: 'http://pastebin.com/archive'
# archive-regex: # a regular expression to extract the pastie-id from the page.
# # do not forget the () to extract the pastie-id
# # example: '<a href="/(\w{8})">.+</a></td>'
# download-url: # url for the raw pastie.
# # Should contain {id} on the place where the ID of the pastie needs to be placed
# # example: 'http://pastebin.com/raw.php?i={id}'
# update-max: 40 # every X seconds check for new updates to see if new pasties are available
# update-min: 30 # a random number will be chosen between these two numbers
# pastie-classname: # OPTIONAL: The name of a custom Class that inherits from Pastie
# # This is practical for sites that require custom fetchPastie() functions
pastebin.com:
archive-url: 'http://pastebin.com/archive'
archive-regex: '<a href="/(\w{8})">.+</a></td>'
download-url: 'http://pastebin.com/raw.php?i={id}'
update-max: 95
update-min: 85
# See https:/pastebin.com/api_scraping_faq , you will need a pro accout on pastebin
# pastebin.com_pro:
# archive-url: 'http://pastebin.com/api_scraping.php?linmit=500'
# archive-regex: '"key": "(.+)",'
# download-url: 'http://pastebin.com/api_scrape_item.php?i={id}'
# update-max: 50
# update-min: 40
pastie.org:
archive-url: 'http://pastie.org/pastes'
archive-regex: '<a href="http://pastie.org/pastes/(\d+)">'
download-url: 'http://pastie.org/pastes/{id}/text'
slexy.org:
archive-url: 'http://slexy.org/recent/'
archive-regex: '<a href="/view/([a-zA-Z0-9]+)">View paste</a>'
download-url: 'http://slexy.org/raw/{id}'
gist.github.com:
archive-url: 'https://gist.github.com/discover'
archive-regex: '<a href="/([a-zA-Z0-9]+/[a-z0-9]+)">'
download-url: 'https://gist.githubusercontent.com/{id}/raw'
codepad.org:
archive-url: 'http://codepad.org/recent'
archive-regex: '<a href="http://codepad.org/([a-zA-Z0-9]+)">view'
download-url: 'http://codepad.org/{id}/raw.txt'
snipt.net:
pastie-classname: PastieSniptNet
archive-url: 'https://snipt.net/public/?rss'
archive-regex: '<link>https://snipt.net/(.+)/</link>'
download-url: 'https://snipt.net/{id}/'
# safebin.net: # FIXME not finished
# archive-url: 'http://safebin.net/?archive'
# archive-regex: '<a title="[a-zA-Z0-9 :,]+" href="/([0-9]+)">'
# download-url: 'http://safebin.net/{id}'
# update-max: 60
# update-min: 50
kickasspastes.com:
archive-url: 'http://kickasspastes.com/archive.php'
archive-regex: '<td><a href="/(\d+)'
download-url: 'http://kickasspastes.com/{id}'
paste.frubar.net:
archive-url: 'http://paste.frubar.net/'
archive-regex: '<a href="http://paste.frubar.net/(\d+)'
download-url: 'http://paste.frubar.net/{id}'
pastebin.ca:
archive-url: 'http://pastebin.ca'
archive-regex: 'rel="/preview.php\?id=(\d+)'
download-url: 'http://pastebin.ca/{id}'
ideone.com:
archive-url: 'http://ideone.com/recent'
archive-regex: '<a href="/([a-zA-Z0-9]+)">#'
download-url: 'http://ideone.com/plain/{id}'
justpaste.it:
archive-url: 'https://justpaste.it/topall'
archive-regex: '<a href="https://justpaste.it/([a-zA-Z0-9]+)">'
download-url: 'https://justpaste.it/{id}'
paste.org.ru:
archive-url: 'http://paste.org.ru'
archive-regex: '<a href=''/\?(\w+)''>'
download-url: 'http://paste.org.ru/?{id}'
paste.lisp.org:
archive-url: 'http://paste.lisp.org'
archive-regex: '<a href="http://paste.lisp.org/display/(\d+)"'
download-url: 'http://paste.lisp.org/display/{id}'
www.linkpaste.com:
archive-url: 'http://www.linkpaste.com/last-pastes.html'
archive-regex: '<a href="http://www.linkpaste.com/(\w+)">'
download-url: 'http://www.linkpaste.com/{id}'
snipplr.com:
archive-url: 'http://snipplr.com/all'
archive-regex: '<a href=''/view/(.+?/.+?/)'
download-url: 'http://snipplr.com/view/{id}'
lpaste.net:
archive-url: 'http://lpaste.net/browse'
archive-regex: '<a href="/(\d+)"'
download-url: 'http://lpaste.net/raw/{id}'
wklej.se:
archive-url: 'http://wklej.se'
archive-regex: '<a href="http://users.wklej.se/(.+?/.+?")'
download-url: 'http://wklej.se/{id}'
pastebin.ru:
archive-url: 'http://pastebin.ru/'
archive-regex: '<a href="/(\w+)">'
download-url: 'http://pastebin.ru/{id}'
pastebin.gr:
archive-url: 'http://pastebin.gr/'
archive-regex: '<a href="http://pastebin.gr/(\d+)'
download-url: 'http://pastebin.gr/pastebin.php?dl={id}'
pastebin.fr:
archive-url: 'http://pastebin.fr'
archive-regex: '<a href="http://pastebin.fr/(\d+)'
download-url: 'http://pastebin.fr/{id}'
paste.opensuse.org:
archive-url: 'http://paste.opensuse.org/lists'
archive-regex: '<a href="http://paste.opensuse.org/(\d+)'
download-url: 'http://paste.opensuse.org/view/raw/{id}'
paste.kde.org:
archive-url: 'https://paste.kde.org/all'
archive-regex: '<a href="https://paste.kde.org/(\w+)" c'
download-url: 'https://paste.kde.org/{id}'
paste.fedoraproject.org:
archive-url: 'http://paste.fedoraproject.org/all/'
archive-regex: '<a href="/(\d+)/'
download-url: 'http://paste.fedoraproject.org/{id}/raw/'
paste.debian.net:
archive-url: 'http://paste.debian.net/'
archive-regex: '<a href=''//paste.debian.net/(\d+)'
download-url: 'http://paste.debian.net/plain/{id}'
kpaste.net:
archive-url: 'http://kpaste.net/'
archive-regex: '" href="/(\w+)">'
download-url: 'http://kpaste.net/{id}?raw'
pastebay.org:
archive-url: 'http://pastebay.org/index.php/lists'
archive-regex: '<a href="http://pastebay.org/index.php/view/(\d+)'
download-url: 'http:pastebay.org/index.php/view/raw/{id}'
# TODO
# http://www.safebin.net/ # more complex site
# http://www.heypasteit.com/ # http://www.heypasteit.com/clip/0IZA => incremental
# http://hastebin.com/ # no list of last pastes
# http://sebsauvage.net/paste/ # no list of last pastes
# http://tny.cz/ # no list of last pastes
# https://pastee.org/ # no list of last pastes
# http://paste2.org/ # no list of last pastes
# http://0bin.net/ # no list of last pastes
# http://markable.in/ # no list of last pastes
#####
# Configuration section to configure proxies
# Currently only HTTP proxies are permitted
#
proxy:
use: yes
random: no
single-proxy: 'http://127.0.0.1:8080'
random-proxy-file: 'proxies.txt'
#####
# Configuration section for User-Agents
#
user-agent:
random: yes
file: 'user-agents.txt'