Closed psrok1 closed 11 months ago
Right now, custom class extension like:
from karton.yaramatcher import YaraMatcher class CustomYaraMatcher(YaraMatcher): identity = 'karton.customyaramatcher' filters = [ *YaraMatcher.filters, {"type": "sample", "stage": "recognized"} ] def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) if __name__ == "__main__": CustomYaraMatcher.main()
doesn't work because main instantiates YaraMatcher class directly instead of using cls
cls
Right now, custom class extension like:
doesn't work because main instantiates YaraMatcher class directly instead of using
cls