提权
来源:互联网 发布:今日头条推荐算法 编辑:程序博客网 时间:2024/06/04 17:46
#include <windows.h>
const unsigned int SE_SHUTDOWN_PRIVILEGE = 0x13;
1
#define SE_DEBUG_PRIVILEGE 0x14 //DEBUG 权限
int main()
{
HMODULE hDll = ::LoadLibrary(L"ntdll.dll");
typedef int (* type_RtlAdjustPrivilege)(int, bool, bool, int*);
typedef int (* type_ZwShutdownSystem)(int);
type_RtlAdjustPrivilege RtlAdjustPrivilege = (type_RtlAdjustPrivilege)GetProcAddress(hDll, "RtlAdjustPrivilege");
type_ZwShutdownSystem ZwShutdownSystem = (type_ZwShutdownSystem)GetProcAddress(hDll, "ZwShutdownSystem");
int nEn = 0;
int nResult = RtlAdjustPrivilege(SE_SHUTDOWN_PRIVILEGE, true, true, &nEn);
if(nResult == 0x0c000007c)
{
nResult = RtlAdjustPrivilege(SE_SHUTDOWN_PRIVILEGE, true, false, &nEn);
}
nResult = ZwShutdownSystem(2);
FreeLibrary(hDll);
return 0;
}
- 提权
- 提权
- 提权
- 提权
- 提权
- 提权
- FTP提权
- ORACLE提权
- ubantu提权
- AdjustTokenPrivileges提权
- Linux 提权
- WEB提权
- RHEL提权
- Mysql提权
- Windows提权
- mysql提权
- Mysql_UDF提权
- VC提权
- 上拉、 下拉电阻的定义以及用法(转)
- 页面进度条
- EmuDebug支持断点(转)
- Log4Net使用指南
- 提交到新窗口submit-OR-window.open
- 提权
- 限制登录账户触发器
- 图书馆
- 同步、异步、长连接、短连接
- MYSQL主从复制或双机互备
- 承接管理系统开发
- 从无头单链表中删除节点
- BB之"Uncaught exception:net.rim.device.api...."错误的解决之道
- Release 的问题