Skip to content
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

Add state field in XML 'script' node: an indicator of completion status of NSE script #2798

Open
yilangli opened this issue Mar 12, 2024 · 0 comments
Labels

Comments

@yilangli
Copy link

yilangli commented Mar 12, 2024

Hi community,

I have a Nmap feature idea that would like to share. Any thoughts or suggestions are greatly appreciated.

[Problem Statement]
There are cases when NSE scripts either don't run, abort by defined RULEs, or timeout. Without such indication from output, it's hard to find out the reason why the NSE script not being executed. It's impossible to quantify the results, understand impact, prioritize investigation, and drive resolution, especially when having batch scanning against a large number of endpoints.
 
[Proposal]: example of XML output
Alway keep the 'script' xml node in output if the NSE script requested and have the state field of NSE scripts in output. For example - adding state field in script node:
<script id="<NSE_SCRIPT_ID>" state="Completed/Timedout/Filtered by prerule/Filtered by hostrule/Filtered by portrule/Filtered by postrule/<OTHERS>" output="<EMPTY>/<NSE_OUTPUT>"/>

Please let me know your thoughts, Thank you.

@yilangli yilangli added the Nmap label Mar 12, 2024
@yilangli yilangli changed the title Add state field in XML 'script' node: an indicator of completion status of an NSE script Add state field in XML 'script' node: an indicator of completion status of NSE script Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant