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
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.
`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