Comments (20)
I also suffered the same issue on Meizu MX4: correct imei and uid, but wrong password.
I wrote a tool to crack the passwrod.
https://github.com/chg-hou/EnMicroMsg.db-Password-Cracker
Although it takes days, at least we won't be blocked from our own messages.
@simbaforrest @dequn
from wechat-dump.
I'm not sure what's the problem. You may have a try on the old decryption tools (which uses a different way to decrypt):
cd legacy
ln -sv ../compatibility.sh ./
./decrypt-db.sh <path to EnMicroMsg.db> <imei> <uin>
from wechat-dump.
It seems like the KEY is error , I got the key and open EnMicroMsg.db in Navicat ,it also give the same error tip.While I'm sure the IMEI and WXUID is ok. Thanks.
from wechat-dump.
It seems that Wechat changed the KEY? I got exactly the same error...... Anyone recently tried with success?
from wechat-dump.
Yes, I also think so.
from wechat-dump.
Wow, so it means this is not working anymore? What can we do now? V_V @dequn
from wechat-dump.
Well, I don't know so far, how did they know the encrypting method , can we hack it ? @simbaforrest
from wechat-dump.
I have no idea how they found out the KEY...... @dequn
from wechat-dump.
The decryption still works today as I tested on my latest version of wechat. So it's unlikely that they changed the method.
It could be possible that encryption (how the key is generated, how the sqlcipher library is used) is different in different phones, and unfortunately I couldn't guess what's the problem.
from wechat-dump.
What phone do you use? Mine is a Nexus 6...... @ppwwyyxx
from wechat-dump.
I use XiaoMi Mi3W. There is a wiki page contributed by some users about what works and what doesn't.
from wechat-dump.
This sounds weird... I cannot think of a reason why they want to write codes that uses different encryption for different phones... Maybe something else was wrong...
from wechat-dump.
I agree with you, this is weird. But still, I can do nothing unless I have the phone or some data to look at.
Are you a fairly new wechat user or an old user? It could be possible that they use some new mechanism for new users but keep things for old users for compatibility.
from wechat-dump.
I totally understand, sorry for too many posts here...
I start using Wechat three or four years ago so I guess I am "old" enough, lol
from wechat-dump.
@chg-hou That's a great tool! Thanks!
from wechat-dump.
WeChat 6.5.4,
Xiaomi MI4LTE,
Same issue here, however I attempted it on backups extracted using Windows WeChat client backup tool.
from wechat-dump.
After the open-source of WCDB (https://github.com/Tencent/wcdb), can this library work?
.db
could not be sqlite anymore
I have same issue which cannot decrypt.
➜ wd git:(master) ✗ ./decrypt-db.py EnMicroMsg.db [hidden] [hidden]
decrypted.db already exists. Remove? (y/n) y
KEY: [hidden]
Decrypt and dump database to decrypted.db ...
Traceback (most recent call last):
File "./decrypt-db.py", line 53, in <module>
c.execute("ATTACH DATABASE '" + args.output + "' AS db KEY '';")
pysqlcipher.dbapi2.DatabaseError: file is encrypted or is not a database
from wechat-dump.
One potential pitfall: make sure the EnMicroMsg.db is dumped correctly. My phone is not rooted (but has su installed), so I need to copy the db file somewhere, fix the permissions, before trying to cat/pull it:
adb shell "su -c 'cp $MM_DIR/MicroMsg/$chooseUser/EnMicroMsg.db /data/local/tmp && chown shell.shell /data/local/tmp/EnMicroMsg.db'; cat /data/local/tmp/EnMicroMsg.db" > EnMicroMsg.db
If the file is not dumped correctly, there is no way to tell from the errors (it can never be decrypted).
from wechat-dump.
same as me.
I'm using WeChat 7.0.x.
from wechat-dump.
I rewrote the decryption logic by improving pysqlcipher usage and adding more ways to obtain IMEI and UIN. It may increase the chance of success.
However, things might be different on everyone's phone and it's hard to help with other people's phones. More generally, other ways to increase chance of success are listed in #64 and any help to implement them would be appreciated.
from wechat-dump.
Related Issues (20)
- imei not found in CompatibleInfo.cfg HOT 1
- Negative uin HOT 4
- SQLiteManager works, wechat-dump does not HOT 3
- <moudle name="QQ"> <path key="QQ_Cache"> <item>/Tencent/MobileQQ/iar</item> <item>/Tencent/MobileQQ/.signaturetemplate</item>
- <path key="Wechat_Chat_Image"> <item>/Tencent/MicroMsg/*/image2</item> <item>/Tencent/MicroMsg/*/video</item>
- Python 3.9 support? HOT 1
- TypeError: can't concat JavaInt to bytes HOT 4
- Changes in directory structure? (i.e. no sfs/avatar.index) HOT 1
- No module named 'pysqlcipher3' HOT 1
- Possible decrypt compatibility problem HOT 4
- decrypt-db.py fails when cipher_version contains non-digit strings HOT 1
- https://github.com/defunkt/gist/issues/342#issue-1009601324
- Request for a new emoji.cache update
- decrypt-db.py:wechat] An unexpected error occurred.invalid literal for int() with base 10: '0 community' HOT 2
- \荣耀Play6T\内部存储\tencent\MicroMsg 找到文件夹e7e64e30d075d1bb11ee3c74346038c9 打开里面,没看到EnMicroMsg.db HOT 1
- Windows 10 dump-html successfully !!! HOT 3
- pip install pysqlcipher3 false HOT 3
- WeChat 8 ? HOT 12
- How to dump chat groups without display name? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wechat-dump.