From 2d3824072dff2a76c987799daec19af46829ba28 Mon Sep 17 00:00:00 2001 From: BeigeBox <1066823+BeigeBox@users.noreply.github.com> Date: Sat, 7 Feb 2026 13:35:25 -0800 Subject: [PATCH] Added check if retcode was 201 when getting the login_response, and giving an error that says it's the pw --- installer/src/orbic_network.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/installer/src/orbic_network.rs b/installer/src/orbic_network.rs index 44d4d26..840c924 100644 --- a/installer/src/orbic_network.rs +++ b/installer/src/orbic_network.rs @@ -97,7 +97,10 @@ async fn login_and_exploit(admin_ip: &str, username: &str, password: &str) -> Re .context("Failed to parse login response")?; if login_result.retcode != 0 { - bail!("Login failed with retcode: {}", login_result.retcode); + match login_result.retcode { + 201 => bail!("Login failed: incorrect password"), + code => bail!("Login failed with retcode: {}", code), + } } // Step 4: Exploit using authenticated session