SubEnum icon indicating copy to clipboard operation
SubEnum copied to clipboard

Fix(subenum): Isolate temp files by domain in OUT function

Open yahyatoubali opened this issue 3 months ago • 0 comments

When processing a list of domains with the -l flag, the OUT function used a broad tmp-* glob to gather and clean up temporary result files. This caused an issue where results from previously processed domains were not cleaned up and were incorrectly included in the output for subsequent domains.

This commit fixes the bug by changing the glob in the OUT function to be domain-specific (tmp-*-"$domain"). This ensures that only the temporary files belonging to the currently processed domain are aggregated and deleted, preventing result contamination between domains.

yahyatoubali avatar Oct 07 '25 16:10 yahyatoubali