Сегодня мы напишем 3 приложения на Python которые могут пригодится начинающему хакеру:
1 Пробив номера
2 И пробив по IP
Работают они слабо но если знать с чем имеешь дело то можно пользоваться:
Пробив номера:
import urllib.request
import json
phone = input("Enter phone (Без +): ")
getInfo = "https://htmlweb.ru/geo/api.php?json&telcod=" + phone
try:
infoPhone = urllib.request.urlopen( getInfo )except:print( "\n[!] - Phone not found - [!]\n" )
infoPhone = json.load( infoPhone )print( u"Номер сотового --->", "+" + phone )print( u"Страна ---> ", infoPhone["country"]["name"] )print( u"Регион ---> ", infoPhone["region"]["name"] )print( u"Округ ---> ", infoPhone["region"]["okrug"] )print( u"Оператор ---> ", infoPhone["0"]["oper"] )print( u"Часть света ---> ", infoPhone["country"]["location"] )
Работать лучше через сам IDLE чем через консоль так как консоль автоматически закрывается если например пробивать номер Украины...
IP пробив:
import urllib.request
import json
import os
getIP = input("[+] Enter IP --> ")
url = "https://ipinfo.io/" + getIP + "/json"try:
getInfo = urllib.request.urlopen( url )except:print( "\n[!] - IP not found! - [!]\n" )
infoList = json.load(getInfo)def whoisIPinfo(ip):try:
myComand = "whois " + getIP
whoisInfo = os.popen( myComand ).read()return whoisInfo
except:return "\n [!] -- Error -- [!] \n"print( "-" * 60 )print( "IP: ", infoList["ip"] )print( "City: ", infoList["city"] )print( "Region: ", infoList["region"] )print( "Country: ", infoList["country"] )print( "Hostname: ", infoList["hostname"] )print( "-" * 60 )print( whoisIPinfo ( getIP ) )print( "-" * 60)input('Press Enter to Exit')