sepinf-inc / IPED

IPED Digital Forensic Tool. It is an open source software that can be used to process and analyze digital evidence, often seized at crime scenes by law enforcement or in a corporate investigation by private examiners.
Other
924 stars 217 forks source link

Fix duplicated WhatsApp suffix (iOS) #1917

Closed wladimirleite closed 10 months ago

wladimirleite commented 10 months ago

This fixes a side effect of #1880. Contacts read from iOS database already have "@s.whatsapp.net" suffix (at least in more recent databases). In WAContactsExtractorIOS, the suffix was append again, resulting in IDs like 5511998877666@s.whatsapp.net@s.whatsapp.net. Before PR #1881, the split("@") removed the second "@s.whatsapp.net", but it shouldn't be added in the first place, if already present.