Giter VIP home page Giter VIP logo

Comments (20)

chg-hou avatar chg-hou commented on August 17, 2024 4

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.

ppwwyyxx avatar ppwwyyxx commented on August 17, 2024

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.

dequn avatar dequn commented on August 17, 2024

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.

simbaforrest avatar simbaforrest commented on August 17, 2024

It seems that Wechat changed the KEY? I got exactly the same error...... Anyone recently tried with success?

from wechat-dump.

dequn avatar dequn commented on August 17, 2024

Yes, I also think so.

from wechat-dump.

simbaforrest avatar simbaforrest commented on August 17, 2024

Wow, so it means this is not working anymore? What can we do now? V_V @dequn

from wechat-dump.

dequn avatar dequn commented on August 17, 2024

Well, I don't know so far, how did they know the encrypting method , can we hack it ? @simbaforrest

from wechat-dump.

simbaforrest avatar simbaforrest commented on August 17, 2024

I have no idea how they found out the KEY...... @dequn

from wechat-dump.

ppwwyyxx avatar ppwwyyxx commented on August 17, 2024

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.

simbaforrest avatar simbaforrest commented on August 17, 2024

What phone do you use? Mine is a Nexus 6...... @ppwwyyxx

from wechat-dump.

ppwwyyxx avatar ppwwyyxx commented on August 17, 2024

I use XiaoMi Mi3W. There is a wiki page contributed by some users about what works and what doesn't.

from wechat-dump.

simbaforrest avatar simbaforrest commented on August 17, 2024

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.

ppwwyyxx avatar ppwwyyxx commented on August 17, 2024

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.

simbaforrest avatar simbaforrest commented on August 17, 2024

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.

ppwwyyxx avatar ppwwyyxx commented on August 17, 2024

@chg-hou That's a great tool! Thanks!

from wechat-dump.

marekyggdrasil avatar marekyggdrasil commented on August 17, 2024

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.

imWildCat avatar imWildCat commented on August 17, 2024

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.

prusswan avatar prusswan commented on August 17, 2024

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.

zhang-ray avatar zhang-ray commented on August 17, 2024

same as me.
I'm using WeChat 7.0.x.

from wechat-dump.

ppwwyyxx avatar ppwwyyxx commented on August 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.