mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-05-22 15:54:46 -07:00
Fix broken installer on TP-Link M7350 v9
TP-Link v9 was inadvertently broken via https://github.com/EFForg/rayhunter/pull/390
This commit is contained in:
@@ -50,7 +50,7 @@ pub async fn start_telnet(admin_ip: &str) -> Result<bool, Error> {
|
|||||||
// in particular: https://www.yuque.com/docs/share/fca60ef9-e5a4-462a-a984-61def4c9b132
|
// in particular: https://www.yuque.com/docs/share/fca60ef9-e5a4-462a-a984-61def4c9b132
|
||||||
format!("http://{admin_ip}/cgi-bin/qcmap_web_cgi"),
|
format!("http://{admin_ip}/cgi-bin/qcmap_web_cgi"),
|
||||||
// TP-Link M7310 v1
|
// TP-Link M7310 v1
|
||||||
// (adaptation of M7350 exploit
|
// (adaptation of M7350 exploit)
|
||||||
format!("http://{admin_ip}/cgi-bin/web_cgi"),
|
format!("http://{admin_ip}/cgi-bin/web_cgi"),
|
||||||
] {
|
] {
|
||||||
let response = client.post(&endpoint)
|
let response = client.post(&endpoint)
|
||||||
@@ -62,7 +62,10 @@ pub async fn start_telnet(admin_ip: &str) -> Result<bool, Error> {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
let V3RootResponse { result } = response.error_for_status()?.json().await?;
|
let Ok(V3RootResponse { result }) = response.error_for_status()?.json().await else {
|
||||||
|
// On TP-Link M7350 v9, the endpoint /cgi-bin/web_cgi returns 200 OK without launching telnet, and without a response body.
|
||||||
|
continue;
|
||||||
|
};
|
||||||
|
|
||||||
if result != 0 {
|
if result != 0 {
|
||||||
anyhow::bail!("Bad result code when trying to root device: {result}");
|
anyhow::bail!("Bad result code when trying to root device: {result}");
|
||||||
|
|||||||
Reference in New Issue
Block a user