maco 1.2.13__py3-none-any.whl → 1.2.15__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.
- demo_extractors/complex/complex.py +12 -0
- demo_extractors/complex/complex_utils.py +11 -2
- demo_extractors/elfy.py +12 -0
- demo_extractors/limit_other.py +15 -0
- demo_extractors/nothing.py +11 -3
- demo_extractors/shared.py +6 -0
- demo_extractors/terminator.py +12 -1
- maco/base_test.py +24 -7
- maco/cli.py +19 -5
- maco/collector.py +25 -9
- maco/exceptions.py +31 -1
- maco/extractor.py +7 -8
- maco/model/model.py +22 -0
- maco/utils.py +94 -16
- maco/yara.py +47 -5
- {maco-1.2.13.dist-info → maco-1.2.15.dist-info}/METADATA +3 -4
- maco-1.2.15.dist-info/RECORD +49 -0
- {maco-1.2.13.dist-info → maco-1.2.15.dist-info}/WHEEL +1 -1
- model_setup/maco/base_test.py +24 -7
- model_setup/maco/cli.py +19 -5
- model_setup/maco/collector.py +25 -9
- model_setup/maco/exceptions.py +31 -1
- model_setup/maco/extractor.py +7 -8
- model_setup/maco/model/model.py +22 -0
- model_setup/maco/utils.py +94 -16
- model_setup/maco/yara.py +47 -5
- tests/extractors/basic.py +10 -2
- tests/extractors/basic_longer.py +9 -2
- tests/extractors/bob/bob.py +2 -0
- tests/extractors/import_rewriting/__init__.py +0 -0
- tests/extractors/import_rewriting/importer.py +10341 -0
- tests/extractors/test_basic.py +4 -0
- maco-1.2.13.dist-info/RECORD +0 -47
- {maco-1.2.13.dist-info → maco-1.2.15.dist-info}/entry_points.txt +0 -0
- {maco-1.2.13.dist-info → maco-1.2.15.dist-info/licenses}/LICENSE.md +0 -0
- {maco-1.2.13.dist-info → maco-1.2.15.dist-info}/top_level.txt +0 -0
tests/extractors/test_basic.py
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
"""Test basic extractors."""
|
|
2
|
+
|
|
1
3
|
import io
|
|
2
4
|
import os
|
|
3
5
|
|
|
@@ -11,6 +13,7 @@ class TestBasicLonger(base_test.BaseTest):
|
|
|
11
13
|
path = os.path.join(__file__, "..")
|
|
12
14
|
|
|
13
15
|
def test_run(self):
|
|
16
|
+
"""Test run."""
|
|
14
17
|
ret = self.extract(io.BytesIO(b"BasicLonger"))
|
|
15
18
|
self.assertEqual(ret["family"], "basic_longer")
|
|
16
19
|
|
|
@@ -22,5 +25,6 @@ class TestBasic(base_test.BaseTest):
|
|
|
22
25
|
path = os.path.join(__file__, "..")
|
|
23
26
|
|
|
24
27
|
def test_run(self):
|
|
28
|
+
"""Test run."""
|
|
25
29
|
ret = self.extract(io.BytesIO(b"Basic"))
|
|
26
30
|
self.assertEqual(ret["family"], "basic")
|
maco-1.2.13.dist-info/RECORD
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
demo_extractors/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
demo_extractors/elfy.py,sha256=Jo_GKExCeFOKGENJnNM_9ONfJO7LQFucCNz0ryTAo9U,765
|
|
3
|
-
demo_extractors/limit_other.py,sha256=BWjeyOxB75kw4eRla5zvSzdcXtELOS8R6hc71rLPh1s,1295
|
|
4
|
-
demo_extractors/nothing.py,sha256=MNPlb0IsBjrlU5e438JlJ4DIKoBpBRAaYY3JhD3yHqk,601
|
|
5
|
-
demo_extractors/requirements.txt,sha256=nD7BPNv7YEPUr9MDcaKYNs2UfHtxvN8FOKKesgC_L5g,50
|
|
6
|
-
demo_extractors/shared.py,sha256=2P1cyuRbHDvM9IRt3UZnwdyhxx7OWqNC83xLyV8Y190,305
|
|
7
|
-
demo_extractors/terminator.py,sha256=G1AQHL1JGI8iMa4-H55nWwLzOlPicWH-2HiADw4aE9M,552
|
|
8
|
-
demo_extractors/complex/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
|
-
demo_extractors/complex/complex.py,sha256=tXrzj_zWIXbTOwj7Lezapk-qkrM-lfwcyjd5m-BYzdg,2322
|
|
10
|
-
demo_extractors/complex/complex_utils.py,sha256=aec8kJsYUrMPo-waihkVLt-0QpiOPkw7dDqfT9MNuHk,123
|
|
11
|
-
maco/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
12
|
-
maco/base_test.py,sha256=cjGLEy2c69wl9sjn74QFz7X-VxWOfdin4W8MvYsXc4Q,2718
|
|
13
|
-
maco/cli.py,sha256=K9gjsyGXcmSqBSkRkertVTH-Z4mwGFVk7TQxx8Y2mXo,8937
|
|
14
|
-
maco/collector.py,sha256=T1tGibakx-yfgHzrHC4mqY-G2Y-VhDz8Qx1KoXa7l0g,7752
|
|
15
|
-
maco/exceptions.py,sha256=aUbkX9CZfgp1aZFTEa98Uwge6MeQcQ3LbYkgNOwWaCg,214
|
|
16
|
-
maco/extractor.py,sha256=uGSGiCQ4jd8jFmfw2T99BGcY5iQJzXHcG_RoTIxClTE,2802
|
|
17
|
-
maco/utils.py,sha256=nkR2thG8g9wRFEQ31qJyEd0-ccc2S3kWt9xXj_dX2io,21891
|
|
18
|
-
maco/yara.py,sha256=8RVaGyeUWY5f8_wfQ25lDX1bcXsb_VoSja85ZC2SqGw,2913
|
|
19
|
-
maco/model/__init__.py,sha256=ULdyHx8R5D2ICHZo3VoCk1YTlewTok36TYIpwx__pNY,45
|
|
20
|
-
maco/model/model.py,sha256=4uY88WphbP3iu-L2WjuYwtgZCS_wNul_hr0bAVuTpvc,23740
|
|
21
|
-
model_setup/maco/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
22
|
-
model_setup/maco/base_test.py,sha256=cjGLEy2c69wl9sjn74QFz7X-VxWOfdin4W8MvYsXc4Q,2718
|
|
23
|
-
model_setup/maco/cli.py,sha256=K9gjsyGXcmSqBSkRkertVTH-Z4mwGFVk7TQxx8Y2mXo,8937
|
|
24
|
-
model_setup/maco/collector.py,sha256=T1tGibakx-yfgHzrHC4mqY-G2Y-VhDz8Qx1KoXa7l0g,7752
|
|
25
|
-
model_setup/maco/exceptions.py,sha256=aUbkX9CZfgp1aZFTEa98Uwge6MeQcQ3LbYkgNOwWaCg,214
|
|
26
|
-
model_setup/maco/extractor.py,sha256=uGSGiCQ4jd8jFmfw2T99BGcY5iQJzXHcG_RoTIxClTE,2802
|
|
27
|
-
model_setup/maco/utils.py,sha256=nkR2thG8g9wRFEQ31qJyEd0-ccc2S3kWt9xXj_dX2io,21891
|
|
28
|
-
model_setup/maco/yara.py,sha256=8RVaGyeUWY5f8_wfQ25lDX1bcXsb_VoSja85ZC2SqGw,2913
|
|
29
|
-
model_setup/maco/model/__init__.py,sha256=ULdyHx8R5D2ICHZo3VoCk1YTlewTok36TYIpwx__pNY,45
|
|
30
|
-
model_setup/maco/model/model.py,sha256=4uY88WphbP3iu-L2WjuYwtgZCS_wNul_hr0bAVuTpvc,23740
|
|
31
|
-
pipelines/publish.yaml,sha256=xt3WNU-5kIICJgKIiiE94M3dWjS3uEiun-n4OmIssK8,1471
|
|
32
|
-
pipelines/test.yaml,sha256=btJVI-R39UBeYosGu7TOpU6V9ogFW3FT3ROtWygQGQ0,1472
|
|
33
|
-
tests/data/example.txt.cart,sha256=j4ZdDnFNVq7lb-Qi4pY4evOXKQPKG-GSg-n-uEqPhV0,289
|
|
34
|
-
tests/data/trigger_complex.txt,sha256=uqnLSrnyDGCmXwuPmZ2s8vdhH0hJs8DxvyaW_tuYY24,64
|
|
35
|
-
tests/data/trigger_complex.txt.cart,sha256=Z7qF1Zi640O45Znkl9ooP2RhSLAEqY0NRf51d-q7utU,345
|
|
36
|
-
tests/extractors/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
37
|
-
tests/extractors/basic.py,sha256=r5eLCL6Ynr14nCBgtbLvUbm0NdrXizyc9c-4xBCNShU,828
|
|
38
|
-
tests/extractors/basic_longer.py,sha256=1ClU2QD-Y0TOl_loNFvEqIEpTR5TSVJ6zg9ZmC-ESJo,860
|
|
39
|
-
tests/extractors/test_basic.py,sha256=FLKekfSGM69HaiF7Vu_7D7KDXHZko-9hZkMO8_DoyYA,697
|
|
40
|
-
tests/extractors/bob/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
41
|
-
tests/extractors/bob/bob.py,sha256=G5aOoz58J0ZQK2_lA7HRxAzeLzBxssWxBTZcv1pSbi8,176
|
|
42
|
-
maco-1.2.13.dist-info/LICENSE.md,sha256=gMSjshPhXvV_F1qxmeNkKdBqGWkd__fEJf4glS504bM,1478
|
|
43
|
-
maco-1.2.13.dist-info/METADATA,sha256=dS7gZvwVa2RsgEcMR_FnG0R75sJLxNSbvpx0EQXy2Cc,15893
|
|
44
|
-
maco-1.2.13.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
45
|
-
maco-1.2.13.dist-info/entry_points.txt,sha256=TpcwG1gedIg8Y7a9ZOv8aQpuwEUftCefDrAjzeP-o6U,39
|
|
46
|
-
maco-1.2.13.dist-info/top_level.txt,sha256=iMRwuzmrHA3zSwiSeMIl6FWhzRpn_st-I4fAv-kw5_o,49
|
|
47
|
-
maco-1.2.13.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|