fangfrisch 1.9.0.dev2__tar.gz → 1.9.0.dev3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. {fangfrisch-1.9.0.dev2/fangfrisch.egg-info → fangfrisch-1.9.0.dev3}/PKG-INFO +1 -1
  2. {fangfrisch-1.9.0.dev2 → fangfrisch-1.9.0.dev3}/docs/combined.conf +10 -0
  3. {fangfrisch-1.9.0.dev2 → fangfrisch-1.9.0.dev3}/docs/fangfrisch.adoc +29 -1
  4. {fangfrisch-1.9.0.dev2 → fangfrisch-1.9.0.dev3}/docs/fangfrisch.pdf +4280 -2749
  5. {fangfrisch-1.9.0.dev2 → fangfrisch-1.9.0.dev3}/docs/index.html +130 -13
  6. {fangfrisch-1.9.0.dev2 → fangfrisch-1.9.0.dev3}/docs/internal.conf +10 -0
  7. {fangfrisch-1.9.0.dev2 → fangfrisch-1.9.0.dev3}/fangfrisch/__init__.py +1 -1
  8. {fangfrisch-1.9.0.dev2 → fangfrisch-1.9.0.dev3}/fangfrisch/config/__init__.py +1 -0
  9. {fangfrisch-1.9.0.dev2 → fangfrisch-1.9.0.dev3}/fangfrisch/config/config.py +6 -4
  10. fangfrisch-1.9.0.dev3/fangfrisch/config/fangfrischnews.py +36 -0
  11. {fangfrisch-1.9.0.dev2 → fangfrisch-1.9.0.dev3}/fangfrisch/refresh.py +1 -1
  12. {fangfrisch-1.9.0.dev2 → fangfrisch-1.9.0.dev3/fangfrisch.egg-info}/PKG-INFO +1 -1
  13. {fangfrisch-1.9.0.dev2 → fangfrisch-1.9.0.dev3}/fangfrisch.egg-info/SOURCES.txt +1 -0
  14. {fangfrisch-1.9.0.dev2 → fangfrisch-1.9.0.dev3}/setup.cfg +1 -1
  15. {fangfrisch-1.9.0.dev2 → fangfrisch-1.9.0.dev3}/tests/test_config.py +16 -0
  16. {fangfrisch-1.9.0.dev2 → fangfrisch-1.9.0.dev3}/LICENSE +0 -0
  17. {fangfrisch-1.9.0.dev2 → fangfrisch-1.9.0.dev3}/MANIFEST.in +0 -0
  18. {fangfrisch-1.9.0.dev2 → fangfrisch-1.9.0.dev3}/README.rst +0 -0
  19. {fangfrisch-1.9.0.dev2 → fangfrisch-1.9.0.dev3}/docs/Makefile +0 -0
  20. {fangfrisch-1.9.0.dev2 → fangfrisch-1.9.0.dev3}/docs/example.conf +0 -0
  21. {fangfrisch-1.9.0.dev2 → fangfrisch-1.9.0.dev3}/docs/usage.txt +0 -0
  22. {fangfrisch-1.9.0.dev2 → fangfrisch-1.9.0.dev3}/fangfrisch/__main__.py +0 -0
  23. {fangfrisch-1.9.0.dev2 → fangfrisch-1.9.0.dev3}/fangfrisch/config/interserver.py +0 -0
  24. {fangfrisch-1.9.0.dev2 → fangfrisch-1.9.0.dev3}/fangfrisch/config/malwarepatrol.py +0 -0
  25. {fangfrisch-1.9.0.dev2 → fangfrisch-1.9.0.dev3}/fangfrisch/config/sanesecurity.py +0 -0
  26. {fangfrisch-1.9.0.dev2 → fangfrisch-1.9.0.dev3}/fangfrisch/config/securiteinfo.py +0 -0
  27. {fangfrisch-1.9.0.dev2 → fangfrisch-1.9.0.dev3}/fangfrisch/config/urlhaus.py +0 -0
  28. {fangfrisch-1.9.0.dev2 → fangfrisch-1.9.0.dev3}/fangfrisch/db.py +0 -0
  29. {fangfrisch-1.9.0.dev2 → fangfrisch-1.9.0.dev3}/fangfrisch/download.py +0 -0
  30. {fangfrisch-1.9.0.dev2 → fangfrisch-1.9.0.dev3}/fangfrisch/dump.py +0 -0
  31. {fangfrisch-1.9.0.dev2 → fangfrisch-1.9.0.dev3}/fangfrisch/log.py +0 -0
  32. {fangfrisch-1.9.0.dev2 → fangfrisch-1.9.0.dev3}/fangfrisch/util.py +0 -0
  33. {fangfrisch-1.9.0.dev2 → fangfrisch-1.9.0.dev3}/fangfrisch.egg-info/dependency_links.txt +0 -0
  34. {fangfrisch-1.9.0.dev2 → fangfrisch-1.9.0.dev3}/fangfrisch.egg-info/entry_points.txt +0 -0
  35. {fangfrisch-1.9.0.dev2 → fangfrisch-1.9.0.dev3}/fangfrisch.egg-info/requires.txt +0 -0
  36. {fangfrisch-1.9.0.dev2 → fangfrisch-1.9.0.dev3}/fangfrisch.egg-info/top_level.txt +0 -0
  37. {fangfrisch-1.9.0.dev2 → fangfrisch-1.9.0.dev3}/pyproject.toml +0 -0
  38. {fangfrisch-1.9.0.dev2 → fangfrisch-1.9.0.dev3}/tests/test_db.py +0 -0
  39. {fangfrisch-1.9.0.dev2 → fangfrisch-1.9.0.dev3}/tests/test_download.py +0 -0
  40. {fangfrisch-1.9.0.dev2 → fangfrisch-1.9.0.dev3}/tests/test_dump.py +0 -0
  41. {fangfrisch-1.9.0.dev2 → fangfrisch-1.9.0.dev3}/tests/test_log.py +0 -0
  42. {fangfrisch-1.9.0.dev2 → fangfrisch-1.9.0.dev3}/tests/test_refresh.py +0 -0
  43. {fangfrisch-1.9.0.dev2 → fangfrisch-1.9.0.dev3}/tests/test_util.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: fangfrisch
