Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions implants/lib/eldritch/src/pivot/port_scan_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
},
Expand Down Expand Up @@ -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))
},
Expand Down
Loading