Socket
Socket
Sign inDemoInstall

subquest

Package Overview
Dependencies
71
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.1 to 1.2.0

tests/bing.js

3

index.js

@@ -76,3 +76,3 @@ var dns = require('native-dns');

// Send requests to a DNS resolver and find valid sub-domains
exports.getSubDomains = function(opts){

@@ -112,2 +112,3 @@ var EE = new events.EventEmitter();

// Send DNS requests
function probeDNS(subdomain, tld, dnsServer){

@@ -114,0 +115,0 @@ var EE = new events.EventEmitter();

@@ -19,3 +19,3 @@ // Search bing.com using the 'domain:' dork and retrieve possible sub-domains.

// get a unique list of all hrefs which ends with the '.domain.com' form.
request('http://www.bing.com/search?q=domain:'+ domainName, function(err, res, body){
request('http://www.bing.com/search?count=50&q=domain:'+ domainName, function(err, res, body){
$ = cheerio.load(body);

@@ -22,0 +22,0 @@ var list = [];

{
"name": "subquest",
"version": "1.1.1",
"version": "1.2.0",
"description": "Fast, Elegant subdomain scanner using nodejs",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -51,3 +51,3 @@ # subquest

This scans ea.com for the list of all subdomains using the top-100 dictionary.
This scans ea.com for the list of all subdomains using the top_200 dictionary.

@@ -54,0 +54,0 @@ ## Want to add a new entry to Subquest's dictionary?

@@ -26,29 +26,1 @@ var should = require('should')

})
describe('Usig bing domain dork queries', function(){
describe('get the array of subdomains', function(){
this.timeout(20000)
it('yahoo.com', function(done){
subquest.getSubDomains({host: 'yahoo.com', bingSearch: true})
.on('end', function(result){
result.should.be.an.Array
result.should.containEql('login.yahoo.com')
done();
})
})
it('google.com', function(done){
subquest.getSubDomains({host: 'google.com', bingSearch: true})
.on('end', function(result){
result.should.be.an.Array
result.should.containEql('accounts.google.com')
done();
})
})
})
})
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc