diff --git a/CHANGELOG.md b/CHANGELOG.md index 62abefd1..0d1da182 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# version 2.0.4 +---------------- +* Updated protocol names that are compatible with Nuclei v2.9.1 + # version 2.0.3 ---------------- * optimized URL protocol correction #356, thanks @chenjiewei123 diff --git a/manpages/poc-console.1 b/manpages/poc-console.1 index 18b729cf..550ef9e1 100644 --- a/manpages/poc-console.1 +++ b/manpages/poc-console.1 @@ -31,7 +31,7 @@ is maintained at: .I https://pocsuite.org .PP .SH VERSION -This manual page documents pocsuite3 version 2.0.3 +This manual page documents pocsuite3 version 2.0.4 .SH AUTHOR .br (c) 2014-present by Knownsec 404 Team diff --git a/manpages/pocsuite.1 b/manpages/pocsuite.1 index c62fe6ae..46347c29 100644 --- a/manpages/pocsuite.1 +++ b/manpages/pocsuite.1 @@ -289,7 +289,7 @@ is maintained at: .I https://pocsuite.org .PP .SH VERSION -This manual page documents pocsuite3 version 2.0.3 +This manual page documents pocsuite3 version 2.0.4 .SH AUTHOR .br (c) 2014-present by Knownsec 404 Team diff --git a/pocsuite3/__init__.py b/pocsuite3/__init__.py index ed9f0bc4..37de1cea 100644 --- a/pocsuite3/__init__.py +++ b/pocsuite3/__init__.py @@ -1,5 +1,5 @@ __title__ = 'pocsuite3' -__version__ = '2.0.3' +__version__ = '2.0.4' __author__ = 'Knownsec 404 Team' __author_email__ = '404-team@knownsec.com' __license__ = 'GPLv2' diff --git a/pocsuite3/lib/yaml/nuclei/__init__.py b/pocsuite3/lib/yaml/nuclei/__init__.py index 80edee20..c04ace88 100644 --- a/pocsuite3/lib/yaml/nuclei/__init__.py +++ b/pocsuite3/lib/yaml/nuclei/__init__.py @@ -71,6 +71,16 @@ def __init__(self, template, target=''): except ValueError: pass self.json_template = yaml.safe_load(expand_preprocessors(self.yaml_template)) + + # Breaking Changes in nuclei v2.9.1, Updated protocol attribute name (requests=> http & network => tcp) + # in templates, Templates with the use of requests and network will still work but will be deprecated + # completely in the future. + + if 'http' in self.json_template: + self.json_template['requests'] = self.json_template['http'] + if 'tcp' in self.json_template: + self.json_template['network'] = self.json_template['tcp'] + self.template = dacite.from_dict( Template, hyphen_to_underscore(self.json_template), config=dacite.Config(cast=[Severify, ExtractorType, MatcherType, HTTPMethod, AttackType, NetworkInputType])) diff --git a/setup.py b/setup.py index 1b52e482..d8afe8a4 100644 --- a/setup.py +++ b/setup.py @@ -21,7 +21,7 @@ def find_packages(where='.'): setup( name='pocsuite3', - version='2.0.3', + version='2.0.4', url='https://pocsuite.org', description='Open-sourced remote vulnerability testing framework.', long_description=long_description,