Fix tapo source for some cameras #1918
This commit is contained in:
@@ -140,6 +140,12 @@ func (c *Client) newDectypter(res *http.Response, brand, username, password stri
|
|||||||
username = "admin"
|
username = "admin"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if strings.Contains(exchange, `username="none"`) {
|
||||||
|
// https://nvd.nist.gov/vuln/detail/CVE-2022-37255
|
||||||
|
username = "none"
|
||||||
|
password = "TPL075526460603"
|
||||||
|
}
|
||||||
|
|
||||||
key := md5.Sum([]byte(nonce + ":" + password))
|
key := md5.Sum([]byte(nonce + ":" + password))
|
||||||
iv := md5.Sum([]byte(username + ":" + nonce))
|
iv := md5.Sum([]byte(username + ":" + nonce))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user