Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Tokeii0 authored Apr 17, 2024
1 parent cfd78fd commit 5ab7b0f
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 3 deletions.
44 changes: 43 additions & 1 deletion config.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,46 @@
volatility2 = r'Tools\volatility2\vol.exe'
gimp = r'Tools\gimp\bin\gimp-console-2.10.exe'
profile = ['Win7SP1x64', 'Win7SP1x86', 'WinXPSP3x86', 'WinXPSP2x86', 'WinXPSP2x64']
pythonpath = r'mem_venv\Scripts\python.exe' # 你的python3位置
pythonpath = r'mem_venv\Scripts\python.exe'


#-------------------------未来功能----------------------------
# 应该为空的目录
suspicious_directories = [
r"\Users\Public\Music"
]


# 排除规则可以是完整的文件路径或者是正则表达式
excluded_patterns = [
r"\\Windows\\Fonts\\.*\.ttf$", # 排除Windows\Fonts目录下的所有.ttf文件
]

# 添加重点关注列表,file_name为文件名,excluded_directories为文件应该出现的目录,比如说explorer.exe应该在Windows目录下
watchlist_items = [
{
'file_name': r"cmd.exe",
'excluded_directories': [
r"\\Windows\\System32\\",
r"\\Windows\\SysWOW64\\"
]
},
{
'file_name': r"f.exe",
'excluded_directories': [
r"\\Windows\\System32\\",
r"\\Windows\\SysWOW64\\"
]
}
]

# 排除动作
action_items = [
{
'action': r"CRE",
'excluded_directories': [
r"\\Windows\\System32\\",
r"\\Windows\\SysWOW64\\"
]
}
]
5 changes: 3 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,11 +366,12 @@ def runvol2pro(self):
path = self.mem_path
except:
print(Fore.RED + '[×] 请先加载内存镜像文件!' + Style.RESET_ALL)

if os.path.exists(self.regpath):
cmd = [config.pythonpath, 'volpro.py', path, self.profile]
print(Fore.YELLOW + '[*] 正在调用volpro进行分析,使用profile:{self.profile}:' + cmd + Style.RESET_ALL)
else :
cmd = [pythonpath, 'volpro.py', path]
cmd = [config.pythonpath, 'volpro.py', path]
print(Fore.YELLOW + '[*] 正在调用volpro进行分析,使用profile:{self.profile}:' + cmd + Style.RESET_ALL)
try:
print
Expand Down Expand Up @@ -733,4 +734,4 @@ def closeEvent(self, event):
if __name__ == '__main__':
app = QApplication(sys.argv)
lovelymem = Lovelymem()
sys.exit(app.exec())
sys.exit(app.exec())

0 comments on commit 5ab7b0f

Please sign in to comment.