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