Skip to content

Commit c2bd358

Browse files
authored
Merge pull request #365 from 13ph03nix/nuclei-issue-3055-protocol-name
fix: Updated protocol attribute name (requests=> http & network => tcp)
2 parents 9a0b990 + 2e40a31 commit c2bd358

File tree

6 files changed

+18
-4
lines changed

6 files changed

+18
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# version 2.0.4
2+
----------------
3+
* Updated protocol names that are compatible with Nuclei v2.9.1
4+
15
# version 2.0.3
26
----------------
37
* optimized URL protocol correction #356, thanks @chenjiewei123

manpages/poc-console.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ is maintained at:
3131
.I https://pocsuite.org
3232
.PP
3333
.SH VERSION
34-
This manual page documents pocsuite3 version 2.0.3
34+
This manual page documents pocsuite3 version 2.0.4
3535
.SH AUTHOR
3636
.br
3737
(c) 2014-present by Knownsec 404 Team

manpages/pocsuite.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ is maintained at:
289289
.I https://pocsuite.org
290290
.PP
291291
.SH VERSION
292-
This manual page documents pocsuite3 version 2.0.3
292+
This manual page documents pocsuite3 version 2.0.4
293293
.SH AUTHOR
294294
.br
295295
(c) 2014-present by Knownsec 404 Team

pocsuite3/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__title__ = 'pocsuite3'
2-
__version__ = '2.0.3'
2+
__version__ = '2.0.4'
33
__author__ = 'Knownsec 404 Team'
44
__author_email__ = '[email protected]'
55
__license__ = 'GPLv2'

pocsuite3/lib/yaml/nuclei/__init__.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,16 @@ def __init__(self, template, target=''):
7171
except ValueError:
7272
pass
7373
self.json_template = yaml.safe_load(expand_preprocessors(self.yaml_template))
74+
75+
# Breaking Changes in nuclei v2.9.1, Updated protocol attribute name (requests=> http & network => tcp)
76+
# in templates, Templates with the use of requests and network will still work but will be deprecated
77+
# completely in the future.
78+
79+
if 'http' in self.json_template:
80+
self.json_template['requests'] = self.json_template['http']
81+
if 'tcp' in self.json_template:
82+
self.json_template['network'] = self.json_template['tcp']
83+
7484
self.template = dacite.from_dict(
7585
Template, hyphen_to_underscore(self.json_template),
7686
config=dacite.Config(cast=[Severify, ExtractorType, MatcherType, HTTPMethod, AttackType, NetworkInputType]))

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def find_packages(where='.'):
2121

2222
setup(
2323
name='pocsuite3',
24-
version='2.0.3',
24+
version='2.0.4',
2525
url='https://pocsuite.org',
2626
description='Open-sourced remote vulnerability testing framework.',
2727
long_description=long_description,

0 commit comments

Comments
 (0)