Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |
Tags
- mock.patch
- javascript
- h5py.File
- idapython
- why error
- ida
- Injection
- MySQL
- open office xml
- 포인터 매핑
- svn update
- malware
- commandline
- Rat
- Analysis
- data distribution
- pytest
- Ransomware
- error fix
- Python
- idb2pat
- ida pro
- NumPy Unicode Error
- debugging
- hex-rays
- idapro
- x64
- ecma
- TensorFlow
- error
Archives
- Today
- Total
13 Security Lab
토큰권한적용 AdjustTokenPrivileges 본문
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | int Adjust_Privilege_Func() { int v0; int v1; int v2; int v4; char v5; int v6; int v7; v0 = 0; v1 = GetCurrentProcess(0x20); if ( OpenProcessToken(v1, v2, &v7) ) { v4 = 1; if ( LookupPrivilegeValueW(0, L"SeDebugPrivilege", &v5) )// if Process has "SeDebugPrivilege" { v6 = 2; v0 = AdjustTokenPrivileges(v7, 0, &v4, 16, 0, 0);// Enable SeDebugPrivilege } CloseHandle(v7); } return v0; } | cs |
관련 글 : NT의 privilege와 AdjustTokenPrivileges함수에 대해서
Comments