This PR implements honeypot detection to identify and skip hosts that return an excessive number of template matches. This is particularly useful for avoiding noise from hosts (e.g., on Shodan) that are configured to “match” every signature to fool scanners.
pkg/protocols/common/honeypotcache to manage unique match tracking using an LRU cache.MaxHostMatch (default 30) to global options.NoHoneypot flag to disable the feature.pkg/core/executors.go to check the honeypot status before executing templates.-max-host-match / -mhm to set the threshold.-no-honeypot / -nhp to disable detection.lib/sdk.go and lib/sdk_private.go)../nuclei -target <host> -t <templates_dir> -mhm 2
/claim #6403
closes: #6403
Supreme Labs
@supreme2580
ProjectDiscovery
@projectdiscovery