[BUG] Restrict file name length for debug mode (-srd
flag) to avoid system file creation errors.
#5929
Labels
Type: Bug
Inconsistencies or issues which will cause an issue or problem for users or implementors.
Is there an existing issue for this?
Current Behavior
When the
-srd
flag is enabled, theWriteStoreDebugData
function generates file names based on the host and template ID. If these components are too verbose, the resulting file name can exceed the operating system's maximum file name length. This causes the debug files to fail to be created, resulting in a broken debug logging experience.Expected Behavior
File names should be truncated to a maximum length that adheres to operating system limitations, ensuring that debug files are always created successfully regardless of the length of the host or template ID.
Steps To Reproduce
-srd
flag during a scan.nuclei -t ./templates/ -list ./result/katana_result.txt -dast -dfp -im list -je ./result/nucleiGetFuzz.json -srd ./result/debug_nuclei -nc -stats -headless -fa high -debug
katana_result:
Relevant log output
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: