Pueden descargarlo desde mi repositorio de Github: Los enlaces son solo para miembros.
Registrate o
iniciá sesiónO pueden copiarlo:
# -*- CREATED BY: DtxdF -*-
#!/usr/bin/python
# -*- coding: utf-8 -*-
from thread import *
from json import *
from requests import *
from colorama import init, Fore
from time import sleep
init()
class color:
red = Fore.RED
blue = Fore.BLUE
green = Fore.GREEN
yellow = Fore.YELLOW
cyan = Fore.CYAN
error = Fore.RED+"["+Fore.RESET+"-"+Fore.RED+"]"+Fore.RESET+" "
adv = Fore.YELLOW+"["+Fore.RESET+"!"+Fore.YELLOW+"]"+Fore.RESET+" "
ble = Fore.BLUE+"["+Fore.RESET+"*"+Fore.BLUE+"]"+Fore.RESET+" "
reset = Fore.RESET
def error_msg(msg):
print "\n"
print color.error+color.red+"Error {0} not found".format(msg)+color.reset
def resquest_proc():
code_error = "Apparently you are not connected to the internet, The answer was not positive:"
try:
if get("http://example.com").status_code == 200:
pass
else:
print code_error+" %s" % str(get("http://example.com").status_code)
except exceptions.ConnectionError:
print code_error+" 404"
except Exception as a:
print "Unknown error ..."
api_key = '<Your_API_KEY>' # GO TO https://numverify.com/
if api_key == '':
api_key == None
def geo(number):
try:
if api_key == None:
print color.yellow+"[!] "+color.reset+"Your API its not defined ..."
sleep(5)
exit()
api = 'http://apilayer.net/api/validate?access_key='+api_key+'&number='+number+'&country_code&format=1'
get_out = get(api)
content = get_out.text
obj = loads(content)
# TEXT TO SHOW IN THE WINDOW
valid = obj['valid']
number = obj['local_format']
country = obj['country_name']
country_code = obj['country_code']
carrier_number = obj['carrier']
line = obj['line_type']
location = obj['location']
if valid == 'False':
print color.red+"[-] "+color.reset+"The number is invalid ..."
sleep(5)
exit()
if country == '':
country = None
error_msg("Country")
if country_code == '':
country_code = None
error_msg("Country Code")
if carrier_number == '':
carrier_number = None
error_msg("Carrier of number")
if line == '':
line = None
error_msg("Line type")
if location == '':
location = None
error_msg("Location")
print "\n"
print "\tNumber \t\t::"+color.yellow+" {0}".format(number)+color.reset
print "\tCountry \t::"+color.yellow+" {0}({1})".format(country,country_code)+color.reset
print "\tCompany \t::"+color.yellow+" {0}".format(carrier_number)+color.reset
print "\tLine type \t::"+color.yellow+" {0}".format(line)+color.reset
print "\tLocation \t::"+color.yellow+" {0}".format(location)+color.reset
print "\n"
except exceptions.ConnectionError as a:
print color.error+"Failed Connection ..."
except Exception as a:
print color.error+"Error: %s" % str(a)
print """
*----------------------------------------*
* *
* *
* [ Retrieving information from a phone *
* (Rifap) ] *
* *
* [ A script to gather the information *
* of a telephone, using the api of: *
* https://numverify.com/ ] *
* *
* [Created by: DtxdF] *
* *
*----------------------------------------*
"""
print "\nInsert a phone number with the country code, example: %s\n" % str("+1 412-858-6273")
start_new(resquest_proc, ())
while True:
try:
debug = raw_input(color.ble+"Number: "+color.yellow).strip()
color.reset
if not debug:
continue
else:
geo(debug)
except KeyboardInterrupt as a:
print color.adv+"CTRL-C ..."
sleep(3.5)
exit()
except EOFError as a:
print color.error+"Invalid key"
except Exception as a:
print color.error+"Error: "+str(a)
Es un script para reunir la informacion de un numero de telefono aceptando hasta 232 paises, este script funciona gracias a la api de: Los enlaces son solo para miembros.
Registrate o
iniciá sesiónEl uso del programa es sencillo:
1ero: Nos vamos a la pagina: Los enlaces son solo para miembros.
Registrate o
iniciá sesión
2do: Donde dice Sign Up for Free, o a donde señala la flecha en la foto

3ero: Ahora seleccionamos un plan, si no quieren pagar seleccionen el primero que es gratis, nota como ya lo muestro en la imagen solo nos permitirá hasta 250 respuestas api


4to: Rellenamos el formulario

5to: Luego de aberlo rellenado nos aparecera nuestra clave api como en la imagen, lo que esta tapado en rojo:

6to: una vez hecho esto solo copiamos y pegamos donde dice <Your_API_KEY> en Rifap.py

7to: Guardamos, Ejecutamos la consola (En este caso como utilizo windows ejecutare el cmd y luego ejecutare Rifap.py), Cuando lo hagamos nos aparecerá esta interface:

8vo: Colocaremos el numero telefónico con el código del pais, en mi caso colocare el mismo que me aparece como ejemplo, y presionare enter

#
Inspiración: 1:solo vi el celular de una persona en la calle, pensé no habrá una base de datos en el mundo que contenga millones de información de todos los celulares del mundo, 2:descubri que existían las apis y que era el json
Luego de saber todo investigue un poco y me tope con Los enlaces son solo para miembros.
Registrate o
iniciá sesión y como ya sabia de python y json (En python) cree este script hace un par de meses
#
NOTA: El script utiliza el modulo colorama para instalarlo, abre la consola y ejecuta:
1ero: pip install colorama
o
2do: easy_install colorama
- DtxdF