Files
CNVD-2022-10270-LPE/README.md

32 lines
1.2 KiB
Markdown
Raw Normal View History

2022-02-24 10:24:02 +08:00
# CNVD-2022-10270-LPE
2022-02-24 10:34:31 +08:00
## 用法
2022-02-24 10:24:02 +08:00
基于向日葵RCE的本地权限提升无需指定端口
2022-02-24 10:34:31 +08:00
UsagesunloginLPE.exe Cmd [sunloginClientPath]
sunloginClientPath 选填若不是默认安装路径则需要指定默认安装路径C:\Program Files\Oray\SunLogin\SunloginClient
如 sunloginLPE.exe "whoami"
2022-02-24 10:37:25 +08:00
![20220224102724](https://user-images.githubusercontent.com/76553352/155446699-49771a7b-2411-46b2-822b-ef353e21ebbe.png)
2022-02-24 10:34:31 +08:00
如 sunloginLPE.exe "net user"
2022-02-24 10:37:25 +08:00
![image](https://user-images.githubusercontent.com/76553352/155446749-31153e71-5eed-4e15-8bd6-aaa7ef727bde.png)
2022-02-24 10:34:31 +08:00
若指定路径如 sunloginLPE.exe "whoami" "C:\Program Files\Oray\SunLogin\SunloginClient"
2022-02-24 10:37:25 +08:00
![image](https://user-images.githubusercontent.com/76553352/155446775-7e87cc1f-43ad-4f25-a559-391b6fb3afaf.png)
2022-02-24 10:34:31 +08:00
## 无需指定端口的原因
现在流传的方法是扫描40000-60000的端口但实际上跟着IDA分析过程会看到生成端口并绑定服务时有写入的动作最终写入的文件是
sunlogin_service.xxx.log指定端口如下
2022-02-24 10:37:25 +08:00
![image](https://user-images.githubusercontent.com/76553352/155446806-8e6b1547-c46b-4b81-a753-1591901030fe.png)
2022-02-24 10:34:31 +08:00
因此只需要在去读最新的日志文件并进行正则匹配,就不需要进行端口扫描。