yaralyzer 0.9.1.1__py3-none-any.whl → 0.9.3__py3-none-any.whl

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.

Potentially problematic release.


This version of yaralyzer might be problematic. Click here for more details.

CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # NEXT RELEASE
2
+
3
+ ### 0.9.3
4
+ * Lock `yara-python` at 4.2.3 bc 4.3.x causes problems
5
+
6
+ ### 0.9.2
2
7
  * Fix PyPi screenshots
8
+ * Raise better error message if yara rules file doesn't exist
3
9
 
4
10
  ### 0.9.1
5
11
  * Fix PyPi screenshots
@@ -107,5 +107,5 @@ def _empty_chardet_results_table():
107
107
  collapse_padding=True)
108
108
 
109
109
  table.columns[0].justify = 'right'
110
- table.columns
110
+ table.columns # TODO: ???
111
111
  return table
yaralyzer/yaralyzer.py CHANGED
@@ -91,6 +91,10 @@ class Yaralyzer:
91
91
  if not isinstance(yara_rules_files, list):
92
92
  raise TypeError(f"{yara_rules_files} is not a list")
93
93
 
94
+ for file in yara_rules_files:
95
+ if not path.exists(file):
96
+ raise ValueError(f"'{file}' is not a valid yara rules file (it doesn't exist)")
97
+
94
98
  filepaths_arg = {path.basename(file): file for file in yara_rules_files}
95
99
  yara_rules = yara.compile(filepaths=filepaths_arg)
96
100
  yara_rules_label = comma_join(yara_rules_files, func=path.basename)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: yaralyzer
3
- Version: 0.9.1.1
3
+ Version: 0.9.3
4
4
  Summary: Visualize and force decode YARA and regex matches found in a file or byte stream. With colors. Lots of colors.
5
5
  Home-page: https://github.com/michelcrypt4d4mus/yaralyzer
6
6
  License: GPL-3.0-or-later
@@ -19,7 +19,7 @@ Requires-Dist: chardet (>=5.0.0,<6.0.0)
19
19
  Requires-Dist: python-dotenv (>=0.21.0,<0.22.0)
20
20
  Requires-Dist: rich (>=12.5.1,<13.0.0)
21
21
  Requires-Dist: rich-argparse-plus (>=0.3.1,<0.4.0)
22
- Requires-Dist: yara-python (>=4.2.3,<5.0.0)
22
+ Requires-Dist: yara-python (>=4.2.3,<4.3.0)
23
23
  Project-URL: Documentation, https://github.com/michelcrypt4d4mus/yaralyzer
24
24
  Project-URL: Repository, https://github.com/michelcrypt4d4mus/yaralyzer
25
25
  Description-Content-Type: text/markdown
@@ -1,5 +1,5 @@
1
1
  .yaralyzer.example,sha256=Bp38fkp3rQ1_iFTkH51vlMQEGHE3x66rzwHQGCr-TS0,3610
2
- CHANGELOG.md,sha256=XAKEDvyQjWtnKDDDBr08JJqCDURtiwJTNiIDvTP8G30,1703
2
+ CHANGELOG.md,sha256=iZKRHngWDLs8Y0_1lCmQRlJ8pr1HofJQjXAeRm56e4s,1842
3
3
  yaralyzer/__init__.py,sha256=sU2sN1lizcfxUg4vghz_L3OUwi7sWXGvNinE_tJCa4Y,2616
4
4
  yaralyzer/bytes_match.py,sha256=HaFxaSqtzvBUFXwXxuBATxPM_krG7WY1oEMFXwE5KrY,7011
5
5
  yaralyzer/config.py,sha256=ucKA1F4NqiSUBRDbINYjm0QqbXJjLmELKdpgmyajghs,3693
@@ -7,7 +7,7 @@ yaralyzer/decoding/bytes_decoder.py,sha256=lulfZZhYmo9ky2KpqBW-c9hs5_uhlaz0gatdt
7
7
  yaralyzer/decoding/decoding_attempt.py,sha256=GAxMNOX7I_FsuzGWIelTWAECytLUJD-wpmUAuVe2bn0,7241
