Skip to content

Commit 5ab7b0f

Browse files
authored
fix bug
1 parent cfd78fd commit 5ab7b0f

File tree

2 files changed

+46
-3
lines changed

2 files changed

+46
-3
lines changed

config.py

+43-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,46 @@
22
volatility2 = r'Tools\volatility2\vol.exe'
33
gimp = r'Tools\gimp\bin\gimp-console-2.10.exe'
44
profile = ['Win7SP1x64', 'Win7SP1x86', 'WinXPSP3x86', 'WinXPSP2x86', 'WinXPSP2x64']
5-
pythonpath = r'mem_venv\Scripts\python.exe' # 你的python3位置
5+
pythonpath = r'mem_venv\Scripts\python.exe'
6+
7+
8+
#-------------------------未来功能----------------------------
9+
# 应该为空的目录
10+
suspicious_directories = [
11+
r"\Users\Public\Music"
12+
]
13+
14+
15+
# 排除规则可以是完整的文件路径或者是正则表达式
16+
excluded_patterns = [
17+
r"\\Windows\\Fonts\\.*\.ttf$", # 排除Windows\Fonts目录下的所有.ttf文件
18+
]
19+
20+
# 添加重点关注列表,file_name为文件名,excluded_directories为文件应该出现的目录,比如说explorer.exe应该在Windows目录下
21+
watchlist_items = [
22+
{
23+
'file_name': r"cmd.exe",
24+
'excluded_directories': [
25+
r"\\Windows\\System32\\",
26+
r"\\Windows\\SysWOW64\\"
27+
]
28+
},
29+
{
30+
'file_name': r"f.exe",
31+
'excluded_directories': [
32+
r"\\Windows\\System32\\",
33+
r"\\Windows\\SysWOW64\\"
34+
]
35+
}
36+
]
37+
38+
# 排除动作
39+
action_items = [
40+
{
41+
'action': r"CRE",
42+
'excluded_directories': [
43+
r"\\Windows\\System32\\",
44+
r"\\Windows\\SysWOW64\\"
45+
]
46+
}
47+
]

main.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -366,11 +366,12 @@ def runvol2pro(self):
366366
path = self.mem_path
367367
except:
368368
print(Fore.RED + '[×] 请先加载内存镜像文件!' + Style.RESET_ALL)
369+
369370
if os.path.exists(self.regpath):
370371
cmd = [config.pythonpath, 'volpro.py', path, self.profile]
371372
print(Fore.YELLOW + '[*] 正在调用volpro进行分析,使用profile:{self.profile}:' + cmd + Style.RESET_ALL)
372373
else :
373-
cmd = [pythonpath, 'volpro.py', path]
374+
cmd = [config.pythonpath, 'volpro.py', path]
374375
print(Fore.YELLOW + '[*] 正在调用volpro进行分析,使用profile:{self.profile}:' + cmd + Style.RESET_ALL)
375376
try:
376377
print
@@ -733,4 +734,4 @@ def closeEvent(self, event):
733734
if __name__ == '__main__':
734735
app = QApplication(sys.argv)
735736
lovelymem = Lovelymem()
736-
sys.exit(app.exec())
737+
sys.exit(app.exec())

0 commit comments

Comments
 (0)