shodan - a node.js Shodan API client
Usage
Get an API key from http://www.shodanhq.com/api_doc, then use the client as follows:
var shodan = require('shodan'),
client = shodan.createClient({ key: "<shodan api key>" });
// search Shodan
client.search("cisco-ios", function(err, res) {
console.log(err, res);
});
// lookup a host
client.host("217.140.75.46", function(err, res) {
console.log(err, res);
})
// search exploitdb
client.exploitdbSearch("PHP", function(err, res) {
console.log(err, res);
});
// download code from exploitdb
client.exploitdbDownload(9939, function(err, res) {
console.log(err, res);
});
// search metasploit
client.msfSearch("microsoft", function(err, res) {
console.log(err, res);
});
// download code from metasploit
client.msfDownload("exploit/windows/smb/smb_relay", function(err, res) {
console.log(err, res);
});