Skip to content

0xRedpoll/WhatsAppKeyBOF

Repository files navigation

WhatsAppKeyBOF

A Cobalt Strike BOF and DB decrypter script to retrieve the WhatsApp DB decryption key for WhatsApp Desktop via beacon.

Warning

Only works on Windows hosts with WhatsApp Desktop installed.

Requirements

  • A Cobalt Strike beacon on a compromised host
  • python3 on PATH
  • Python packages (which I haven't kept track of, requirements.txt to come). Please ensure you have the packages required by first_decrypt.py and second_decrypt.py before running the BOF.

Build Info

make all

Usage

WhatsAppKeyBOF

Example execution

You will then need to exfiltrate the messages.db, messages.db-wal files from the compromised host and run the whatsapp_db_exporter.py to decrypt the DB with the returned key.

References

License

GPLv3

TODO

  • This tool does not extract information from the DB owing to this BOF already taking far longer than expected. Feel free to contribute a tool to extract, however you can open the decrypted DB with a DB viewer.

Author Information

This tool was created by 0xRedpoll.

About

A BOF to retrieve decryption keys for WhatsApp Desktop and a utility script to decrypt the databases.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published