Code Monkey home page Code Monkey logo

Comments (4)

sigalor avatar sigalor commented on August 24, 2024

More information is required to debug this issue, as I cannot reproduce it personally. It's always possible that the message decoder routine produces an object that has byte strings in it that aren't valid UTF-8. Generally, I tried to take care of that (because strings like this should be base64 encoded), but still.

First, I see that you're on Mac OS, but that shouldn't be an issue. Can you just comment out the line in whatsapp-web-backend.py causing the error, as it's just a log message anyway? Additionally, did you add the .encode('ascii') part behind it by yourself? At least it isn't part of the current source code.

from whatsapp-web-reveng.

UrbanSwati avatar UrbanSwati commented on August 24, 2024

Yes I added .encode('ascii'), the reason I got that exception was that I try to print out the object so I commented out printing the object, then I managed to get the data of the video but it turns out to be a thumbnail instead of the video itself in base64

from whatsapp-web-reveng.

sigalor avatar sigalor commented on August 24, 2024

You're right, this is just like the thumbnail image in #30.

The clientUrl property refers to an encrypted version of the image/video on the WhatsApp servers and mediaKey is probably quite important in the decryption process. The fileHash property's purpose is obvious then.

I have not yet investigated how to actually decrypt such a media file. Maybe the mediaKey needs to be combined with the general encKey and maybe AES is involved as well. Still, I don't know about this yet. Would you like to take a look at it and, when you've found the routine details, even add them to the readme documentation? I'd really appreciate that :)

from whatsapp-web-reveng.

UrbanSwati avatar UrbanSwati commented on August 24, 2024

Definitely will do 👍

from whatsapp-web-reveng.

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.