HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\UserAssist

前不久刚出的。
简单明了的办法就是直接运行后删除自身。

另一种:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\UserAssist
运行过的程序记录。
就像pchunter你放那没事,运行有卸载驱动关闭pchunter,上游戏BE还是会弹提示。
so 想到应该是获取刚运行后的文件。
以下是代码 很丑

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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
CHAR GetROT13Key(CHAR uKey)
{
CHAR pRet = uKey;
if (uKey >= 'a' && uKey <= 'm')
{
pRet += 13;
}
else if (uKey >= 'n' && uKey <= 'z')
{
pRet -= 13;
}
else if (uKey >= 'A' && uKey <= 'M')
{
pRet += 13;
}
else if (uKey >= 'N' && uKey <= 'Z')
{
pRet -= 13;
}
return pRet;
}
VOID DecryptionKey(CHAR* pKeyData, INT inLen)
{
if ((NULL == pKeyData) || (0 == inLen))
{
return;
}
for (INT i = 0; i < inLen; i++)
{
pKeyData[i] = GetROT13Key(pKeyData[i]);
}
}
void cRunLog::test()
{
CRegKey Key;
CString KeyPath = _T("Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\UserAssist");
if (Key.Open(HKEY_CURRENT_USER, KeyPath) == ERROR_SUCCESS)
{
char subKeyName[MAX_PATH];
DWORD dwLength = MAX_PATH;
for (DWORD i = 0; Key.EnumKey(i, subKeyName, &dwLength) != ERROR_NO_MORE_ITEMS; dwLength = MAX_PATH, i++)
{
printf(subKeyName);
CRegKey Key1;
char subKeyName1[MAX_PATH];
if (Key1.Open(HKEY_CURRENT_USER, KeyPath + "\\" + subKeyName) == ERROR_SUCCESS)
{
for (DWORD ii = 0; Key1.EnumKey(ii, subKeyName1, &dwLength) != ERROR_NO_MORE_ITEMS; dwLength = MAX_PATH, ii++)
{
printf(subKeyName1);
CRegKey Key2;
char subKeyName2[MAX_PATH];
if (Key2.Open(HKEY_CURRENT_USER, KeyPath + "\\" + subKeyName + "\\" + subKeyName1) == ERROR_SUCCESS)
{
dwLength = MAXBYTE;
DWORD dwType = NULL;
DWORD iii = 0;
DWORD rt = NULL;
while (!RegEnumValue(Key2.m_hKey, iii++, subKeyName2, &dwLength, NULL, &dwType, NULL, NULL))
{
DecryptionKey(subKeyName2, dwLength);
OutputDebugString(subKeyName2);
OutputDebugString("\n");
dwLength = MAXBYTE;
}
Key2.Close();
}
}
Key1.Close();
}
}
Key.Close();
}
}

内核版:
看雪链接

撂。。。

留言

2017-12-13

⬆︎TOP