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
- NumPy Unicode Error
- hex-rays
- ecma
- pytest
- Ransomware
- Rat
- ida pro
- malware
- debugging
- error fix
- MySQL
- x64
- idb2pat
- Analysis
- idapython
- TensorFlow
- Injection
- why error
- data distribution
- idapro
- commandline
- ida
- open office xml
- error
- Python
- svn update
- javascript
- h5py.File
- 포인터 매핑
- mock.patch
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