Skip to content

Commit

Permalink
Merge pull request #365 from 13ph03nix/nuclei-issue-3055-protocol-name
Browse files Browse the repository at this point in the history
fix: Updated protocol attribute name (requests=> http & network => tcp)
  • Loading branch information
13ph03nix authored Apr 29, 2023
2 parents 9a0b990 + 2e40a31 commit c2bd358
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion manpages/poc-console.1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion manpages/pocsuite.1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pocsuite3/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
__title__ = 'pocsuite3'
__version__ = '2.0.3'
__version__ = '2.0.4'
__author__ = 'Knownsec 404 Team'
__author_email__ = '[email protected]'
__license__ = 'GPLv2'
Expand Down
10 changes: 10 additions & 0 deletions pocsuite3/lib/yaml/nuclei/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]))
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c2bd358

Please sign in to comment.