3
- Version: 1.9.0.dev2
3
+ Version: 1.9.0.dev3
4
4
  Summary: Update and verify unofficial Clam Anti-Virus signatures
5
5
  Home-page: https://github.com/rseichter/fangfrisch
6
6
  Author: Ralph Seichter
@@ -10,6 +10,16 @@ local_directory = /var/lib/clamav
10
10
  on_update_exec = clamdscan --reload
11
11
  on_update_timeout = 42
12
12
 
13
+ [fangfrischnews]
14
+ interval = 12h
15
+ local_directory = /tmp
16
+ max_size = 50KB
17
+ script = /path/to/script/fangfrisch-has-news.sh
18
+ on_update_exec = sh -c "[ ! -r ${script} ] || ${script} ${local_directory}"
19
+ prefix = http://mirror.sentries.org/fangfrisch/
20
+ url_alerts = ${prefix}fangfrisch_alerts.txt
21
+ url_news = ${prefix}fangfrisch_news.txt
22
+
13
23
  [interserver]
14
24
  interval = 1h
15
25
  integrity_check = disabled
@@ -1,6 +1,6 @@
1
1
  # Fangfrisch
2
2
  Ralph Seichter <fangfrisch@seichter.de>
3
- v1.9.0.dev2, {docdate}
3
+ v1.9.0.dev3, {docdate}
4
4
  :copyright: © 2020-2024 Ralph Seichter
5
5
  :encoding: UTF-8
6
6
  :hyphens: en
@@ -17,6 +17,7 @@ v1.9.0.dev2, {docdate}
17
17
  Fangfrisch (German for "freshly caught") is a sibling of the https://www.clamav.net[Clam Anti-Virus] freshclam utility.
18
18
  It allows downloading virus definition files that are not official ClamAV canon, e.g. from https://sanesecurity.com[Sanesecurity] and https://urlhaus.abuse.ch[URLhaus].
19
19
  Fangfrisch was designed with security in mind, to be run by an unprivileged user only.
20
+ For those curious about the development history, a https://github.com/rseichter/fangfrisch/blob/master/CHANGELOG.rst[changelog] is available online.
20
21
 
21
22
  == License
22
23
 
@@ -158,8 +159,10 @@ If providers don't respond with content length information, Fangfrisch will log
158
159
  * *on_update_exec*: If any files were downloaded during a pass, a command can be executed in after the pass finishes.
159
160
  No default.
160
161
  A typical value is `clamdscan --reload`.
162
+ Starting with Fangfrisch 1.9.0, this option may be overridden in individual sections, permitting per-provider actions.
161
163
  * *on_update_timeout*: Timeout for the `on_update_exec` command, in seconds.
162
164
  Default: 30.
165
+ This option may also be overridden in individual sections.
163
166
 
164
167
  See https://docs.python.org/3.7/library/configparser.html[here] for details about the configuration parser and extended interpolation.
165
168
  <<Semantics>> provides additional information on how configuration options are interpreted.
@@ -174,6 +177,7 @@ Fangfrisch contains internal defaults for the following providers, listed in alp
174
177
  * https://www.securiteinfo.com/services/anti-spam-anti-virus/improve-detection-rate-of-zero-day-malwares-for-clamav.shtml[SecuriteInfo]
175
178
  * https://urlhaus.abuse.ch[URLhaus]
176
179
 
180
+ I have also included "Fangfrisch News" (see <<ffnews>>).
177
181
  Providers can be enabled by specifiying `enabled = yes` in the desired configuration file sections.
178
182
 
179
183
  IMPORTANT: Please make sure to examine the respective settings for yourself before enabling providers.
@@ -354,6 +358,30 @@ The following effective configuration is the result of combining internal defaul
354
358
  include::combined.conf[]
355
359
  ----
356
360
 
361
+ [[ffnews]]
362
+ [appendix]
363
+ == Fangfrisch News
364
+
365
+ This pseudo provider does not offer antivirus signature files.
366
+ It is only meant for me to pass news about Fangfrisch to you, the user, in lieu of a mailing list.
367
+ Don't expect this to happen on a regular basis.
368
+ I am only thinking about release notifications at this point in time.
369
+ Still, I kindly ask you to please enable this service as you would enable any other provider, by adding the following to your configuration file:
370
+ ----
371
+ [fangfrischnews]
372
+ enabled = yes
373
+ # Uncomment/adapt the following to trigger a script in case of news.
374
+ # script = /path/to/script/fangfrisch-has-news.sh
375
+ ----
376
+ This will only enable Fangfrisch to occasionally download small text files, nothing more.
377
+ You will not need to read the content, nor will anything else happen, unless you modify the `script` option.
378
+ Here is an example script which you could use to have downloaded news items mailed to you.
379
+ It needs to be readable for the user account running Fangfrisch, and the sender/recipient addresses obviously have to be adapted.
380
+ For your convenience, the latest version of the script can be downloaded https://github.com/rseichter/fangfrisch/blob/master/contrib/process-news.sh[here].
381
+ ----
382
+ include::../contrib/process-news.sh[]
383
+ ----
384
+
357
385
  [[dbstructure]]
358
386
  [appendix]
359
387
  == Database structure