{"record":{"id":"24e9970ffb8625a5","repo":"epi052/feroxbuster","slug":"could-not-find-any-live-targets-to-scan","errorCode":null,"errorMessage":"Could not find any live targets to scan","messagePattern":"Could not find any live targets to scan","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/main.rs","lineNumber":579,"sourceCode":"            let msg = format!(\"Couldn't start {} file handler\", config.output);\n            bail!(fmt_err(&msg));\n        }\n    }\n\n    // discard non-responsive targets\n    let live_targets = {\n        let test = heuristics::HeuristicTests::new(handles.clone());\n        let result = test.connectivity(&targets).await;\n        if let Err(err) = result {\n            clean_up(handles, tasks).await?;\n            bail!(fmt_err(&err.to_string()));\n        }\n        result?\n    };\n\n    if live_targets.is_empty() {\n        clean_up(handles, tasks).await?;\n        bail!(fmt_err(\"Could not find any live targets to scan\"));\n    }\n\n    // kick off a scan against any targets determined to be responsive\n    match scan(live_targets, handles.clone()).await {\n        Ok(_) => {}\n        Err(e) => {\n            clean_up(handles, tasks).await?;\n            bail!(fmt_err(&format!(\"Failed while scanning: {e}\")));\n        }\n    }\n\n    clean_up(handles, tasks).await?;\n\n    log::trace!(\"exit: wrapped_main\");\n    Ok(())\n}\n\n/// Single cleanup function that handles all the necessary drops/finishes etc required to gracefully","sourceCodeStart":561,"sourceCodeEnd":597,"githubUrl":"https://github.com/epi052/feroxbuster/blob/1f595dab5c76858d5a14fbc47dabf2563d729c62/src/main.rs#L561-L597","documentation":"After the connectivity heuristic filters targets, wrapped_main checks whether any live targets remain. An empty list means every configured target was non-responsive, so there is nothing to scan and the tool exits deliberately with this message.","triggerScenarios":"HeuristicTests::connectivity(&targets) returns Ok but with an empty live-target set - i.e. all targets were probed and none responded successfully.","commonSituations":"Scanning hosts that are offline or refuse the probe request, targets filtered out by proxy issues, targets that return 5xx/4xx to the probe, or --connectivity-test expectations differing from the target's behavior.","solutions":["Verify each target URL manually with curl to confirm it responds","Check whether a proxy or firewall is dropping the probe requests","Remove dead hosts from the target list / stdin input","Retry if the target was temporarily unavailable"],"exampleFix":"// before\nferoxbuster -u https://dead-host.example\n// after\ncurl -I https://dead-host.example   # confirm 200/3xx/4xx response\nferoxbuster -u https://live-host.example","handlingStrategy":"validation","validationCode":"for h in $TARGETS; do curl -sk -o /dev/null --max-time 5 \"$h\" || echo \"dead: $h\"; done","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Sanitize target lists for dead hosts before scanning","Confirm the target answers HTTP probes, not just ping","Watch for proxies/firewalls silently dropping probes"],"tags":["network","connectivity","no-targets"],"backgroundTag":"empty-result-set","analyzedSha":"1f595dab5c76858d5a14fbc47dabf2563d729c62","analyzedAt":"2026-09-13T19:33:06.208Z","contentChangedAt":"2026-09-13T19:33:06.208Z","schemaVersion":2},"datasetVersion":"2026-09-16T09:17:16.951Z"}