You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have some issue while testing a negative match with file protocol,
not sure if it's a bug or if it's me not understanding the feature.
I am trying to detect if a string is not present in a file.
Expected Behavior
If the string is in the file but negative matcher is set to true, the template should not match.
Steps To Reproduce
I am using the run command: nuclei -t check-username.yaml --target users.txt
Output: [check-username] [file] [info] users.txt
Test:
Is john not in the user list ?
Expected result:
Wrong, the template should not match if john is in the user list.
Please note, if I am checking for another user not in the list, negative matching is working as expected.
Relevant log output
No response
Environment
OS:
Nuclei: v3.3.5
Go:
Anything else?
No response
The text was updated successfully, but these errors were encountered:
dmaciejak
added
the
Type: Bug
Inconsistencies or issues which will cause an issue or problem for users or implementors.
label
Oct 25, 2024
Is there an existing issue for this?
Current Behavior
I have some issue while testing a negative match with file protocol,
not sure if it's a bug or if it's me not understanding the feature.
I am trying to detect if a string is not present in a file.
Expected Behavior
If the string is in the file but negative matcher is set to true, the template should not match.
Steps To Reproduce
I am using the run command:
nuclei -t check-username.yaml --target users.txt
with those test cases:
Test case 1:
Output:
[check-username] [file] [info] users.txt
Test:
Is john in the user list ?
Expected result:
Correct, john is in the user list.
Test case 2:
Output:
[check-username] [file] [info] users.txt
Test:
Is john not in the user list ?
Expected result:
Wrong, the template should not match if john is in the user list.
Please note, if I am checking for another user not in the list, negative matching is working as expected.
Relevant log output
No response
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: