注册表里没有FileSavePath项
wjw465150 opened this issue · 21 comments
"HKEY_CURRENT_USER\Software\Tencent\WeChat"下找不到FileSavePath项,所以读出来是空!
你运行的哪个文件
那你的这个文件夹是在Documents
下面吗
应该就是在系统缺省文档目录下的子目录下
你应该从系统配置里取出实际的"文档"文件夹路径!
你说的这个系统配置指的是哪里。
就是调用系统API来获取"文档"的实际目录
这样啊,我修改一下。
我修改了一下,你下载代码,运行一下试试?
看更改的代码,应该解决了.我这里只能执行exe文件.
还有一些问题需要解决,等我解决了一块发布exe吧
好的,多谢!
刚才测试运行发现还是取不到,你从HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
注册表里取到的值还是系统缺省的,不是用户自定义的.
实际在HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
这个注册表里.
我修改后测试,是OK了!
我新提交了一个,重新试试看看,能不能执行
还是出错:
[-] 目录不存在
Traceback (most recent call last):
File "\?\C:\WJW_D\Python\Python38\Scripts\wxdump-script.py", line 33, in
sys.exit(load_entry_point('pywxdump==2.2.17', 'console_scripts', 'wxdump')())
File "c:\WJW_D\Python\Python38\lib\site-packages\pywxdump-2.2.17-py3.8.egg\pywxdump\command.py", line 392, in console_run
modes[args.mode].run(args)
File "c:\WJW_D\Python\Python38\lib\site-packages\pywxdump-2.2.17-py3.8.egg\pywxdump\command.py", line 241, in run
wxdbpaths = [path for user_dir in WxDbPath.values() for paths in user_dir.values() for path in paths]
AttributeError: 'str' object has no attribute 'values'
我新增加了报错信息。你运行一下看看具体是什么报错
你试试这个
可以了,也能web访问了!应该就是document路径引起的问题!
但是看见解密失败.txt
文件里还是有一些解密错误日志:
[-] Key Error! (key:'XXXXXXXX'; db_path:'WeChat Files\wxid_XXXX\Applet\globalkvstorage.db'; out_path:'PyWxDump-2.2.17\decrypted\wxid_XXXX\Applet\de_globalkvstorage.db' )
[-] Key Error! (key:'XXXXXXXX'; db_path:'WeChat Files\wxid_XXXX\Applet\global\kvstorage.db'; out_path:'PyWxDump-2.2.17\decrypted\wxid_XXXX\Applet\global\de_kvstorage.db' )
[-] Key Error! (key:'XXXXXXXX'; db_path:'WeChat Files\wxid_XXXX\Applet\wx13a74d0d3ab0942e\usrkvstorage0.db'; out_path:'PyWxDump-2.2.17\decrypted\wxid_XXXX\Applet\wx13a74d0d3ab0942e\de_usrkvstorage0.db' )
[-] Key Error! (key:'XXXXXXXX'; db_path:'WeChat Files\wxid_XXXX\Applet\wx13a74d0d3ab0942e\usrkvstorage1.db'; out_path:'PyWxDump-2.2.17\decrypted\wxid_XXXX\Applet\wx13a74d0d3ab0942e\de_usrkvstorage1.db' )
[-] Key Error! (key:'XXXXXXXX'; db_path:'WeChat Files\wxid_XXXX\Applet\wx395200814fcd7599\usrkvstorage0.db'; out_path:'PyWxDump-2.2.17\decrypted\wxid_XXXX\Applet\wx395200814fcd7599\de_usrkvstorage0.db' )
[-] Key Error! (key:'XXXXXXXX'; db_path:'WeChat Files\wxid_XXXX\Applet\wx395200814fcd7599\usrkvstorage1.db'; out_path:'PyWxDump-2.2.17\decrypted\wxid_XXXX\Applet\wx395200814fcd7599\de_usrkvstorage1.db' )
[-] Key Error! (key:'XXXXXXXX'; db_path:'WeChat Files\wxid_XXXX\Applet\wx94e37988531c8ab8\usrkvstorage0.db'; out_path:'PyWxDump-2.2.17\decrypted\wxid_XXXX\Applet\wx94e37988531c8ab8\de_usrkvstorage0.db' )
[-] Key Error! (key:'XXXXXXXX'; db_path:'WeChat Files\wxid_XXXX\Applet\wx94e37988531c8ab8\usrkvstorage1.db'; out_path:'PyWxDump-2.2.17\decrypted\wxid_XXXX\Applet\wx94e37988531c8ab8\de_usrkvstorage1.db' )
[-] Key Error! (key:'XXXXXXXX'; db_path:'WeChat Files\wxid_XXXX\Applet\wxa28c31d4ff7ae869\usrkvstorage0.db'; out_path:'PyWxDump-2.2.17\decrypted\wxid_XXXX\Applet\wxa28c31d4ff7ae869\de_usrkvstorage0.db' )
[-] Key Error! (key:'XXXXXXXX'; db_path:'WeChat Files\wxid_XXXX\Applet\wxa28c31d4ff7ae869\usrkvstorage1.db'; out_path:'PyWxDump-2.2.17\decrypted\wxid_XXXX\Applet\wxa28c31d4ff7ae869\de_usrkvstorage1.db' )
[-] Key Error! (key:'XXXXXXXX'; db_path:'WeChat Files\wxid_XXXX\Applet\wxbebb3cdd9b331046\usrkvstorage0.db'; out_path:'PyWxDump-2.2.17\decrypted\wxid_XXXX\Applet\wxbebb3cdd9b331046\de_usrkvstorage0.db' )
[-] Key Error! (key:'XXXXXXXX'; db_path:'WeChat Files\wxid_XXXX\Applet\wxbebb3cdd9b331046\usrkvstorage1.db'; out_path:'PyWxDump-2.2.17\decrypted\wxid_XXXX\Applet\wxbebb3cdd9b331046\de_usrkvstorage1.db' )
[-] Key Error! (key:'XXXXXXXX'; db_path:'WeChat Files\wxid_XXXX\Applet\wxfb441022c6086310\usrkvstorage0.db'; out_path:'PyWxDump-2.2.17\decrypted\wxid_XXXX\Applet\wxfb441022c6086310\de_usrkvstorage0.db' )
[-] Key Error! (key:'XXXXXXXX'; db_path:'WeChat Files\wxid_XXXX\Applet\wxfb441022c6086310\usrkvstorage1.db'; out_path:'PyWxDump-2.2.17\decrypted\wxid_XXXX\Applet\wxfb441022c6086310\de_usrkvstorage1.db' )
[-] Key Error! (key:'XXXXXXXX'; db_path:'WeChat Files\wxid_XXXX\Applet\wxfe0e405895cafdf9\usrkvstorage0.db'; out_path:'PyWxDump-2.2.17\decrypted\wxid_XXXX\Applet\wxfe0e405895cafdf9\de_usrkvstorage0.db' )
[-] Key Error! (key:'XXXXXXXX'; db_path:'WeChat Files\wxid_XXXX\Applet\wxfe0e405895cafdf9\usrkvstorage1.db'; out_path:'PyWxDump-2.2.17\decrypted\wxid_XXXX\Applet\wxfe0e405895cafdf9\de_usrkvstorage1.db' )
[-] Key Error! (key:'XXXXXXXX'; db_path:'WeChat Files\wxid_XXXX\Msg\xInfo.db'; out_path:'PyWxDump-2.2.17\decrypted\wxid_XXXX\Msg\de_xInfo.db' )
你看看这个key,以及你的数据库是不是匹配的。(因为用的暴力匹配,所以会解密微信文件夹里的所有数据库,包括其他微信的数据库,但是因为key错误,所以会有解密失败的)
明白了,多谢!