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
# 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 |
NewerOlder