From cf2cd01f1861b66122debc3ffa77b9d52e864424 Mon Sep 17 00:00:00 2001 From: hulto <7121375+hulto@users.noreply.github.com> Date: Sat, 3 May 2025 14:59:20 +0000 Subject: [PATCH] Add host unreachable error --- implants/lib/eldritch/src/pivot/port_scan_impl.rs | 6 ++++++ 1 file changed, 6 insertions(+) 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)) },