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