未引用的服务路径
检查自动登录注册表项
检查是否始终安装提升的注册表项
检查可修改的自动运行
检查可劫持路径
从凭据管理器枚举凭据
查找当前的令牌权限
使用方法:
[03/20 00:51:06] beacon> privcheck
[03/20 00:51:06] [*] Priv Esc Check Bof by @merterpreter
[03/20 00:51:06] [*] Checking For Unquoted Service Paths..
[03/20 00:51:06] [*] Checking For Autologon Registry Keys..
[03/20 00:51:06] [*] Checking For Always Install Elevated Registry Keys..
[03/20 00:51:06] [*] Checking For Modifiable Autoruns..
[03/20 00:51:06] [*] Checking For Hijackable Paths..
[03/20 00:51:06] [*] Enumerating Credentials From Credential Manager..
[03/20 00:51:06] [*] Checking For Token Privileges..
[03/20 00:51:06] [+] host called home, sent: 10485 bytes
[03/20 00:51:06] [+] received output:
Unquoted Service Path Check Result: Vulnerable service path found: c:\program files (x86)\grasssoft\macro expert\MacroService.exe
只需加载cna文件并键入“privcheck”
如果你想自己编译,你可以用途:
x86_64-w64-mingw32-gcc -c cfile.c -o ofile.o
inline-execute /path/tokenprivileges.o