예제 #1
0
def heat_map(lats, lons):
    gmap3 = gmplot.GoogleMapPlotter(20.5937, 78.9629, 5)
    gmap3.heatmap(lats, lons)
    gmap3.scatter(lats, lons, '#FF0000', size=50, marker=False)
    gmap3.plot(lats, lons, 'cornflowerblue', edge_width=3.0)
    save_location = input("Enter the location to save file : ")
    gmap3.apikey = gmap()
    location = save_location + "/heatmap.html"
    gmap3.draw(location)
    print("Heatmap saved at " + location)
    openWeb = input("Open Heatmap in web browser? (Y/N) : ")
    if openWeb.upper() == 'Y':
        webbrowser.open(url=("file:///" + location))
    else:
        pass
예제 #2
0
def heat_map(lats, lons):
    gmap3 = gmplot.GoogleMapPlotter(20.5937, 78.9629, 5)
    gmap3.heatmap(lats, lons)
    gmap3.scatter(lats, lons, '#FF0000', size=50, marker=False)
    gmap3.plot(lats, lons, 'cornflowerblue', edge_width=3.0)
    save_location = input(" [ + ] Введите место для сохранения файла : ")
    gmap3.apikey = gmap()
    location = save_location + "/heatmap.html"
    gmap3.draw(location)
    print("[ + ] Heatmap saved at " + location)
    openWeb = input(" [ + ] Открыть в web broser? (Y/N) : ")
    if openWeb.upper() == 'Y':
        webbrowser.open(url=("file:///" + location))
    else:
        pass
예제 #3
0
import requests
import gmplot
from plugins.api import ipstack
import webbrowser
import re
from plugins.api import gmap
from ipaddress import *
from plugins.webosint.who.whois import *

api_key = ipstack()
if api_key == "":
    print("Add you ipstack api key to src/api.py")
    exit()
if gmap() == "":
    print("Add you Google Heatmap api key to src/api.py")
    exit()


def IPHeatmap():
    print('''
    1) Trace single IP
    2) Trace multiple IPs''')
    choice = input("OPTIONS >> ")

    if choice == '1':
        IP = input("Enter the IP : ")
        read_single_IP(IP)
    elif choice == '2':
        IP_file = input("Enter the IP File Location : ")
        read_multiple_IP(IP_file)
    else: