-
-
Notifications
You must be signed in to change notification settings - Fork 243
Implement getMetadata
for remaining Passive scripts
#455
New issue
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
Conversation
passive/SQL injection detection.js
Outdated
let comm; | ||
while ((comm = sqlImpl.regex.exec(body))) { | ||
found.push(comm[0]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did this come from one of the comment scripts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If so, think it's worth renaming more meaningfully?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I combined all the individual checks into a single loop. Do you mean renaming the found
variable? Maybe foundSqlErrors
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry I meant the “comm” array
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ugh I didn't realize how many times this had been copied. Anyway thanks for fixing this one. It seems that people have repeated use of comm[] all over the place 😉
a14a25f
to
1718237
Compare
Update the following scripts to implement the `getMetadata()` function: - passive/Server Header Disclosure.js - passive/SQL injection detection.js - passive/Telerik Using Poor Crypto.js - passive/Upload form discovery.js - passive/X-Powered-By_header_checker.js Update evidence / otherInfo fields for: - passive/clacks.js - passive/CookieHTTPOnly.js Don't add "Other instances:" or "Other values:" to otherInfo if there are none. Signed-off-by: ricekot <[email protected]>
1718237
to
027f938
Compare
Thank you! |
Update the following scripts to implement the
getMetadata()
function:Also update evidence / otherInfo fields for:
Part of #440.