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
/** | |
* Search the Shodan database using the given query. Returns the number of matches. | |
*/ | |
function SHODAN(query) { | |
var API_KEY = 'YOUR API KEY'; | |
var url = 'http://www.shodanhq.com/api/count?key=' + API_KEY + '&q=' + 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
#!/usr/bin/env python | |
# | |
# export_hosts.py <export.json.gz> | |
# | |
import gzip | |
import shodan | |
import simplejson | |
import sys |
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
require "shodan" | |
module Subs | |
VERSION = "0.1.0" | |
# Basic input validation | |
if ARGV.size != 2 | |
puts "Usage: subs <api key> <domain>" | |
exit | |
end |
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
Query | product:d-link | |
---|---|---|
product | ||
D-Link DCS-932L webcam http interface | 53585 | |
D-Link DCS-930L webcam http interface | 49788 | |
D-Link DLS-2750U ftp firmward update | 38563 | |
D-Link DCS-932LB1 webcam http interface | 31227 | |
D-Link DCS-930LB1 webcam http interface | 30413 | |
D-Link DCS-5020L webcam http interface | 14109 | |
D-Link DCS-934L webcam http interface | 10951 |
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", |
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
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
#!/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
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 | |
# | |
# 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. | |
# |
OlderNewer