whatsmap – Mapping WhatsApp via Go API and CLI #1648
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🤖 Automated Content Update
This PR was automatically generated by the HackTricks News Bot based on a technical blog post.
📝 Source Information
🎯 Content Summary
whatsmapis a Go-based fork of the whatsmeow library that exposes WhatsApp’s multi-device protocol via an automation-friendly API and a CLI. It is intended to “map WhatsApp via API”, i.e., provide structured, programmatic access to WhatsApp accounts (messages, media, groups, calls, app state) without using the official client. This makes it useful for bots, integrations, monitoring, or offensive automation, though the repository itself do...🔧 Technical Details
Programmatic control over WhatsApp multi-device protocol
The core technique is to wrap WhatsApp Web’s multi-device protocol in a Go client that maintains a long-lived WebSocket/TLS session plus local state. By implementing QR-based pairing, storing identity and session keys, and exposing methods like
SendMessage,SendPresence, and group/broadcast management, an operator can fully control a WhatsApp account programmatically. This pattern applies to any reverse-engineered web client where you can replicate the login flow, maintain keys, and model the protocol in code.Mapping proprietary events into normalized JSON schemas
The
mapperandtypespackages show a general integration pattern: subscribe to low-level protocol events (protobufs/binary nodes), convert them into stable domain-specific structs (e.g., JSON with fields likefrom,to,message_id,times...🤖 Agent ActionsSummary:
src/generic-hacking/exfiltration.mddetailing how to build/pair thewhatsmapclient, normalize WhatsApp events viawhatsmeowhandlers, decrypt encrypted media blobs, and weaponize RTT-based probing for stealthy device-state reconnaissance, including OPSEC considerations.Testing:
This PR was automatically created by the HackTricks Feed Bot. Please review the changes carefully before merging.