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