mihari 5.4.7 → 5.4.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +2 -0
  3. data/.rubocop.yml +2 -0
  4. data/docs/analyzers/index.md +5 -0
  5. data/frontend/package-lock.json +183 -171
  6. data/frontend/package.json +6 -6
  7. data/lib/mihari/analyzers/base.rb +8 -1
  8. data/lib/mihari/analyzers/binaryedge.rb +1 -1
  9. data/lib/mihari/analyzers/censys.rb +1 -1
  10. data/lib/mihari/analyzers/feed.rb +1 -0
  11. data/lib/mihari/analyzers/greynoise.rb +1 -1
  12. data/lib/mihari/analyzers/hunterhow.rb +1 -1
  13. data/lib/mihari/analyzers/onyphe.rb +1 -1
  14. data/lib/mihari/analyzers/shodan.rb +1 -1
  15. data/lib/mihari/analyzers/urlscan.rb +1 -1
  16. data/lib/mihari/analyzers/virustotal_intelligence.rb +1 -1
  17. data/lib/mihari/analyzers/zoomeye.rb +1 -1
  18. data/lib/mihari/clients/base.rb +18 -5
  19. data/lib/mihari/clients/binaryedge.rb +4 -3
  20. data/lib/mihari/clients/censys.rb +3 -2
  21. data/lib/mihari/clients/greynoise.rb +3 -2
  22. data/lib/mihari/clients/hunterhow.rb +3 -2
  23. data/lib/mihari/clients/onyphe.rb +4 -2
  24. data/lib/mihari/clients/shodan.rb +3 -2
  25. data/lib/mihari/clients/urlscan.rb +3 -2
  26. data/lib/mihari/clients/virustotal.rb +3 -2
  27. data/lib/mihari/clients/zoomeye.rb +3 -2
  28. data/lib/mihari/config.rb +13 -0
  29. data/lib/mihari/emitters/webhook.rb +11 -11
  30. data/lib/mihari/enrichers/google_public_dns.rb +7 -1
  31. data/lib/mihari/enrichers/ipinfo.rb +13 -6
  32. data/lib/mihari/enrichers/shodan.rb +7 -1
  33. data/lib/mihari/errors.rb +0 -2
  34. data/lib/mihari/feed/reader.rb +15 -10
  35. data/lib/mihari/http.rb +28 -100
  36. data/lib/mihari/schemas/analyzer.rb +1 -0
  37. data/lib/mihari/version.rb +1 -1
  38. data/lib/mihari/web/public/assets/{index-0a5a47bf.js → index-a92abd57.js} +1 -1
  39. data/lib/mihari/web/public/index.html +1 -1
  40. data/lib/mihari/web/public/redoc-static.html +400 -400
  41. data/mihari.gemspec +5 -4
  42. data/requirements.txt +1 -1
  43. metadata +26 -12
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2734178f12752f0a1e966694b19f9e92f624ef4c1f6151a52ad273534af66878
4
- data.tar.gz: fae4bee7d76464ea8dde6ad6641c048351d1e8b1781df91424c5b9006bdae543
3
+ metadata.gz: 1075febacca36de11c1285b0c08ef54fb41d3c0c7fe3e3df51b2dff28c597fe4
4
+ data.tar.gz: 56475aef95d5dd5fda32ef7a8633fc2d064219abdb05706d849f15f998c41db2
5
5
  SHA512:
6
- metadata.gz: ea57655f55af23df3176888e2bf3702e84a6e2fdd880859dd0bf51f373fab11632c2a99d92f34cf92e82152ac730ca3b15aa7c6a2a556d875beb2f9a8e31a99a
7
- data.tar.gz: 32a1f0e2b6ed965a6c684cbcb6c6bfe8b51ba86d61903143805426af240309a73201a0905b9b992f9e11d3e23b77a8c8edf7caf36d903679e78a8498989e92d5
6
+ metadata.gz: e18c315a2389a836aff99fd1da1c50749e83d9272a79c1215d22cd649758c3fd6d74dfabc1445d2c1127b18ea100abebd21326766bc2da79cd5c77a9ba27da3d
7
+ data.tar.gz: 696b2c8d8e045f647f33a25dceec868676f2e04a8a38cc1e55cfe357356e5a5282f6b42085c2a8c4277d7309e47d8724d86c05d63ec8baf8937bd65dc8cf97cd
data/.gitignore CHANGED
@@ -57,6 +57,8 @@ Gemfile.lock
57
57
 
58
58
  # SQLite
59
59
  *.db
60
+ *.db-shm
61
+ *.db-wal
60
62
 
61
63
  # Config
62
64
  mihari.yml
data/.rubocop.yml CHANGED
@@ -10,3 +10,5 @@ Metrics/ClassLength:
10
10
  Enabled: false
11
11
  Metrics/MethodLength:
12
12
  Max: 20
13
+ require:
14
+ - rubocop-rspec
@@ -26,6 +26,7 @@ All the analyzers can have optional `options`.
26
26
  analyzer: ...
27
27
  query: ...
28
28
  options:
29
+ timeout: ...
29
30
  interval: ...
30
31
  pagination_limit: ...
31
32
  retry_times: ...
@@ -33,6 +34,10 @@ options:
33
34
  ignore_error: ...
34
35
  ```
35
36
 
37
+ ### Timeout
38
+
39
+ `timeout` is an HTTP timeout in seconds. Optional.
40
+
36
41
  ### Interval
37
42
 
38
43
  `interval` is an interval in seconds between pagination. (If an analyzer does pagination). Optional.