Skip to content

error in Rule class constructor #3

@waqas-latif

Description

@waqas-latif

I cloned the git and started the r2a out of the box, but it gave me the error of constructor returning value on following command.

sudo python r2a.py -m "192.168.1.170" -e "192.168.120.240" -f ~/rule2alert/rules/blacklist.rules -w blacklist.pcap

`Traceback (most recent call last):
File "r2a.py", line 96, in main
r = Rule(snort_rule)
TypeError: init() should return None
Parser failed - skipping rule

Loaded 0 rules succesfully!`
I tried to fix the code but to no avail. It build rules now but produces malformed packets. Could you please fix the issue.

Best regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions