mihari 5.4.4 → 5.4.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -25
  3. data/docs/alternatives.md +5 -0
  4. data/docs/analyzers/binaryedge.md +26 -0
  5. data/docs/analyzers/censys.md +31 -0
  6. data/docs/analyzers/circl.md +37 -0
  7. data/docs/analyzers/crtsh.md +26 -0
  8. data/docs/analyzers/dnstwister.md +25 -0
  9. data/docs/analyzers/feed.md +73 -0
  10. data/docs/analyzers/greynoise.md +26 -0
  11. data/docs/analyzers/hunterhow.md +33 -0
  12. data/docs/analyzers/index.md +79 -0
  13. data/docs/analyzers/onyphe.md +26 -0
  14. data/docs/analyzers/otx.md +28 -0
  15. data/docs/analyzers/passivetotal.md +48 -0
  16. data/docs/analyzers/pulsedive.md +28 -0
  17. data/docs/analyzers/securitytrails.md +37 -0
  18. data/docs/analyzers/shodan.md +26 -0
  19. data/docs/analyzers/urlscan.md +28 -0
  20. data/docs/analyzers/virustotal.md +39 -0
  21. data/docs/analyzers/virustotal_intelligence.md +29 -0
  22. data/docs/analyzers/zoomeye.md +33 -0
  23. data/docs/configuration.md +35 -0
  24. data/docs/emitters/database.md +22 -0
  25. data/docs/emitters/hive.md +26 -0
  26. data/docs/emitters/index.md +7 -0
  27. data/docs/emitters/misp.md +21 -0
  28. data/docs/emitters/slack.md +26 -0
  29. data/docs/emitters/webhook.md +63 -0
  30. data/docs/enrichers/google_public_dns.md +19 -0
  31. data/docs/enrichers/index.md +6 -0
  32. data/docs/enrichers/ipinfo.md +19 -0
  33. data/docs/enrichers/shodan.md +22 -0
  34. data/docs/enrichers/whois.md +17 -0
  35. data/docs/github_actions.md +43 -0
  36. data/docs/index.md +13 -0
  37. data/docs/installation.md +31 -0
  38. data/docs/requirements.md +20 -0
  39. data/docs/rule.md +171 -0
  40. data/docs/tags.md +3 -0
  41. data/docs/usage.md +100 -0
  42. data/frontend/package-lock.json +232 -229
  43. data/frontend/package.json +7 -7
  44. data/lib/mihari/analyzers/feed.rb +7 -7
  45. data/lib/mihari/version.rb +1 -1
  46. data/lib/mihari/web/public/assets/{index-ef33a6cd.js → index-0a5a47bf.js} +43 -41
  47. data/lib/mihari/web/public/index.html +1 -1
  48. data/mihari.gemspec +1 -1
  49. data/mkdocs.yml +35 -0
  50. data/requirements.txt +2 -0
  51. metadata +45 -4
@@ -20,7 +20,7 @@
20
20
  "@vueuse/core": "^10.4.1",
21
21
  "@vueuse/router": "^10.4.1",
22
22
  "ace-builds": "^1.28.0",
23
- "axios": "^1.5.0",
23
+ "axios": "^1.5.1",
24
24
  "bulma": "^0.9.4",
25
25
  "bulma-helpers": "^0.4.3",
26
26
  "dayjs": "^1.11.10",
@@ -38,13 +38,13 @@
38
38
  },
39
39
  "devDependencies": {
40
40
  "@redocly/cli": "1.2.0",
41
- "@rushstack/eslint-patch": "^1.4.0",
41
+ "@rushstack/eslint-patch": "^1.5.0",
42
42
  "@tsconfig/node20": "^20.1.2",
43
43
  "@types/jsdom": "^21.1.3",
44
- "@types/node": "^20.6.4",
44
+ "@types/node": "^20.7.2",
45
45
  "@types/url-parse": "^1.4.9",
46
- "@typescript-eslint/eslint-plugin": "^6.7.2",
47
- "@typescript-eslint/parser": "^6.7.2",
46
+ "@typescript-eslint/eslint-plugin": "^6.7.3",
47
+ "@typescript-eslint/parser": "^6.7.3",
48
48
  "@vitejs/plugin-vue": "^4.3.4",
49
49
  "@vue/eslint-config-prettier": "^8.0.0",
50
50
  "@vue/eslint-config-typescript": "^12.0.0",
@@ -61,7 +61,7 @@
61
61
  "prettier": "^3.0.3",
62
62
  "typescript": "~5.2.2",
63
63
  "vite": "^4.4.9",
64
- "vitest": "^0.34.5",
65
- "vue-tsc": "^1.8.13"
64
+ "vitest": "^0.34.6",
65
+ "vue-tsc": "^1.8.15"
66
66
  }
67
67
  }
@@ -15,7 +15,7 @@ module Mihari
15
15
  # @return [Hash, nil]
16
16
  attr_reader :params
17
17
 
18
- # @return [Hash, nil]
18
+ # @return [Hash]
19
19
  attr_reader :headers
20
20
 
21
21
  # @return [String]
@@ -31,17 +31,17 @@ module Mihari
31
31
  # @param [String] query
32
32
  # @param [Hash, nil] options
33
33
  # @param [String] method
34
- # @param [Hash] headers
35
- # @param [Hash] params
36
- # @param [Hash] json
37
- # @param [Hash] data
34
+ # @param [Hash, nil] headers
35
+ # @param [Hash, nil] params
36
+ # @param [Hash, nil] json
37
+ # @param [Hash, nil] data
38
38
  # @param [String] selector
39
39
  #
40
- def initialize(query, options: nil, method: "GET", headers: {}, params: {}, json: {}, data: {}, selector: "")
40
+ def initialize(query, options: nil, method: "GET", headers: nil, params: nil, json: nil, data: nil, selector: "")
41
41
  super(query, options: options)
42
42
 
43
43
  @method = method
44
- @headers = headers
44
+ @headers = headers || {}
45
45
  @params = params
46
46
  @json = json
47
47
  @data = data
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Mihari
4
- VERSION = "5.4.4"
4
+ VERSION = "5.4.6"
5
5
  end