Skip to content

Instantly share code, notes, and snippets.

@Akdeniz
Akdeniz / whatsapp_phone_enumerator_floated_div.js
Created May 16, 2017 14:31
PoC WhatsApp enumeration of phonenumbers, profile pics, about texts and online statuses (floated div)
/*
PoC WhatsApp enumeration of phonenumbers, profile pics, about texts and online statuses
Floated div edition
01-05-2017
(c) 2017 - Loran Kloeze - loran@ralon.nl
This script creates a UI on top of the WhatsApp Web interface. It enumerates certain kinds
of information from a range of phonenumbers. It doesn't matter if these numbers are part
of your contact list. At the end a table is displayed containing phonenumbers, profile pics,
about texts and online statuses. The online statuses are being updated every
import platform
from os import getpid, devnull
from os.path import join, dirname, exists, abspath, isabs, basename
from subprocess import check_output
def semaphore_cleanup():
"""
Clears the zombie semaphores that left behind if the process is killed.