8
8
  yaralyzer/encoding_detection/character_encodings.py,sha256=zrOUgNXwrcXkeYSgdo09vsFPmNYsTkaHvq7YzzpbMsk,4395
9
9
  yaralyzer/encoding_detection/encoding_assessment.py,sha256=yMb1QSHS7JpNyL6jnZwt9Vq0Y6ueVStYZjMKyP6-f5A,2307
10
- yaralyzer/encoding_detection/encoding_detector.py,sha256=22sBZg2T1SPZc8GU5IZPzUG3wAiVMhT7oiQ04gDsuso,4661
10
+ yaralyzer/encoding_detection/encoding_detector.py,sha256=L7bOHVSrlgBBN4n0F_Wrre8bTv9gcYHxR65apngsxNM,4673
11
11
  yaralyzer/helpers/bytes_helper.py,sha256=nq2FOUVfZNO2XYAzFQ364cZ8mw70hxP9fyncQwUyR6w,6922
12
12
  yaralyzer/helpers/dict_helper.py,sha256=h8Sg01qCJRKfZ0bmTYhLP6X5OVxMg-7CZryJIjcbw8E,211
13
13
  yaralyzer/helpers/file_helper.py,sha256=ytPOE_Zel2fk7g39eCTTHG1W3SYgkEpro9tNrd2TDxU,1196
@@ -22,9 +22,9 @@ yaralyzer/util/argument_parser.py,sha256=88lBcM98wP2DLAKq31QwSUsQhGZlThjxK9KbXik
22
22
  yaralyzer/util/logging.py,sha256=3qtLnCFbN8L1nTSwIQvxfcM5jfhIRWTFZj9XGQk74kc,4326
23
23
  yaralyzer/yara/yara_match.py,sha256=ql3myrpr7uiUH93ZdUKdLOK3oxGmY2_hJyTVxw01hDk,4453
24
24
  yaralyzer/yara/yara_rule_builder.py,sha256=kAa3RBojM5GEaXDJjKZODAyx6yj34AlkOnQhACAFfZM,3021
25
- yaralyzer/yaralyzer.py,sha256=bERErYoWmu65jHtW9eT2NQNRmU4Dptp0n7jChB6vPp8,9007
26
- yaralyzer-0.9.1.1.dist-info/entry_points.txt,sha256=7LnLJrNTfql0vuctjRWwp_ZD-BYvtv9ENVipdjuT7XI,136
27
- yaralyzer-0.9.1.1.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
28
- yaralyzer-0.9.1.1.dist-info/WHEEL,sha256=vxFmldFsRN_Hx10GDvsdv1wroKq8r5Lzvjp6GZ4OO8c,88
29
- yaralyzer-0.9.1.1.dist-info/METADATA,sha256=LfZGjvXDZE9qNy_ymTJ6nHOilJxedAKJ4oE4R9V-KwU,10284
30
- yaralyzer-0.9.1.1.dist-info/RECORD,,
25
+ yaralyzer/yaralyzer.py,sha256=K0XIl0EL9Kv2WHubc1Px7Jvrn-Xm48fiVQ4nlUKfUTc,9180
26
+ yaralyzer-0.9.3.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
27
+ yaralyzer-0.9.3.dist-info/METADATA,sha256=FumYPXADt8uTVh9Ktp1EnnLHyVk2GDOPXeg4wxWuFn4,10282
28
+ yaralyzer-0.9.3.dist-info/WHEEL,sha256=7Z8_27uaHI_UZAc4Uox4PpBhQ9Y5_modZXWMxtUi4NU,88
29
+ yaralyzer-0.9.3.dist-info/entry_points.txt,sha256=7LnLJrNTfql0vuctjRWwp_ZD-BYvtv9ENVipdjuT7XI,136
30
+ yaralyzer-0.9.3.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 1.3.2
2
+ Generator: poetry-core 1.5.2
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any