jasperan / whatsapp-osint

WhatsApp spy - logs online/offline events from ANYONE in the world
MIT License
863 stars 111 forks source link

Program finishes execution before Syncing is complete #27

Closed BananaGeneral closed 2 months ago

BananaGeneral commented 1 year ago

So after linking a device using the QR code, the program tries to find the given username argument, but since the link just happened, there's no time for the browser to finish syncing all the conversations, and the program cannot find the contacts.

 Loaded
Trying to find: Banana Kong
Banana Kong is not found. Returning...(Maybe your contact is in the archive. Check it)

IMG_15F257F98E57-1

If there was a way to keep the browser open to finish the syncing, the problem would be solved.

github-actions[bot] commented 1 year ago

Thank you for your first issue to whatsapp-osint! I really appreciate your interest and hope you enjoy the repository.

jasperan commented 1 year ago

@BananaGeneral how long does it take approximately? I've never seen this sync stuff before

BananaGeneral commented 1 year ago

I tested it on a new instance, and it took about one minute to complete. I imagine it varies depending on how many open conversations one has / the internet connection speed.

jasperan commented 1 year ago

If you re-run it with the saved session, do you run into issues? Just asking to check the priority of this issue because I have a lot of work right now and I want to know if it's severe or mid

BananaGeneral commented 1 year ago

Regular chrome and this "developer" mode doesn't seem to share the cache/cookies held by the WhatsApp sessions.

It won't work until the sync on the browser whatsapp-osint opens (the one with the automated notification) is complete.

Just thought of letting you know cause more people might run into this in the future.

jasperan commented 1 year ago

Thanks @BananaGeneral, I will see which HTML elements I can get from that state, although it will be hard for me to reproduce since I have never received that "sync in progress" message. It would be ideal if you could submit a Pull Request since you are prompted to that screen. If you don't know enough, don't worry, I will try to figure out another way.

The repo is supposedly created to work with chromedriver and not the developer mode from regular Chrome as this restricts me from reproducing the error accurately since we aren't in the same environment.

But thank you for bringing it to my attention. 👍🏻