Where in the world is Carmen Sandiego?
Carmen has escaped again and I need your help to locate her. Thanks to my friends at NSA I got
access to the SS7 network and I can find her if we obtain her phone number. They were able to
obtain a leak from a secure communications service she was using that contained her email address
and a hashed version of her phone number + city she connected from. Unfortunately, it was hashed
with 5 million rounds of PBKDF2. We estimate that bruteforcing in a reasonable amount of time is
only feasible having the correct city and less than 500 numbers. The NSA warned me that OPSEC is
utterly important. Do not attempt to reset any passwords. It won’t help you find any useful
information and she will know we are tracking her. Find her phone number!
[email protected]
a599f5e85a15799c5fa0a11887dbfc9ebd4de92e0ebbac6768dec60377454ab1
#!/usr/bin/python3
import hashlib
import binascii
##
# Takes phonenumber without country code nor spaces. Example: 5551234567
# Takes city lowercase without spaces. Example: sanfrancisco
##
def get_phone_hash(phonenumber, city):
stringInput = phonenumber + city;
binhash = hashlib.pbkdf2_hmac('sha256', stringInput.encode("utf-8"), b'',
5000000);
return binhash.hex();