This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var API_KEY = 'YOUR API KEY'; | |
/** | |
* Search the Shodan database using the given query. Returns the number of matches. | |
*/ | |
function SHODAN_COUNT(query) { | |
var url = 'https://api.shodan.io/shodan/host/count?key=' + API_KEY + '&query=' + query; | |
var response = UrlFetchApp.fetch(url); | |
var data = Utilities.jsonParse(response.getContentText()); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import the class | |
from shodan.wps import GoogleLocation | |
# Setup the object | |
wps_client = GoogleLocation() | |
# Locate the physical address of the MAC/ BSSID | |
address = wps_client.locate('00:1D:7E:F0:A2:B0') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ easy_install shodan | |
# or easy_install -U shodan | |
# or pip install shodan |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
WiFi Positioning System | |
Wrappers around the SkyHook and Google Locations APIs to resolve | |
wireless routers' MAC addresses (BSSID) to physical locations. | |
""" | |
try: | |
from json import dumps, loads | |
except: | |
from simplejson import dumps, loads |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# | |
# shodan-stream.py | |
# Read a firehose/ stream of 1% of the data that Shodan collects in real-time. | |
# | |
# WARNING: This script only works with people that have a subscription API plan! | |
# And by default the Streaming API only returns 1% of the data that Shodan gathers. | |
# If you wish to have more access please contact us at support@shodan.io for pricing | |
# information. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import shodan.threatnet | |
# Configuration | |
API_KEY = "Please enter your API key here" | |
# Create the object that interfaces with the Threatnet API | |
tnet = shodan.threatnet.Threatnet(API_KEY) | |
# Get a stream of events and print them to stdout | |
for event in tnet.stream.events(): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import shodan | |
API_KEY = 'YOUR API KEY' | |
api = shodan.Shodan(API_KEY) | |
results = api.count('port:443,8443', facets=[('ssl.cert.serial', 100)]) | |
for facet in results['facets']['ssl.cert.serial']: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Al Jazeera English | 0.0.0 | 4 | |
---|---|---|---|
Always Summer | 1.0.1 | 2 | |
planeta iptv | 1.1.2 | 8 | |
Skitter TV | 2.5.0 | 4 | |
Andrew Wommack Ministries | 1.0.1 | 1 | |
Syfy | 1.0.24 | 187 | |
Oikos Church | 1.0.1 | 1 | |
ctn 45 tv | 1.0.2 | 1 | |
Target Ticket | 1.0.3708 | 422 | |
Target Ticket | 1.0.3707 | 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Netflix | 863 | |
---|---|---|
Roku Home News | 767 | |
Amazon Video | 733 | |
Movie Store and TV Store | 717 | |
Hulu | 694 | |
HBO Now | 683 | |
Showtime | 678 | |
VUDU | 633 | |
Pandora | 569 | |
YouTube | 550 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"region_code": null, | |
"ip": 3561488084, | |
"area_code": null, | |
"latitude": 51.5, | |
"hostnames": ["li635-212.members.linode.com"], | |
"postal_code": null, | |
"dma_code": null, | |
"country_code": "GB", | |
"org": "Linode", |