diff --git a/implants/lib/eldritch/src/pivot/port_scan_impl.rs b/implants/lib/eldritch/src/pivot/port_scan_impl.rs index 3f6a465e1..d5ca0b3fb 100644 --- a/implants/lib/eldritch/src/pivot/port_scan_impl.rs +++ b/implants/lib/eldritch/src/pivot/port_scan_impl.rs @@ -157,6 +157,9 @@ async fn tcp_connect_scan_socket( "Connection reset by peer (os error 54)" if cfg!(target_os = "macos") => { Ok((target_host, target_port, TCP.to_string(), CLOSED.to_string())) }, + "Host is unreachable (os error 113)" if cfg!(target_os = "linux") => { + Ok((target_host, target_port, TCP.to_string(), CLOSED.to_string())) + }, _ => { Err(anyhow::anyhow!("Unexpeceted error occured during scan:\n{}", err)) }, @@ -200,6 +203,9 @@ async fn udp_scan_socket( "Connection reset by peer (os error 54)" if cfg!(target_os = "macos") => { Ok((target_host, target_port, TCP.to_string(), CLOSED.to_string())) }, + "Host is unreachable (os error 113)" if cfg!(target_os = "linux") => { + Ok((target_host, target_port, TCP.to_string(), CLOSED.to_string())) + }, _ => { Err(anyhow::anyhow!("Unexpeceted error occured during scan:\n{}", err)) },