passivedns-client 1.3.0 → 1.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 41a0a59329a330d5830052e03a99a39f9ce5a819
4
- data.tar.gz: 361993fddb9ef65fef2f4721dba03257b818dddd
3
+ metadata.gz: 49cc9d7810af4882b1baca23cd5066c42064cc04
4
+ data.tar.gz: ab776bf92b0aa16d43ad33745dd9bf1a0ab16bea
5
5
  SHA512:
6
- metadata.gz: edbb6d872501226acc1aa067a432b63908f9063657f708d1ccf234cd207c681b85eb071c405a7fa772ac51acda85cb6cc71db2d18109282856dd91e19c87061a
7
- data.tar.gz: 56c04abc0c89251b2303721a2ded1dee6da155bd4a66c43bb12de5ab52e3884fe32b21ec463c083d0e7900ed862068f31c343d58c3bd51d9142e855c908178fb
6
+ metadata.gz: 9d600182b9e748b3bc809afdf0605aa679119395dce243d8f5616744289bab90a8ca58132d10d61580fa0300a2b64a0ef0ae9a2b2de856d5261f3fe27c9f1b3c
7
+ data.tar.gz: 4be5b593b42516174bb70c53da866f99c714a9d666695f5f92e0a85788944a0de34800da39fc93283446b39ca3db6892bb3476259174fb6288e1d31e7e331a8e
data/README.md CHANGED
@@ -25,14 +25,6 @@ Or install it yourself as:
25
25
 
26
26
  ## Configuration
27
27
 
28
- ### DNSParse
29
-
30
- The pdnstool looks for a configuration file for DNSParse to be located at $HOME/.dnsparse by default. It requires three items of information, one per line: the base URL, a username, and a password. E.g.,
31
-
32
- https://dnsparse.wherever/query.php?submit=Search&format=json&querytext=
33
- myusername
34
- mypassword
35
-
36
28
  ### DNSDB (Farsight Security)
37
29
 
38
30
  The DNSDB configuration file is located at $HOME/.dnsdb-query.conf by default. The format for its configuration file only requires one line in the following format:
@@ -55,22 +47,29 @@ VirusTotal's (https://www.virustotal.com) passive DNS database requires an apik
55
47
  01234567890abcdef01234567890abcdef01234567890abcdef01234567890abcdef
56
48
 
57
49
 
50
+ ### TCPIPUtils
51
+
52
+ TCPIPUtils's (http://www.tcpiputils.com/premium-access) passive DNS database requires and apikey in $HOME/.tcpiputils. It is a 64 character hexstring on a single line.
53
+
54
+ 01234567890abcdef01234567890abcdef01234567890abcdef01234567890abcdef
55
+
58
56
  ## Usage
59
57
 
60
58
  require 'passivedns-client'
61
59
 
62
- c = PassiveDNS::Client.new(['bfk','dnsdb']) # providers: bfk, dnsparse, certee, dnsdb, virustotal
60
+ c = PassiveDNS::Client.new(['bfk','dnsdb']) # providers: bfk, tcpiputils, certee, dnsdb, virustotal
63
61
  results = c.query("example.com")
64
62
 
65
63
  Or use the included tool!
66
64
 
67
- Usage: bin/pdnstool [-a|-b|-e|-d|-i|-V] [-c|-x|-y|-j|-t] [-s <sep>] [-f <file>] [-r#|-w#|-l] <ip|domain|cidr>
68
- -a uses all of the available passive dns databases
69
- -b only use BFK
70
- -e only use CERT-EE
71
- -d only use DNSParse (default)
72
- -i only use DNSDB (formerly ISC)
73
- -V only use VirusTotal
65
+ Usage: bin/pdnstool [-d [bedvt]] [-g|-v|-m|-c|-x|-y|-j|-t] [-os <sep>] [-f <file>] [-r#|-w#|-v] [-l <count>] <ip|domain|cidr>
66
+ -dbedvt uses all of the available passive dns databases
67
+ -db only use BFK
68
+ -de only use CERT-EE (default)
69
+ -dd only use DNSDB (formerly ISC)
70
+ -dv only use VirusTotal
71
+ -dt only use TCPIPUtils
72
+ -dvt uses VirusTotal and TCPIPUtils (for example)
74
73
 
75
74
  -g outputs a link-nodal GDF visualization definition
76
75
  -v outputs a link-nodal graphviz visualization definition
@@ -85,7 +84,8 @@ Or use the included tool!
85
84
  -f[file] specifies a sqlite3 database used to read the current state - useful for large result sets and generating graphs of previous runs.
86
85
  -r# specifies the levels of recursion to pull. **WARNING** This is quite taxing on the pDNS servers, so use judiciously (never more than 3 or so) or find yourself blocked!
87
86
  -w# specifies the amount of time to wait, in seconds, between queries (Default: 0)
88
- -l outputs debugging information
87
+ -v outputs debugging information
88
+ -l <count> limits the number of records returned per passive dns database queried.
89
89
 
90
90
  ## Contributing
91
91
 
data/bin/pdnstool CHANGED
@@ -49,7 +49,7 @@ def printresults(state,format,sep="\t")
49
49
  end
50
50
 
51
51
  def usage
52
- puts "Usage: #{$0} [-d [bedvt]] [-og|-ov|-om|-oc|-ox|-oy|-oj|-ot] [-os <sep>] [-f <file>] [-r#|-w#|-v] [-l <count>] <ip|domain|cidr>"
52
+ puts "Usage: #{$0} [-d [bedvt]] [-g|-v|-m|-c|-x|-y|-j|-t] [-os <sep>] [-f <file>] [-r#|-w#|-v] [-l <count>] <ip|domain|cidr>"
53
53
  puts " -dbedvt uses all of the available passive dns databases"
54
54
  puts " -db only use BFK"
55
55
  puts " -de only use CERT-EE (default)"
@@ -58,15 +58,15 @@ def usage
58
58
  puts " -dt only use TCPIPUtils"
59
59
  puts " -dvt uses VirusTotal and TCPIPUtils (for example)"
60
60
  puts ""
61
- puts " -og outputs a link-nodal GDF visualization definition"
62
- puts " -ov outputs a link-nodal graphviz visualization definition"
63
- puts " -om output a link-nodal graphml visualization definition"
64
- puts " -oc outputs CSV"
65
- puts " -ox outputs XML"
66
- puts " -oy outputs YAML"
67
- puts " -oj outputs JSON"
68
- puts " -ot outputs ASCII text (default)"
69
- puts " -os <sep> specifies a field separator for text output, default is tab"
61
+ puts " -g outputs a link-nodal GDF visualization definition"
62
+ puts " -v outputs a link-nodal graphviz visualization definition"
63
+ puts " -m output a link-nodal graphml visualization definition"
64
+ puts " -c outputs CSV"
65
+ puts " -x outputs XML"
66
+ puts " -y outputs YAML"
67
+ puts " -j outputs JSON"
68
+ puts " -t outputs ASCII text (default)"
69
+ puts " -s <sep> specifies a field separator for text output, default is tab"
70
70
  puts ""
71
71
  puts " -f[file] specifies a sqlite3 database used to read the current state - useful for large result sets and generating graphs of previous runs."
72
72
  puts " -r# specifies the levels of recursion to pull. **WARNING** This is quite taxing on the pDNS servers, so use judiciously (never more than 3 or so) or find yourself blocked!"
@@ -1,5 +1,5 @@
1
1
  module PassiveDNS
2
2
  class Client
3
- VERSION = "1.3.0"
3
+ VERSION = "1.3.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: passivedns-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - chrislee35