# Phone Number Lookup Tool # Version 1.0.0 # Coded by InvisibleMan in Python 3.3.2 # Download : N/A # File : phonetrak.py #IMPORTS import re import sys import urllib.request #BYTE CONTROL def encodeString(string) : return string.encode('utf-8') def decodeString(string) : return string.decode('utf-8') #DEBUG MESSAGES def action(msg) : print('[#] - ' + msg) def alert(msg) : print('[+] - ' + msg) def error(msg) : print('[!] - ' + msg) def errorExit(msg) : raise SystemExit('[!] - ' + msg) #GET BETWEEN def getBetween(source, start, stop): search = encodeString(start + '(.*?)' + stop) data = re.compile(search).search(source) if data: found = decodeString(data.group(1)) return found.replace('\n', '') else: return False #GET CARRIER def getCarrier(number): source = urllib.request.urlopen('http://www.fonefinder.net/findome.php?npa=' + number[:3] + '&nxx=' + number[3:6] + '&thoublock=' + number[6:]).read() carrier = getBetween(source, '