We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When using the code protocol, DSL responses are not functioning as expected.
status_code_1 == 200
status_code_2 == 200
However, when comparing the two status codes:
status_code_1 == status_code_2
And by removing the code protocol, works.
status_code_1 == status_code_2 should match if are equal, regardless if code is being used.
The following template should hit, but it doesn't.
id: test info: name: test author: hipotermia severity: high code: - engine: - py - python3 source: | print('/') http: - raw: - |+ GET / HTTP/1.1 Host: {{Hostname}} - |+ GET / HTTP/1.1 Host: {{Hostname}} matchers: - type: dsl dsl: - "status_code_1 == status_code_2"
No response
The text was updated successfully, but these errors were encountered:
I'll leave it here for notes:
code: - engine: - sh - bash source: id http: - raw: - | GET / HTTP/1.1 Host: {{Hostname}} - | GET / HTTP/1.1 Host: {{Hostname}} extractors: - type: dsl dsl: - 'concat("status_code_1: ", status_code_1)' - 'concat("status_code_2: ", status_code_2)'
http: - raw: - | GET / HTTP/1.1 Host: {{Hostname}} - | GET / HTTP/1.1 Host: {{Hostname}} extractors: - type: dsl dsl: - 'concat("status_code_1: ", status_code_1)' - 'concat("status_code_2: ", status_code_2)'
Output:
[issue-5748-b] [http] [info] http://scanme.sh ["status_code_1: 200"] [issue-5748-b] [http] [info] http://scanme.sh ["status_code_2: 200"] [issue-5748-c] [http] [info] http://scanme.sh ["status_code_1: 200"] [issue-5748-c] [http] [info] http://scanme.sh ["status_code_1: 200","status_code_2: 200"]
Sorry, something went wrong.
I'm going to be off for a few days, so I’m dropping this here as a note (for myself as well). I suspect that the underlying issue might be found here:
nuclei/pkg/tmplexec/multiproto/multi.go
Lines 119 to 120 in ff23949
This was introduced in #5426.
dwisiswant0
No branches or pull requests
Is there an existing issue for this?
Current Behavior
When using the code protocol, DSL responses are not functioning as expected.
status_code_1 == 200
evaluates to true.status_code_2 == 200
evaluates to true.However, when comparing the two status codes:
status_code_1 == status_code_2
does not match.And by removing the code protocol, works.
Expected Behavior
status_code_1 == status_code_2
should match if are equal, regardless if code is being used.Steps To Reproduce
The following template should hit, but it doesn't.
Relevant log output
No response
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: